From a985cb0a4d5297587db87088e37f0f7a49fd4a0b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 27 Jun 2022 21:15:04 +0000 Subject: [PATCH 1/2] fix: update gapic-generator-java with mock service generation fixes PiperOrigin-RevId: 457524730 Source-Link: https://github.com/googleapis/googleapis/commit/917e7f21cb1dc062744c6694437cdd46219f28cb Source-Link: https://github.com/googleapis/googleapis-gen/commit/2497f9a069d3f6b2d6810d5a4e239cda1e7e5a39 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjQ5N2Y5YTA2OWQzZjZiMmQ2ODEwZDVhNGUyMzljZGExZTdlNWEzOSJ9 --- .../cloud/gkebackup/v1/BackupForGKEGrpc.java | 3001 ------------- .../gkebackup/v1/BackupForGKEClient.java | 80 +- .../gkebackup/v1/BackupForGKESettings.java | 7 +- .../cloud/gkebackup/v1/gapic_metadata.json | 0 .../cloud/gkebackup/v1/package-info.java | 0 .../gkebackup/v1/stub/BackupForGKEStub.java | 0 .../v1/stub/BackupForGKEStubSettings.java | 12 +- .../stub/GrpcBackupForGKECallableFactory.java | 0 .../v1/stub/GrpcBackupForGKEStub.java | 1 + .../HttpJsonBackupForGKECallableFactory.java | 0 .../v1/stub/HttpJsonBackupForGKEStub.java | 1 + .../v1/BackupForGKEClientHttpJsonTest.java | 0 .../gkebackup/v1/BackupForGKEClientTest.java | 0 .../cloud/gkebackup/v1/MockBackupForGKE.java | 0 .../gkebackup/v1/MockBackupForGKEImpl.java | 0 .../cloud/gkebackup/v1/BackupForGKEGrpc.java | 2286 ++++++++++ .../com/google/cloud/gkebackup/v1/Backup.java | 3763 ++++++----------- .../google/cloud/gkebackup/v1/BackupName.java | 0 .../cloud/gkebackup/v1/BackupOrBuilder.java | 318 +- .../google/cloud/gkebackup/v1/BackupPlan.java | 2997 +++++-------- .../cloud/gkebackup/v1/BackupPlanName.java | 0 .../gkebackup/v1/BackupPlanOrBuilder.java | 166 +- .../cloud/gkebackup/v1/BackupPlanProto.java | 146 + .../cloud/gkebackup/v1/BackupProto.java | 146 + .../cloud/gkebackup/v1/CommonProto.java | 100 + .../gkebackup/v1/CreateBackupPlanRequest.java | 570 +-- .../v1/CreateBackupPlanRequestOrBuilder.java | 64 +- .../gkebackup/v1/CreateBackupRequest.java | 515 +-- .../v1/CreateBackupRequestOrBuilder.java | 52 +- .../v1/CreateRestorePlanRequest.java | 567 +-- .../v1/CreateRestorePlanRequestOrBuilder.java | 64 +- .../gkebackup/v1/CreateRestoreRequest.java | 560 +-- .../v1/CreateRestoreRequestOrBuilder.java | 61 +- .../gkebackup/v1/DeleteBackupPlanRequest.java | 421 +- .../v1/DeleteBackupPlanRequestOrBuilder.java | 44 +- .../gkebackup/v1/DeleteBackupRequest.java | 455 +- .../v1/DeleteBackupRequestOrBuilder.java | 47 +- .../v1/DeleteRestorePlanRequest.java | 458 +- .../v1/DeleteRestorePlanRequestOrBuilder.java | 47 +- .../gkebackup/v1/DeleteRestoreRequest.java | 455 +- .../v1/DeleteRestoreRequestOrBuilder.java | 47 +- .../cloud/gkebackup/v1/EncryptionKey.java | 301 +- .../gkebackup/v1/EncryptionKeyOrBuilder.java | 27 +- .../cloud/gkebackup/v1/GKEBackupProto.java | 668 +++ .../gkebackup/v1/GetBackupPlanRequest.java | 339 +- .../v1/GetBackupPlanRequestOrBuilder.java | 31 + .../cloud/gkebackup/v1/GetBackupRequest.java | 329 +- .../v1/GetBackupRequestOrBuilder.java | 31 + .../gkebackup/v1/GetRestorePlanRequest.java | 339 +- .../v1/GetRestorePlanRequestOrBuilder.java | 31 + .../cloud/gkebackup/v1/GetRestoreRequest.java | 332 +- .../v1/GetRestoreRequestOrBuilder.java | 31 + .../gkebackup/v1/GetVolumeBackupRequest.java | 339 +- .../v1/GetVolumeBackupRequestOrBuilder.java | 31 + .../gkebackup/v1/GetVolumeRestoreRequest.java | 342 +- .../v1/GetVolumeRestoreRequestOrBuilder.java | 31 + .../gkebackup/v1/ListBackupPlansRequest.java | 612 ++- .../v1/ListBackupPlansRequestOrBuilder.java | 65 +- .../gkebackup/v1/ListBackupPlansResponse.java | 573 +-- .../v1/ListBackupPlansResponseOrBuilder.java | 63 +- .../gkebackup/v1/ListBackupsRequest.java | 609 ++- .../v1/ListBackupsRequestOrBuilder.java | 65 +- .../gkebackup/v1/ListBackupsResponse.java | 459 +- .../v1/ListBackupsResponseOrBuilder.java | 46 +- .../gkebackup/v1/ListRestorePlansRequest.java | 615 ++- .../v1/ListRestorePlansRequestOrBuilder.java | 65 +- .../v1/ListRestorePlansResponse.java | 574 +-- .../v1/ListRestorePlansResponseOrBuilder.java | 63 +- .../gkebackup/v1/ListRestoresRequest.java | 612 ++- .../v1/ListRestoresRequestOrBuilder.java | 65 +- .../gkebackup/v1/ListRestoresResponse.java | 569 +-- .../v1/ListRestoresResponseOrBuilder.java | 63 +- .../v1/ListVolumeBackupsRequest.java | 615 ++- .../v1/ListVolumeBackupsRequestOrBuilder.java | 65 +- .../v1/ListVolumeBackupsResponse.java | 456 +- .../ListVolumeBackupsResponseOrBuilder.java | 45 +- .../v1/ListVolumeRestoresRequest.java | 615 ++- .../ListVolumeRestoresRequestOrBuilder.java | 65 +- .../v1/ListVolumeRestoresResponse.java | 453 +- .../ListVolumeRestoresResponseOrBuilder.java | 45 +- .../cloud/gkebackup/v1/LocationName.java | 0 .../cloud/gkebackup/v1/NamespacedName.java | 380 +- .../gkebackup/v1/NamespacedNameOrBuilder.java | 36 +- .../cloud/gkebackup/v1/NamespacedNames.java | 349 +- .../v1/NamespacedNamesOrBuilder.java | 36 +- .../google/cloud/gkebackup/v1/Namespaces.java | 330 +- .../gkebackup/v1/NamespacesOrBuilder.java | 36 +- .../cloud/gkebackup/v1/OperationMetadata.java | 845 ++-- .../v1/OperationMetadataOrBuilder.java | 91 +- .../google/cloud/gkebackup/v1/Restore.java | 1994 ++++----- .../cloud/gkebackup/v1/RestoreConfig.java | 3384 +++++---------- .../gkebackup/v1/RestoreConfigOrBuilder.java | 155 +- .../cloud/gkebackup/v1/RestoreName.java | 0 .../cloud/gkebackup/v1/RestoreOrBuilder.java | 228 +- .../cloud/gkebackup/v1/RestorePlan.java | 1446 +++---- .../cloud/gkebackup/v1/RestorePlanName.java | 0 .../gkebackup/v1/RestorePlanOrBuilder.java | 173 +- .../cloud/gkebackup/v1/RestorePlanProto.java | 98 + .../cloud/gkebackup/v1/RestoreProto.java | 191 + .../gkebackup/v1/UpdateBackupPlanRequest.java | 483 +-- .../v1/UpdateBackupPlanRequestOrBuilder.java | 46 +- .../gkebackup/v1/UpdateBackupRequest.java | 464 +- .../v1/UpdateBackupRequestOrBuilder.java | 43 +- .../v1/UpdateRestorePlanRequest.java | 480 +-- .../v1/UpdateRestorePlanRequestOrBuilder.java | 46 +- .../gkebackup/v1/UpdateRestoreRequest.java | 473 +-- .../v1/UpdateRestoreRequestOrBuilder.java | 43 +- .../cloud/gkebackup/v1/VolumeBackup.java | 1605 +++---- .../cloud/gkebackup/v1/VolumeBackupName.java | 0 .../gkebackup/v1/VolumeBackupOrBuilder.java | 171 +- .../cloud/gkebackup/v1/VolumeProto.java | 126 + .../cloud/gkebackup/v1/VolumeRestore.java | 1606 +++---- .../cloud/gkebackup/v1/VolumeRestoreName.java | 0 .../gkebackup/v1/VolumeRestoreOrBuilder.java | 174 +- .../google/cloud/gkebackup/v1/backup.proto | 0 .../cloud/gkebackup/v1/backup_plan.proto | 0 .../google/cloud/gkebackup/v1/common.proto | 0 .../google/cloud/gkebackup/v1/gkebackup.proto | 0 .../google/cloud/gkebackup/v1/restore.proto | 0 .../cloud/gkebackup/v1/restore_plan.proto | 0 .../google/cloud/gkebackup/v1/volume.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createbackup/AsyncCreateBackup.java | 0 .../createbackup/AsyncCreateBackupLRO.java | 0 .../createbackup/SyncCreateBackup.java | 0 ...reateBackupBackupplannameBackupString.java | 0 .../SyncCreateBackupStringBackupString.java | 0 .../AsyncCreateBackupPlan.java | 0 .../AsyncCreateBackupPlanLRO.java | 0 .../SyncCreateBackupPlan.java | 0 ...ackupPlanLocationnameBackupplanString.java | 0 ...reateBackupPlanStringBackupplanString.java | 0 .../createrestore/AsyncCreateRestore.java | 0 .../createrestore/AsyncCreateRestoreLRO.java | 0 .../createrestore/SyncCreateRestore.java | 0 ...teRestoreRestoreplannameRestoreString.java | 0 .../SyncCreateRestoreStringRestoreString.java | 0 .../AsyncCreateRestorePlan.java | 0 .../AsyncCreateRestorePlanLRO.java | 0 .../SyncCreateRestorePlan.java | 0 ...torePlanLocationnameRestoreplanString.java | 0 ...ateRestorePlanStringRestoreplanString.java | 0 .../deletebackup/AsyncDeleteBackup.java | 0 .../deletebackup/AsyncDeleteBackupLRO.java | 0 .../deletebackup/SyncDeleteBackup.java | 0 .../SyncDeleteBackupBackupname.java | 0 .../deletebackup/SyncDeleteBackupString.java | 0 .../AsyncDeleteBackupPlan.java | 0 .../AsyncDeleteBackupPlanLRO.java | 0 .../SyncDeleteBackupPlan.java | 0 .../SyncDeleteBackupPlanBackupplanname.java | 0 .../SyncDeleteBackupPlanString.java | 0 .../deleterestore/AsyncDeleteRestore.java | 0 .../deleterestore/AsyncDeleteRestoreLRO.java | 0 .../deleterestore/SyncDeleteRestore.java | 0 .../SyncDeleteRestoreRestorename.java | 0 .../SyncDeleteRestoreString.java | 0 .../AsyncDeleteRestorePlan.java | 0 .../AsyncDeleteRestorePlanLRO.java | 0 .../SyncDeleteRestorePlan.java | 0 .../SyncDeleteRestorePlanRestoreplanname.java | 0 .../SyncDeleteRestorePlanString.java | 0 .../getbackup/AsyncGetBackup.java | 0 .../getbackup/SyncGetBackup.java | 0 .../getbackup/SyncGetBackupBackupname.java | 0 .../getbackup/SyncGetBackupString.java | 0 .../getbackupplan/AsyncGetBackupPlan.java | 0 .../getbackupplan/SyncGetBackupPlan.java | 0 .../SyncGetBackupPlanBackupplanname.java | 0 .../SyncGetBackupPlanString.java | 0 .../getrestore/AsyncGetRestore.java | 0 .../getrestore/SyncGetRestore.java | 0 .../getrestore/SyncGetRestoreRestorename.java | 0 .../getrestore/SyncGetRestoreString.java | 0 .../getrestoreplan/AsyncGetRestorePlan.java | 0 .../getrestoreplan/SyncGetRestorePlan.java | 0 .../SyncGetRestorePlanRestoreplanname.java | 0 .../SyncGetRestorePlanString.java | 0 .../getvolumebackup/AsyncGetVolumeBackup.java | 0 .../getvolumebackup/SyncGetVolumeBackup.java | 0 .../SyncGetVolumeBackupString.java | 0 .../SyncGetVolumeBackupVolumebackupname.java | 0 .../AsyncGetVolumeRestore.java | 0 .../SyncGetVolumeRestore.java | 0 .../SyncGetVolumeRestoreString.java | 0 ...SyncGetVolumeRestoreVolumerestorename.java | 0 .../listbackupplans/AsyncListBackupPlans.java | 0 .../AsyncListBackupPlansPaged.java | 0 .../listbackupplans/SyncListBackupPlans.java | 0 .../SyncListBackupPlansLocationname.java | 0 .../SyncListBackupPlansString.java | 0 .../listbackups/AsyncListBackups.java | 0 .../listbackups/AsyncListBackupsPaged.java | 0 .../listbackups/SyncListBackups.java | 0 .../SyncListBackupsBackupplanname.java | 0 .../listbackups/SyncListBackupsString.java | 0 .../AsyncListRestorePlans.java | 0 .../AsyncListRestorePlansPaged.java | 0 .../SyncListRestorePlans.java | 0 .../SyncListRestorePlansLocationname.java | 0 .../SyncListRestorePlansString.java | 0 .../listrestores/AsyncListRestores.java | 0 .../listrestores/AsyncListRestoresPaged.java | 0 .../listrestores/SyncListRestores.java | 0 .../SyncListRestoresRestoreplanname.java | 0 .../listrestores/SyncListRestoresString.java | 0 .../AsyncListVolumeBackups.java | 0 .../AsyncListVolumeBackupsPaged.java | 0 .../SyncListVolumeBackups.java | 0 .../SyncListVolumeBackupsBackupname.java | 0 .../SyncListVolumeBackupsString.java | 0 .../AsyncListVolumeRestores.java | 0 .../AsyncListVolumeRestoresPaged.java | 0 .../SyncListVolumeRestores.java | 0 .../SyncListVolumeRestoresRestorename.java | 0 .../SyncListVolumeRestoresString.java | 0 .../updatebackup/AsyncUpdateBackup.java | 0 .../updatebackup/AsyncUpdateBackupLRO.java | 0 .../updatebackup/SyncUpdateBackup.java | 0 .../SyncUpdateBackupBackupFieldmask.java | 0 .../AsyncUpdateBackupPlan.java | 0 .../AsyncUpdateBackupPlanLRO.java | 0 .../SyncUpdateBackupPlan.java | 0 ...ncUpdateBackupPlanBackupplanFieldmask.java | 0 .../updaterestore/AsyncUpdateRestore.java | 0 .../updaterestore/AsyncUpdateRestoreLRO.java | 0 .../updaterestore/SyncUpdateRestore.java | 0 .../SyncUpdateRestoreRestoreFieldmask.java | 0 .../AsyncUpdateRestorePlan.java | 0 .../AsyncUpdateRestorePlanLRO.java | 0 .../SyncUpdateRestorePlan.java | 0 ...UpdateRestorePlanRestoreplanFieldmask.java | 0 .../getbackupplan/SyncGetBackupPlan.java | 0 .../getbackupplan/SyncGetBackupPlan.java | 0 .../cloud/gkebackup/v1/BackupPlanProto.java | 183 - .../cloud/gkebackup/v1/BackupProto.java | 198 - .../cloud/gkebackup/v1/CommonProto.java | 118 - .../cloud/gkebackup/v1/GKEBackupProto.java | 719 ---- .../v1/GetBackupPlanRequestOrBuilder.java | 56 - .../v1/GetBackupRequestOrBuilder.java | 56 - .../v1/GetRestorePlanRequestOrBuilder.java | 56 - .../v1/GetRestoreRequestOrBuilder.java | 56 - .../v1/GetVolumeBackupRequestOrBuilder.java | 56 - .../v1/GetVolumeRestoreRequestOrBuilder.java | 56 - .../cloud/gkebackup/v1/RestorePlanProto.java | 123 - .../cloud/gkebackup/v1/RestoreProto.java | 239 -- .../cloud/gkebackup/v1/VolumeProto.java | 165 - 249 files changed, 17361 insertions(+), 28382 deletions(-) delete mode 100644 grpc-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEGrpc.java rename {google-cloud-gke-backup => owl-bot-staging/v1/google-cloud-gke-backup}/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java (98%) rename {google-cloud-gke-backup => owl-bot-staging/v1/google-cloud-gke-backup}/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKESettings.java (98%) rename {google-cloud-gke-backup => owl-bot-staging/v1/google-cloud-gke-backup}/src/main/java/com/google/cloud/gkebackup/v1/gapic_metadata.json (100%) rename {google-cloud-gke-backup => owl-bot-staging/v1/google-cloud-gke-backup}/src/main/java/com/google/cloud/gkebackup/v1/package-info.java (100%) rename {google-cloud-gke-backup => owl-bot-staging/v1/google-cloud-gke-backup}/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStub.java (100%) rename {google-cloud-gke-backup => owl-bot-staging/v1/google-cloud-gke-backup}/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java (99%) rename {google-cloud-gke-backup => owl-bot-staging/v1/google-cloud-gke-backup}/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKECallableFactory.java (100%) rename {google-cloud-gke-backup => owl-bot-staging/v1/google-cloud-gke-backup}/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKEStub.java (99%) rename {google-cloud-gke-backup => owl-bot-staging/v1/google-cloud-gke-backup}/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKECallableFactory.java (100%) rename {google-cloud-gke-backup => owl-bot-staging/v1/google-cloud-gke-backup}/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKEStub.java (99%) rename {google-cloud-gke-backup => owl-bot-staging/v1/google-cloud-gke-backup}/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientHttpJsonTest.java (100%) rename {google-cloud-gke-backup => owl-bot-staging/v1/google-cloud-gke-backup}/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientTest.java (100%) rename {google-cloud-gke-backup => owl-bot-staging/v1/google-cloud-gke-backup}/src/test/java/com/google/cloud/gkebackup/v1/MockBackupForGKE.java (100%) rename {google-cloud-gke-backup => owl-bot-staging/v1/google-cloud-gke-backup}/src/test/java/com/google/cloud/gkebackup/v1/MockBackupForGKEImpl.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEGrpc.java rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/Backup.java (70%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/BackupName.java (100%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/BackupOrBuilder.java (75%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/BackupPlan.java (74%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanName.java (100%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanOrBuilder.java (80%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanProto.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupProto.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CommonProto.java rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequest.java (66%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequestOrBuilder.java (60%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequest.java (70%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequestOrBuilder.java (67%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequest.java (66%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequestOrBuilder.java (60%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequest.java (67%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequestOrBuilder.java (66%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequest.java (67%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequestOrBuilder.java (54%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequest.java (69%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequestOrBuilder.java (59%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequest.java (69%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequestOrBuilder.java (59%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequest.java (69%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequestOrBuilder.java (59%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKey.java (70%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKeyOrBuilder.java (55%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GKEBackupProto.java rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequestOrBuilder.java rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequestOrBuilder.java rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequestOrBuilder.java rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequestOrBuilder.java rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequestOrBuilder.java rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequestOrBuilder.java rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequest.java (72%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequestOrBuilder.java (69%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponse.java (75%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponseOrBuilder.java (74%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequest.java (72%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequestOrBuilder.java (69%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponse.java (74%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponseOrBuilder.java (70%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequest.java (72%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequestOrBuilder.java (69%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponse.java (75%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponseOrBuilder.java (74%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequest.java (72%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequestOrBuilder.java (70%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponse.java (75%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponseOrBuilder.java (74%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequest.java (72%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequestOrBuilder.java (70%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponse.java (75%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponseOrBuilder.java (71%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequest.java (72%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequestOrBuilder.java (70%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponse.java (75%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponseOrBuilder.java (71%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/LocationName.java (100%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/NamespacedName.java (69%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNameOrBuilder.java (54%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNames.java (75%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNamesOrBuilder.java (63%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/Namespaces.java (70%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/NamespacesOrBuilder.java (58%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadata.java (71%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadataOrBuilder.java (75%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/Restore.java (69%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfig.java (74%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfigOrBuilder.java (73%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/RestoreName.java (100%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/RestoreOrBuilder.java (74%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/RestorePlan.java (67%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanName.java (100%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanOrBuilder.java (72%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanProto.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreProto.java rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequest.java (71%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequestOrBuilder.java (75%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequest.java (73%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequestOrBuilder.java (79%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequest.java (71%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequestOrBuilder.java (74%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequest.java (72%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequestOrBuilder.java (79%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackup.java (69%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupName.java (100%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupOrBuilder.java (73%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeProto.java rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestore.java (69%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreName.java (100%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreOrBuilder.java (73%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/proto/google/cloud/gkebackup/v1/backup.proto (100%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/proto/google/cloud/gkebackup/v1/backup_plan.proto (100%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/proto/google/cloud/gkebackup/v1/common.proto (100%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/proto/google/cloud/gkebackup/v1/gkebackup.proto (100%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/proto/google/cloud/gkebackup/v1/restore.proto (100%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/proto/google/cloud/gkebackup/v1/restore_plan.proto (100%) rename {proto-google-cloud-gke-backup-v1 => owl-bot-staging/v1/proto-google-cloud-gke-backup-v1}/src/main/proto/google/cloud/gkebackup/v1/volume.proto (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/AsyncCreateBackup.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/AsyncCreateBackupLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackup.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackupBackupplannameBackupString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackupStringBackupString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/AsyncCreateBackupPlan.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/AsyncCreateBackupPlanLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlan.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlanLocationnameBackupplanString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlanStringBackupplanString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/AsyncCreateRestore.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/AsyncCreateRestoreLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestore.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestoreRestoreplannameRestoreString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestoreStringRestoreString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/AsyncCreateRestorePlan.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/AsyncCreateRestorePlanLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlan.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlanLocationnameRestoreplanString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlanStringRestoreplanString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/AsyncDeleteBackup.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/AsyncDeleteBackupLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackup.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackupBackupname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackupString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/AsyncDeleteBackupPlan.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/AsyncDeleteBackupPlanLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlan.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlanBackupplanname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlanString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/AsyncDeleteRestore.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/AsyncDeleteRestoreLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestore.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestoreRestorename.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestoreString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/AsyncDeleteRestorePlan.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/AsyncDeleteRestorePlanLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlan.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlanRestoreplanname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlanString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/AsyncGetBackup.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackup.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackupBackupname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackupString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/AsyncGetBackupPlan.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlan.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlanBackupplanname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlanString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/AsyncGetRestore.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestore.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestoreRestorename.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestoreString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/AsyncGetRestorePlan.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlan.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlanRestoreplanname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlanString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/AsyncGetVolumeBackup.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackup.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackupString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackupVolumebackupname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/AsyncGetVolumeRestore.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestore.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestoreString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestoreVolumerestorename.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/AsyncListBackupPlans.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/AsyncListBackupPlansPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlans.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlansLocationname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlansString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/AsyncListBackups.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/AsyncListBackupsPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackups.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackupsBackupplanname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackupsString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/AsyncListRestorePlans.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/AsyncListRestorePlansPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlans.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlansLocationname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlansString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/AsyncListRestores.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/AsyncListRestoresPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestores.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestoresRestoreplanname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestoresString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/AsyncListVolumeBackups.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/AsyncListVolumeBackupsPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackups.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackupsBackupname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackupsString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/AsyncListVolumeRestores.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/AsyncListVolumeRestoresPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestores.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestoresRestorename.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestoresString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/AsyncUpdateBackup.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/AsyncUpdateBackupLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/SyncUpdateBackup.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/SyncUpdateBackupBackupFieldmask.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/AsyncUpdateBackupPlan.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/AsyncUpdateBackupPlanLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/SyncUpdateBackupPlan.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/SyncUpdateBackupPlanBackupplanFieldmask.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/AsyncUpdateRestore.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/AsyncUpdateRestoreLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/SyncUpdateRestore.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/SyncUpdateRestoreRestoreFieldmask.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/AsyncUpdateRestorePlan.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/AsyncUpdateRestorePlanLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/SyncUpdateRestorePlan.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/SyncUpdateRestorePlanRestoreplanFieldmask.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkesettings/getbackupplan/SyncGetBackupPlan.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/gkebackup/v1/stub/backupforgkestubsettings/getbackupplan/SyncGetBackupPlan.java (100%) delete mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanProto.java delete mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupProto.java delete mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CommonProto.java delete mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GKEBackupProto.java delete mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequestOrBuilder.java delete mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequestOrBuilder.java delete mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequestOrBuilder.java delete mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequestOrBuilder.java delete mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequestOrBuilder.java delete mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequestOrBuilder.java delete mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanProto.java delete mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreProto.java delete mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeProto.java diff --git a/grpc-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEGrpc.java b/grpc-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEGrpc.java deleted file mode 100644 index 8df5ccd..0000000 --- a/grpc-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEGrpc.java +++ /dev/null @@ -1,3001 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gkebackup.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * BackupForGKE allows Kubernetes administrators to configure, execute, and
- * manage backup and restore operations for their GKE clusters.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/gkebackup/v1/gkebackup.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BackupForGKEGrpc { - - private BackupForGKEGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.gkebackup.v1.BackupForGKE"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest, com.google.longrunning.Operation> - getCreateBackupPlanMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateBackupPlan", - requestType = com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest, com.google.longrunning.Operation> - getCreateBackupPlanMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest, com.google.longrunning.Operation> - getCreateBackupPlanMethod; - if ((getCreateBackupPlanMethod = BackupForGKEGrpc.getCreateBackupPlanMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getCreateBackupPlanMethod = BackupForGKEGrpc.getCreateBackupPlanMethod) == null) { - BackupForGKEGrpc.getCreateBackupPlanMethod = - getCreateBackupPlanMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBackupPlan")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BackupForGKEMethodDescriptorSupplier("CreateBackupPlan")) - .build(); - } - } - } - return getCreateBackupPlanMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.ListBackupPlansRequest, - com.google.cloud.gkebackup.v1.ListBackupPlansResponse> - getListBackupPlansMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListBackupPlans", - requestType = com.google.cloud.gkebackup.v1.ListBackupPlansRequest.class, - responseType = com.google.cloud.gkebackup.v1.ListBackupPlansResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.ListBackupPlansRequest, - com.google.cloud.gkebackup.v1.ListBackupPlansResponse> - getListBackupPlansMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.ListBackupPlansRequest, - com.google.cloud.gkebackup.v1.ListBackupPlansResponse> - getListBackupPlansMethod; - if ((getListBackupPlansMethod = BackupForGKEGrpc.getListBackupPlansMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getListBackupPlansMethod = BackupForGKEGrpc.getListBackupPlansMethod) == null) { - BackupForGKEGrpc.getListBackupPlansMethod = - getListBackupPlansMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBackupPlans")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListBackupPlansRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListBackupPlansResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BackupForGKEMethodDescriptorSupplier("ListBackupPlans")) - .build(); - } - } - } - return getListBackupPlansMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.GetBackupPlanRequest, - com.google.cloud.gkebackup.v1.BackupPlan> - getGetBackupPlanMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBackupPlan", - requestType = com.google.cloud.gkebackup.v1.GetBackupPlanRequest.class, - responseType = com.google.cloud.gkebackup.v1.BackupPlan.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.GetBackupPlanRequest, - com.google.cloud.gkebackup.v1.BackupPlan> - getGetBackupPlanMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.GetBackupPlanRequest, - com.google.cloud.gkebackup.v1.BackupPlan> - getGetBackupPlanMethod; - if ((getGetBackupPlanMethod = BackupForGKEGrpc.getGetBackupPlanMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getGetBackupPlanMethod = BackupForGKEGrpc.getGetBackupPlanMethod) == null) { - BackupForGKEGrpc.getGetBackupPlanMethod = - getGetBackupPlanMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBackupPlan")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.GetBackupPlanRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance())) - .setSchemaDescriptor( - new BackupForGKEMethodDescriptorSupplier("GetBackupPlan")) - .build(); - } - } - } - return getGetBackupPlanMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest, com.google.longrunning.Operation> - getUpdateBackupPlanMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateBackupPlan", - requestType = com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest, com.google.longrunning.Operation> - getUpdateBackupPlanMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest, com.google.longrunning.Operation> - getUpdateBackupPlanMethod; - if ((getUpdateBackupPlanMethod = BackupForGKEGrpc.getUpdateBackupPlanMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getUpdateBackupPlanMethod = BackupForGKEGrpc.getUpdateBackupPlanMethod) == null) { - BackupForGKEGrpc.getUpdateBackupPlanMethod = - getUpdateBackupPlanMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBackupPlan")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BackupForGKEMethodDescriptorSupplier("UpdateBackupPlan")) - .build(); - } - } - } - return getUpdateBackupPlanMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest, com.google.longrunning.Operation> - getDeleteBackupPlanMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteBackupPlan", - requestType = com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest, com.google.longrunning.Operation> - getDeleteBackupPlanMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest, com.google.longrunning.Operation> - getDeleteBackupPlanMethod; - if ((getDeleteBackupPlanMethod = BackupForGKEGrpc.getDeleteBackupPlanMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getDeleteBackupPlanMethod = BackupForGKEGrpc.getDeleteBackupPlanMethod) == null) { - BackupForGKEGrpc.getDeleteBackupPlanMethod = - getDeleteBackupPlanMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBackupPlan")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BackupForGKEMethodDescriptorSupplier("DeleteBackupPlan")) - .build(); - } - } - } - return getDeleteBackupPlanMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.CreateBackupRequest, com.google.longrunning.Operation> - getCreateBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateBackup", - requestType = com.google.cloud.gkebackup.v1.CreateBackupRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.CreateBackupRequest, com.google.longrunning.Operation> - getCreateBackupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.CreateBackupRequest, com.google.longrunning.Operation> - getCreateBackupMethod; - if ((getCreateBackupMethod = BackupForGKEGrpc.getCreateBackupMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getCreateBackupMethod = BackupForGKEGrpc.getCreateBackupMethod) == null) { - BackupForGKEGrpc.getCreateBackupMethod = - getCreateBackupMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBackup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.CreateBackupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("CreateBackup")) - .build(); - } - } - } - return getCreateBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.ListBackupsRequest, - com.google.cloud.gkebackup.v1.ListBackupsResponse> - getListBackupsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListBackups", - requestType = com.google.cloud.gkebackup.v1.ListBackupsRequest.class, - responseType = com.google.cloud.gkebackup.v1.ListBackupsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.ListBackupsRequest, - com.google.cloud.gkebackup.v1.ListBackupsResponse> - getListBackupsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.ListBackupsRequest, - com.google.cloud.gkebackup.v1.ListBackupsResponse> - getListBackupsMethod; - if ((getListBackupsMethod = BackupForGKEGrpc.getListBackupsMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getListBackupsMethod = BackupForGKEGrpc.getListBackupsMethod) == null) { - BackupForGKEGrpc.getListBackupsMethod = - getListBackupsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBackups")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListBackupsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListBackupsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("ListBackups")) - .build(); - } - } - } - return getListBackupsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.GetBackupRequest, com.google.cloud.gkebackup.v1.Backup> - getGetBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBackup", - requestType = com.google.cloud.gkebackup.v1.GetBackupRequest.class, - responseType = com.google.cloud.gkebackup.v1.Backup.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.GetBackupRequest, com.google.cloud.gkebackup.v1.Backup> - getGetBackupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.GetBackupRequest, com.google.cloud.gkebackup.v1.Backup> - getGetBackupMethod; - if ((getGetBackupMethod = BackupForGKEGrpc.getGetBackupMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getGetBackupMethod = BackupForGKEGrpc.getGetBackupMethod) == null) { - BackupForGKEGrpc.getGetBackupMethod = - getGetBackupMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBackup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.GetBackupRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.Backup.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("GetBackup")) - .build(); - } - } - } - return getGetBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.UpdateBackupRequest, com.google.longrunning.Operation> - getUpdateBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateBackup", - requestType = com.google.cloud.gkebackup.v1.UpdateBackupRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.UpdateBackupRequest, com.google.longrunning.Operation> - getUpdateBackupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.UpdateBackupRequest, com.google.longrunning.Operation> - getUpdateBackupMethod; - if ((getUpdateBackupMethod = BackupForGKEGrpc.getUpdateBackupMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getUpdateBackupMethod = BackupForGKEGrpc.getUpdateBackupMethod) == null) { - BackupForGKEGrpc.getUpdateBackupMethod = - getUpdateBackupMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBackup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.UpdateBackupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("UpdateBackup")) - .build(); - } - } - } - return getUpdateBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.DeleteBackupRequest, com.google.longrunning.Operation> - getDeleteBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteBackup", - requestType = com.google.cloud.gkebackup.v1.DeleteBackupRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.DeleteBackupRequest, com.google.longrunning.Operation> - getDeleteBackupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.DeleteBackupRequest, com.google.longrunning.Operation> - getDeleteBackupMethod; - if ((getDeleteBackupMethod = BackupForGKEGrpc.getDeleteBackupMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getDeleteBackupMethod = BackupForGKEGrpc.getDeleteBackupMethod) == null) { - BackupForGKEGrpc.getDeleteBackupMethod = - getDeleteBackupMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBackup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.DeleteBackupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("DeleteBackup")) - .build(); - } - } - } - return getDeleteBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest, - com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse> - getListVolumeBackupsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListVolumeBackups", - requestType = com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.class, - responseType = com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest, - com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse> - getListVolumeBackupsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest, - com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse> - getListVolumeBackupsMethod; - if ((getListVolumeBackupsMethod = BackupForGKEGrpc.getListVolumeBackupsMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getListVolumeBackupsMethod = BackupForGKEGrpc.getListVolumeBackupsMethod) == null) { - BackupForGKEGrpc.getListVolumeBackupsMethod = - getListVolumeBackupsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVolumeBackups")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BackupForGKEMethodDescriptorSupplier("ListVolumeBackups")) - .build(); - } - } - } - return getListVolumeBackupsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest, - com.google.cloud.gkebackup.v1.VolumeBackup> - getGetVolumeBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetVolumeBackup", - requestType = com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.class, - responseType = com.google.cloud.gkebackup.v1.VolumeBackup.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest, - com.google.cloud.gkebackup.v1.VolumeBackup> - getGetVolumeBackupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest, - com.google.cloud.gkebackup.v1.VolumeBackup> - getGetVolumeBackupMethod; - if ((getGetVolumeBackupMethod = BackupForGKEGrpc.getGetVolumeBackupMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getGetVolumeBackupMethod = BackupForGKEGrpc.getGetVolumeBackupMethod) == null) { - BackupForGKEGrpc.getGetVolumeBackupMethod = - getGetVolumeBackupMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolumeBackup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.VolumeBackup.getDefaultInstance())) - .setSchemaDescriptor( - new BackupForGKEMethodDescriptorSupplier("GetVolumeBackup")) - .build(); - } - } - } - return getGetVolumeBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest, com.google.longrunning.Operation> - getCreateRestorePlanMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRestorePlan", - requestType = com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest, com.google.longrunning.Operation> - getCreateRestorePlanMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest, - com.google.longrunning.Operation> - getCreateRestorePlanMethod; - if ((getCreateRestorePlanMethod = BackupForGKEGrpc.getCreateRestorePlanMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getCreateRestorePlanMethod = BackupForGKEGrpc.getCreateRestorePlanMethod) == null) { - BackupForGKEGrpc.getCreateRestorePlanMethod = - getCreateRestorePlanMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRestorePlan")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BackupForGKEMethodDescriptorSupplier("CreateRestorePlan")) - .build(); - } - } - } - return getCreateRestorePlanMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.ListRestorePlansRequest, - com.google.cloud.gkebackup.v1.ListRestorePlansResponse> - getListRestorePlansMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRestorePlans", - requestType = com.google.cloud.gkebackup.v1.ListRestorePlansRequest.class, - responseType = com.google.cloud.gkebackup.v1.ListRestorePlansResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.ListRestorePlansRequest, - com.google.cloud.gkebackup.v1.ListRestorePlansResponse> - getListRestorePlansMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.ListRestorePlansRequest, - com.google.cloud.gkebackup.v1.ListRestorePlansResponse> - getListRestorePlansMethod; - if ((getListRestorePlansMethod = BackupForGKEGrpc.getListRestorePlansMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getListRestorePlansMethod = BackupForGKEGrpc.getListRestorePlansMethod) == null) { - BackupForGKEGrpc.getListRestorePlansMethod = - getListRestorePlansMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRestorePlans")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListRestorePlansRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListRestorePlansResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BackupForGKEMethodDescriptorSupplier("ListRestorePlans")) - .build(); - } - } - } - return getListRestorePlansMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.GetRestorePlanRequest, - com.google.cloud.gkebackup.v1.RestorePlan> - getGetRestorePlanMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRestorePlan", - requestType = com.google.cloud.gkebackup.v1.GetRestorePlanRequest.class, - responseType = com.google.cloud.gkebackup.v1.RestorePlan.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.GetRestorePlanRequest, - com.google.cloud.gkebackup.v1.RestorePlan> - getGetRestorePlanMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.GetRestorePlanRequest, - com.google.cloud.gkebackup.v1.RestorePlan> - getGetRestorePlanMethod; - if ((getGetRestorePlanMethod = BackupForGKEGrpc.getGetRestorePlanMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getGetRestorePlanMethod = BackupForGKEGrpc.getGetRestorePlanMethod) == null) { - BackupForGKEGrpc.getGetRestorePlanMethod = - getGetRestorePlanMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRestorePlan")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.GetRestorePlanRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance())) - .setSchemaDescriptor( - new BackupForGKEMethodDescriptorSupplier("GetRestorePlan")) - .build(); - } - } - } - return getGetRestorePlanMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest, com.google.longrunning.Operation> - getUpdateRestorePlanMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateRestorePlan", - requestType = com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest, com.google.longrunning.Operation> - getUpdateRestorePlanMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest, - com.google.longrunning.Operation> - getUpdateRestorePlanMethod; - if ((getUpdateRestorePlanMethod = BackupForGKEGrpc.getUpdateRestorePlanMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getUpdateRestorePlanMethod = BackupForGKEGrpc.getUpdateRestorePlanMethod) == null) { - BackupForGKEGrpc.getUpdateRestorePlanMethod = - getUpdateRestorePlanMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRestorePlan")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BackupForGKEMethodDescriptorSupplier("UpdateRestorePlan")) - .build(); - } - } - } - return getUpdateRestorePlanMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest, com.google.longrunning.Operation> - getDeleteRestorePlanMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRestorePlan", - requestType = com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest, com.google.longrunning.Operation> - getDeleteRestorePlanMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest, - com.google.longrunning.Operation> - getDeleteRestorePlanMethod; - if ((getDeleteRestorePlanMethod = BackupForGKEGrpc.getDeleteRestorePlanMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getDeleteRestorePlanMethod = BackupForGKEGrpc.getDeleteRestorePlanMethod) == null) { - BackupForGKEGrpc.getDeleteRestorePlanMethod = - getDeleteRestorePlanMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRestorePlan")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BackupForGKEMethodDescriptorSupplier("DeleteRestorePlan")) - .build(); - } - } - } - return getDeleteRestorePlanMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.CreateRestoreRequest, com.google.longrunning.Operation> - getCreateRestoreMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRestore", - requestType = com.google.cloud.gkebackup.v1.CreateRestoreRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.CreateRestoreRequest, com.google.longrunning.Operation> - getCreateRestoreMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.CreateRestoreRequest, com.google.longrunning.Operation> - getCreateRestoreMethod; - if ((getCreateRestoreMethod = BackupForGKEGrpc.getCreateRestoreMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getCreateRestoreMethod = BackupForGKEGrpc.getCreateRestoreMethod) == null) { - BackupForGKEGrpc.getCreateRestoreMethod = - getCreateRestoreMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRestore")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.CreateRestoreRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BackupForGKEMethodDescriptorSupplier("CreateRestore")) - .build(); - } - } - } - return getCreateRestoreMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.ListRestoresRequest, - com.google.cloud.gkebackup.v1.ListRestoresResponse> - getListRestoresMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRestores", - requestType = com.google.cloud.gkebackup.v1.ListRestoresRequest.class, - responseType = com.google.cloud.gkebackup.v1.ListRestoresResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.ListRestoresRequest, - com.google.cloud.gkebackup.v1.ListRestoresResponse> - getListRestoresMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.ListRestoresRequest, - com.google.cloud.gkebackup.v1.ListRestoresResponse> - getListRestoresMethod; - if ((getListRestoresMethod = BackupForGKEGrpc.getListRestoresMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getListRestoresMethod = BackupForGKEGrpc.getListRestoresMethod) == null) { - BackupForGKEGrpc.getListRestoresMethod = - getListRestoresMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRestores")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListRestoresRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListRestoresResponse - .getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("ListRestores")) - .build(); - } - } - } - return getListRestoresMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.GetRestoreRequest, com.google.cloud.gkebackup.v1.Restore> - getGetRestoreMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRestore", - requestType = com.google.cloud.gkebackup.v1.GetRestoreRequest.class, - responseType = com.google.cloud.gkebackup.v1.Restore.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.GetRestoreRequest, com.google.cloud.gkebackup.v1.Restore> - getGetRestoreMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.GetRestoreRequest, com.google.cloud.gkebackup.v1.Restore> - getGetRestoreMethod; - if ((getGetRestoreMethod = BackupForGKEGrpc.getGetRestoreMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getGetRestoreMethod = BackupForGKEGrpc.getGetRestoreMethod) == null) { - BackupForGKEGrpc.getGetRestoreMethod = - getGetRestoreMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRestore")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.GetRestoreRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.Restore.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("GetRestore")) - .build(); - } - } - } - return getGetRestoreMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.UpdateRestoreRequest, com.google.longrunning.Operation> - getUpdateRestoreMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateRestore", - requestType = com.google.cloud.gkebackup.v1.UpdateRestoreRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.UpdateRestoreRequest, com.google.longrunning.Operation> - getUpdateRestoreMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.UpdateRestoreRequest, com.google.longrunning.Operation> - getUpdateRestoreMethod; - if ((getUpdateRestoreMethod = BackupForGKEGrpc.getUpdateRestoreMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getUpdateRestoreMethod = BackupForGKEGrpc.getUpdateRestoreMethod) == null) { - BackupForGKEGrpc.getUpdateRestoreMethod = - getUpdateRestoreMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRestore")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.UpdateRestoreRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BackupForGKEMethodDescriptorSupplier("UpdateRestore")) - .build(); - } - } - } - return getUpdateRestoreMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.DeleteRestoreRequest, com.google.longrunning.Operation> - getDeleteRestoreMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRestore", - requestType = com.google.cloud.gkebackup.v1.DeleteRestoreRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.DeleteRestoreRequest, com.google.longrunning.Operation> - getDeleteRestoreMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.DeleteRestoreRequest, com.google.longrunning.Operation> - getDeleteRestoreMethod; - if ((getDeleteRestoreMethod = BackupForGKEGrpc.getDeleteRestoreMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getDeleteRestoreMethod = BackupForGKEGrpc.getDeleteRestoreMethod) == null) { - BackupForGKEGrpc.getDeleteRestoreMethod = - getDeleteRestoreMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRestore")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.DeleteRestoreRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BackupForGKEMethodDescriptorSupplier("DeleteRestore")) - .build(); - } - } - } - return getDeleteRestoreMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest, - com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse> - getListVolumeRestoresMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListVolumeRestores", - requestType = com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.class, - responseType = com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest, - com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse> - getListVolumeRestoresMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest, - com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse> - getListVolumeRestoresMethod; - if ((getListVolumeRestoresMethod = BackupForGKEGrpc.getListVolumeRestoresMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getListVolumeRestoresMethod = BackupForGKEGrpc.getListVolumeRestoresMethod) == null) { - BackupForGKEGrpc.getListVolumeRestoresMethod = - getListVolumeRestoresMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVolumeRestores")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BackupForGKEMethodDescriptorSupplier("ListVolumeRestores")) - .build(); - } - } - } - return getListVolumeRestoresMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest, - com.google.cloud.gkebackup.v1.VolumeRestore> - getGetVolumeRestoreMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetVolumeRestore", - requestType = com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.class, - responseType = com.google.cloud.gkebackup.v1.VolumeRestore.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest, - com.google.cloud.gkebackup.v1.VolumeRestore> - getGetVolumeRestoreMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest, - com.google.cloud.gkebackup.v1.VolumeRestore> - getGetVolumeRestoreMethod; - if ((getGetVolumeRestoreMethod = BackupForGKEGrpc.getGetVolumeRestoreMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getGetVolumeRestoreMethod = BackupForGKEGrpc.getGetVolumeRestoreMethod) == null) { - BackupForGKEGrpc.getGetVolumeRestoreMethod = - getGetVolumeRestoreMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolumeRestore")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.VolumeRestore.getDefaultInstance())) - .setSchemaDescriptor( - new BackupForGKEMethodDescriptorSupplier("GetVolumeRestore")) - .build(); - } - } - } - return getGetVolumeRestoreMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static BackupForGKEStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BackupForGKEStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BackupForGKEStub(channel, callOptions); - } - }; - return BackupForGKEStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static BackupForGKEBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BackupForGKEBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BackupForGKEBlockingStub(channel, callOptions); - } - }; - return BackupForGKEBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static BackupForGKEFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BackupForGKEFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BackupForGKEFutureStub(channel, callOptions); - } - }; - return BackupForGKEFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * BackupForGKE allows Kubernetes administrators to configure, execute, and
-   * manage backup and restore operations for their GKE clusters.
-   * 
- */ - public abstract static class BackupForGKEImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a new BackupPlan in a given location.
-     * 
- */ - public void createBackupPlan( - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBackupPlanMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists BackupPlans in a given location.
-     * 
- */ - public void listBackupPlans( - com.google.cloud.gkebackup.v1.ListBackupPlansRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBackupPlansMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieve the details of a single BackupPlan.
-     * 
- */ - public void getBackupPlan( - com.google.cloud.gkebackup.v1.GetBackupPlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetBackupPlanMethod(), responseObserver); - } - - /** - * - * - *
-     * Update a BackupPlan.
-     * 
- */ - public void updateBackupPlan( - com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBackupPlanMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an existing BackupPlan.
-     * 
- */ - public void deleteBackupPlan( - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteBackupPlanMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a Backup for the given BackupPlan.
-     * 
- */ - public void createBackup( - com.google.cloud.gkebackup.v1.CreateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBackupMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the Backups for a given BackupPlan.
-     * 
- */ - public void listBackups( - com.google.cloud.gkebackup.v1.ListBackupsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBackupsMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieve the details of a single Backup.
-     * 
- */ - public void getBackup( - com.google.cloud.gkebackup.v1.GetBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); - } - - /** - * - * - *
-     * Update a Backup.
-     * 
- */ - public void updateBackup( - com.google.cloud.gkebackup.v1.UpdateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBackupMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an existing Backup.
-     * 
- */ - public void deleteBackup( - com.google.cloud.gkebackup.v1.DeleteBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteBackupMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the VolumeBackups for a given Backup.
-     * 
- */ - public void listVolumeBackups( - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListVolumeBackupsMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieve the details of a single VolumeBackup.
-     * 
- */ - public void getVolumeBackup( - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetVolumeBackupMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new RestorePlan in a given location.
-     * 
- */ - public void createRestorePlan( - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateRestorePlanMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists RestorePlans in a given location.
-     * 
- */ - public void listRestorePlans( - com.google.cloud.gkebackup.v1.ListRestorePlansRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListRestorePlansMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieve the details of a single RestorePlan.
-     * 
- */ - public void getRestorePlan( - com.google.cloud.gkebackup.v1.GetRestorePlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetRestorePlanMethod(), responseObserver); - } - - /** - * - * - *
-     * Update a RestorePlan.
-     * 
- */ - public void updateRestorePlan( - com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateRestorePlanMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an existing RestorePlan.
-     * 
- */ - public void deleteRestorePlan( - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteRestorePlanMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Restore for the given RestorePlan.
-     * 
- */ - public void createRestore( - com.google.cloud.gkebackup.v1.CreateRestoreRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateRestoreMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the Restores for a given RestorePlan.
-     * 
- */ - public void listRestores( - com.google.cloud.gkebackup.v1.ListRestoresRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListRestoresMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the details of a single Restore.
-     * 
- */ - public void getRestore( - com.google.cloud.gkebackup.v1.GetRestoreRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRestoreMethod(), responseObserver); - } - - /** - * - * - *
-     * Update a Restore.
-     * 
- */ - public void updateRestore( - com.google.cloud.gkebackup.v1.UpdateRestoreRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateRestoreMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an existing Restore.
-     * 
- */ - public void deleteRestore( - com.google.cloud.gkebackup.v1.DeleteRestoreRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteRestoreMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the VolumeRestores for a given Restore.
-     * 
- */ - public void listVolumeRestores( - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListVolumeRestoresMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieve the details of a single VolumeRestore.
-     * 
- */ - public void getVolumeRestore( - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetVolumeRestoreMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateBackupPlanMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_BACKUP_PLAN))) - .addMethod( - getListBackupPlansMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.ListBackupPlansRequest, - com.google.cloud.gkebackup.v1.ListBackupPlansResponse>( - this, METHODID_LIST_BACKUP_PLANS))) - .addMethod( - getGetBackupPlanMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.GetBackupPlanRequest, - com.google.cloud.gkebackup.v1.BackupPlan>(this, METHODID_GET_BACKUP_PLAN))) - .addMethod( - getUpdateBackupPlanMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_BACKUP_PLAN))) - .addMethod( - getDeleteBackupPlanMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_BACKUP_PLAN))) - .addMethod( - getCreateBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.CreateBackupRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_BACKUP))) - .addMethod( - getListBackupsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.ListBackupsRequest, - com.google.cloud.gkebackup.v1.ListBackupsResponse>( - this, METHODID_LIST_BACKUPS))) - .addMethod( - getGetBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.GetBackupRequest, - com.google.cloud.gkebackup.v1.Backup>(this, METHODID_GET_BACKUP))) - .addMethod( - getUpdateBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.UpdateBackupRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_BACKUP))) - .addMethod( - getDeleteBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.DeleteBackupRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_BACKUP))) - .addMethod( - getListVolumeBackupsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest, - com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse>( - this, METHODID_LIST_VOLUME_BACKUPS))) - .addMethod( - getGetVolumeBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest, - com.google.cloud.gkebackup.v1.VolumeBackup>( - this, METHODID_GET_VOLUME_BACKUP))) - .addMethod( - getCreateRestorePlanMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_RESTORE_PLAN))) - .addMethod( - getListRestorePlansMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.ListRestorePlansRequest, - com.google.cloud.gkebackup.v1.ListRestorePlansResponse>( - this, METHODID_LIST_RESTORE_PLANS))) - .addMethod( - getGetRestorePlanMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.GetRestorePlanRequest, - com.google.cloud.gkebackup.v1.RestorePlan>(this, METHODID_GET_RESTORE_PLAN))) - .addMethod( - getUpdateRestorePlanMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_RESTORE_PLAN))) - .addMethod( - getDeleteRestorePlanMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_RESTORE_PLAN))) - .addMethod( - getCreateRestoreMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.CreateRestoreRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_RESTORE))) - .addMethod( - getListRestoresMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.ListRestoresRequest, - com.google.cloud.gkebackup.v1.ListRestoresResponse>( - this, METHODID_LIST_RESTORES))) - .addMethod( - getGetRestoreMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.GetRestoreRequest, - com.google.cloud.gkebackup.v1.Restore>(this, METHODID_GET_RESTORE))) - .addMethod( - getUpdateRestoreMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.UpdateRestoreRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_RESTORE))) - .addMethod( - getDeleteRestoreMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.DeleteRestoreRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_RESTORE))) - .addMethod( - getListVolumeRestoresMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest, - com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse>( - this, METHODID_LIST_VOLUME_RESTORES))) - .addMethod( - getGetVolumeRestoreMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest, - com.google.cloud.gkebackup.v1.VolumeRestore>( - this, METHODID_GET_VOLUME_RESTORE))) - .build(); - } - } - - /** - * - * - *
-   * BackupForGKE allows Kubernetes administrators to configure, execute, and
-   * manage backup and restore operations for their GKE clusters.
-   * 
- */ - public static final class BackupForGKEStub - extends io.grpc.stub.AbstractAsyncStub { - private BackupForGKEStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BackupForGKEStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BackupForGKEStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new BackupPlan in a given location.
-     * 
- */ - public void createBackupPlan( - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBackupPlanMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists BackupPlans in a given location.
-     * 
- */ - public void listBackupPlans( - com.google.cloud.gkebackup.v1.ListBackupPlansRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBackupPlansMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieve the details of a single BackupPlan.
-     * 
- */ - public void getBackupPlan( - com.google.cloud.gkebackup.v1.GetBackupPlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetBackupPlanMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update a BackupPlan.
-     * 
- */ - public void updateBackupPlan( - com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBackupPlanMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an existing BackupPlan.
-     * 
- */ - public void deleteBackupPlan( - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBackupPlanMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a Backup for the given BackupPlan.
-     * 
- */ - public void createBackup( - com.google.cloud.gkebackup.v1.CreateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBackupMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists the Backups for a given BackupPlan.
-     * 
- */ - public void listBackups( - com.google.cloud.gkebackup.v1.ListBackupsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBackupsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieve the details of a single Backup.
-     * 
- */ - public void getBackup( - com.google.cloud.gkebackup.v1.GetBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetBackupMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Update a Backup.
-     * 
- */ - public void updateBackup( - com.google.cloud.gkebackup.v1.UpdateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an existing Backup.
-     * 
- */ - public void deleteBackup( - com.google.cloud.gkebackup.v1.DeleteBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists the VolumeBackups for a given Backup.
-     * 
- */ - public void listVolumeBackups( - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListVolumeBackupsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieve the details of a single VolumeBackup.
-     * 
- */ - public void getVolumeBackup( - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetVolumeBackupMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new RestorePlan in a given location.
-     * 
- */ - public void createRestorePlan( - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRestorePlanMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists RestorePlans in a given location.
-     * 
- */ - public void listRestorePlans( - com.google.cloud.gkebackup.v1.ListRestorePlansRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRestorePlansMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieve the details of a single RestorePlan.
-     * 
- */ - public void getRestorePlan( - com.google.cloud.gkebackup.v1.GetRestorePlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRestorePlanMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update a RestorePlan.
-     * 
- */ - public void updateRestorePlan( - com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateRestorePlanMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an existing RestorePlan.
-     * 
- */ - public void deleteRestorePlan( - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRestorePlanMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new Restore for the given RestorePlan.
-     * 
- */ - public void createRestore( - com.google.cloud.gkebackup.v1.CreateRestoreRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRestoreMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists the Restores for a given RestorePlan.
-     * 
- */ - public void listRestores( - com.google.cloud.gkebackup.v1.ListRestoresRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRestoresMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the details of a single Restore.
-     * 
- */ - public void getRestore( - com.google.cloud.gkebackup.v1.GetRestoreRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRestoreMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Update a Restore.
-     * 
- */ - public void updateRestore( - com.google.cloud.gkebackup.v1.UpdateRestoreRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateRestoreMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an existing Restore.
-     * 
- */ - public void deleteRestore( - com.google.cloud.gkebackup.v1.DeleteRestoreRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRestoreMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists the VolumeRestores for a given Restore.
-     * 
- */ - public void listVolumeRestores( - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListVolumeRestoresMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieve the details of a single VolumeRestore.
-     * 
- */ - public void getVolumeRestore( - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetVolumeRestoreMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * BackupForGKE allows Kubernetes administrators to configure, execute, and
-   * manage backup and restore operations for their GKE clusters.
-   * 
- */ - public static final class BackupForGKEBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private BackupForGKEBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BackupForGKEBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BackupForGKEBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new BackupPlan in a given location.
-     * 
- */ - public com.google.longrunning.Operation createBackupPlan( - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateBackupPlanMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists BackupPlans in a given location.
-     * 
- */ - public com.google.cloud.gkebackup.v1.ListBackupPlansResponse listBackupPlans( - com.google.cloud.gkebackup.v1.ListBackupPlansRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBackupPlansMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieve the details of a single BackupPlan.
-     * 
- */ - public com.google.cloud.gkebackup.v1.BackupPlan getBackupPlan( - com.google.cloud.gkebackup.v1.GetBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetBackupPlanMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update a BackupPlan.
-     * 
- */ - public com.google.longrunning.Operation updateBackupPlan( - com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateBackupPlanMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an existing BackupPlan.
-     * 
- */ - public com.google.longrunning.Operation deleteBackupPlan( - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBackupPlanMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a Backup for the given BackupPlan.
-     * 
- */ - public com.google.longrunning.Operation createBackup( - com.google.cloud.gkebackup.v1.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateBackupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the Backups for a given BackupPlan.
-     * 
- */ - public com.google.cloud.gkebackup.v1.ListBackupsResponse listBackups( - com.google.cloud.gkebackup.v1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBackupsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieve the details of a single Backup.
-     * 
- */ - public com.google.cloud.gkebackup.v1.Backup getBackup( - com.google.cloud.gkebackup.v1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetBackupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update a Backup.
-     * 
- */ - public com.google.longrunning.Operation updateBackup( - com.google.cloud.gkebackup.v1.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateBackupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an existing Backup.
-     * 
- */ - public com.google.longrunning.Operation deleteBackup( - com.google.cloud.gkebackup.v1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBackupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the VolumeBackups for a given Backup.
-     * 
- */ - public com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse listVolumeBackups( - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListVolumeBackupsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieve the details of a single VolumeBackup.
-     * 
- */ - public com.google.cloud.gkebackup.v1.VolumeBackup getVolumeBackup( - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetVolumeBackupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new RestorePlan in a given location.
-     * 
- */ - public com.google.longrunning.Operation createRestorePlan( - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateRestorePlanMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists RestorePlans in a given location.
-     * 
- */ - public com.google.cloud.gkebackup.v1.ListRestorePlansResponse listRestorePlans( - com.google.cloud.gkebackup.v1.ListRestorePlansRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRestorePlansMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieve the details of a single RestorePlan.
-     * 
- */ - public com.google.cloud.gkebackup.v1.RestorePlan getRestorePlan( - com.google.cloud.gkebackup.v1.GetRestorePlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRestorePlanMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update a RestorePlan.
-     * 
- */ - public com.google.longrunning.Operation updateRestorePlan( - com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateRestorePlanMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an existing RestorePlan.
-     * 
- */ - public com.google.longrunning.Operation deleteRestorePlan( - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRestorePlanMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Restore for the given RestorePlan.
-     * 
- */ - public com.google.longrunning.Operation createRestore( - com.google.cloud.gkebackup.v1.CreateRestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateRestoreMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the Restores for a given RestorePlan.
-     * 
- */ - public com.google.cloud.gkebackup.v1.ListRestoresResponse listRestores( - com.google.cloud.gkebackup.v1.ListRestoresRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRestoresMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the details of a single Restore.
-     * 
- */ - public com.google.cloud.gkebackup.v1.Restore getRestore( - com.google.cloud.gkebackup.v1.GetRestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRestoreMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update a Restore.
-     * 
- */ - public com.google.longrunning.Operation updateRestore( - com.google.cloud.gkebackup.v1.UpdateRestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateRestoreMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an existing Restore.
-     * 
- */ - public com.google.longrunning.Operation deleteRestore( - com.google.cloud.gkebackup.v1.DeleteRestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRestoreMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the VolumeRestores for a given Restore.
-     * 
- */ - public com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse listVolumeRestores( - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListVolumeRestoresMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieve the details of a single VolumeRestore.
-     * 
- */ - public com.google.cloud.gkebackup.v1.VolumeRestore getVolumeRestore( - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetVolumeRestoreMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * BackupForGKE allows Kubernetes administrators to configure, execute, and
-   * manage backup and restore operations for their GKE clusters.
-   * 
- */ - public static final class BackupForGKEFutureStub - extends io.grpc.stub.AbstractFutureStub { - private BackupForGKEFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BackupForGKEFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BackupForGKEFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new BackupPlan in a given location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createBackupPlan(com.google.cloud.gkebackup.v1.CreateBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateBackupPlanMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists BackupPlans in a given location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkebackup.v1.ListBackupPlansResponse> - listBackupPlans(com.google.cloud.gkebackup.v1.ListBackupPlansRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListBackupPlansMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieve the details of a single BackupPlan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkebackup.v1.BackupPlan> - getBackupPlan(com.google.cloud.gkebackup.v1.GetBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetBackupPlanMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update a BackupPlan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateBackupPlan(com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateBackupPlanMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an existing BackupPlan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteBackupPlan(com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteBackupPlanMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a Backup for the given BackupPlan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createBackup(com.google.cloud.gkebackup.v1.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the Backups for a given BackupPlan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkebackup.v1.ListBackupsResponse> - listBackups(com.google.cloud.gkebackup.v1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieve the details of a single Backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getBackup(com.google.cloud.gkebackup.v1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetBackupMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update a Backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateBackup(com.google.cloud.gkebackup.v1.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an existing Backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteBackup(com.google.cloud.gkebackup.v1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the VolumeBackups for a given Backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse> - listVolumeBackups(com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListVolumeBackupsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieve the details of a single VolumeBackup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkebackup.v1.VolumeBackup> - getVolumeBackup(com.google.cloud.gkebackup.v1.GetVolumeBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetVolumeBackupMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new RestorePlan in a given location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createRestorePlan(com.google.cloud.gkebackup.v1.CreateRestorePlanRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateRestorePlanMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists RestorePlans in a given location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkebackup.v1.ListRestorePlansResponse> - listRestorePlans(com.google.cloud.gkebackup.v1.ListRestorePlansRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRestorePlansMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieve the details of a single RestorePlan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkebackup.v1.RestorePlan> - getRestorePlan(com.google.cloud.gkebackup.v1.GetRestorePlanRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRestorePlanMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update a RestorePlan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateRestorePlan(com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateRestorePlanMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an existing RestorePlan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteRestorePlan(com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRestorePlanMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Restore for the given RestorePlan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createRestore(com.google.cloud.gkebackup.v1.CreateRestoreRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateRestoreMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the Restores for a given RestorePlan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkebackup.v1.ListRestoresResponse> - listRestores(com.google.cloud.gkebackup.v1.ListRestoresRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRestoresMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the details of a single Restore.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getRestore(com.google.cloud.gkebackup.v1.GetRestoreRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRestoreMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update a Restore.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateRestore(com.google.cloud.gkebackup.v1.UpdateRestoreRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateRestoreMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an existing Restore.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteRestore(com.google.cloud.gkebackup.v1.DeleteRestoreRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRestoreMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the VolumeRestores for a given Restore.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse> - listVolumeRestores(com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListVolumeRestoresMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieve the details of a single VolumeRestore.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkebackup.v1.VolumeRestore> - getVolumeRestore(com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetVolumeRestoreMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_BACKUP_PLAN = 0; - private static final int METHODID_LIST_BACKUP_PLANS = 1; - private static final int METHODID_GET_BACKUP_PLAN = 2; - private static final int METHODID_UPDATE_BACKUP_PLAN = 3; - private static final int METHODID_DELETE_BACKUP_PLAN = 4; - private static final int METHODID_CREATE_BACKUP = 5; - private static final int METHODID_LIST_BACKUPS = 6; - private static final int METHODID_GET_BACKUP = 7; - private static final int METHODID_UPDATE_BACKUP = 8; - private static final int METHODID_DELETE_BACKUP = 9; - private static final int METHODID_LIST_VOLUME_BACKUPS = 10; - private static final int METHODID_GET_VOLUME_BACKUP = 11; - private static final int METHODID_CREATE_RESTORE_PLAN = 12; - private static final int METHODID_LIST_RESTORE_PLANS = 13; - private static final int METHODID_GET_RESTORE_PLAN = 14; - private static final int METHODID_UPDATE_RESTORE_PLAN = 15; - private static final int METHODID_DELETE_RESTORE_PLAN = 16; - private static final int METHODID_CREATE_RESTORE = 17; - private static final int METHODID_LIST_RESTORES = 18; - private static final int METHODID_GET_RESTORE = 19; - private static final int METHODID_UPDATE_RESTORE = 20; - private static final int METHODID_DELETE_RESTORE = 21; - private static final int METHODID_LIST_VOLUME_RESTORES = 22; - private static final int METHODID_GET_VOLUME_RESTORE = 23; - - 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 BackupForGKEImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BackupForGKEImplBase 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_BACKUP_PLAN: - serviceImpl.createBackupPlan( - (com.google.cloud.gkebackup.v1.CreateBackupPlanRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_BACKUP_PLANS: - serviceImpl.listBackupPlans( - (com.google.cloud.gkebackup.v1.ListBackupPlansRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_BACKUP_PLAN: - serviceImpl.getBackupPlan( - (com.google.cloud.gkebackup.v1.GetBackupPlanRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_BACKUP_PLAN: - serviceImpl.updateBackupPlan( - (com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_BACKUP_PLAN: - serviceImpl.deleteBackupPlan( - (com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_BACKUP: - serviceImpl.createBackup( - (com.google.cloud.gkebackup.v1.CreateBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_BACKUPS: - serviceImpl.listBackups( - (com.google.cloud.gkebackup.v1.ListBackupsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_BACKUP: - serviceImpl.getBackup( - (com.google.cloud.gkebackup.v1.GetBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_BACKUP: - serviceImpl.updateBackup( - (com.google.cloud.gkebackup.v1.UpdateBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_BACKUP: - serviceImpl.deleteBackup( - (com.google.cloud.gkebackup.v1.DeleteBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_VOLUME_BACKUPS: - serviceImpl.listVolumeBackups( - (com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_VOLUME_BACKUP: - serviceImpl.getVolumeBackup( - (com.google.cloud.gkebackup.v1.GetVolumeBackupRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_RESTORE_PLAN: - serviceImpl.createRestorePlan( - (com.google.cloud.gkebackup.v1.CreateRestorePlanRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RESTORE_PLANS: - serviceImpl.listRestorePlans( - (com.google.cloud.gkebackup.v1.ListRestorePlansRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_RESTORE_PLAN: - serviceImpl.getRestorePlan( - (com.google.cloud.gkebackup.v1.GetRestorePlanRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_RESTORE_PLAN: - serviceImpl.updateRestorePlan( - (com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_RESTORE_PLAN: - serviceImpl.deleteRestorePlan( - (com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_RESTORE: - serviceImpl.createRestore( - (com.google.cloud.gkebackup.v1.CreateRestoreRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RESTORES: - serviceImpl.listRestores( - (com.google.cloud.gkebackup.v1.ListRestoresRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_RESTORE: - serviceImpl.getRestore( - (com.google.cloud.gkebackup.v1.GetRestoreRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_RESTORE: - serviceImpl.updateRestore( - (com.google.cloud.gkebackup.v1.UpdateRestoreRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_RESTORE: - serviceImpl.deleteRestore( - (com.google.cloud.gkebackup.v1.DeleteRestoreRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_VOLUME_RESTORES: - serviceImpl.listVolumeRestores( - (com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse>) - responseObserver); - break; - case METHODID_GET_VOLUME_RESTORE: - serviceImpl.getVolumeRestore( - (com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest) 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(); - } - } - } - - private abstract static class BackupForGKEBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - BackupForGKEBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BackupForGKE"); - } - } - - private static final class BackupForGKEFileDescriptorSupplier - extends BackupForGKEBaseDescriptorSupplier { - BackupForGKEFileDescriptorSupplier() {} - } - - private static final class BackupForGKEMethodDescriptorSupplier - extends BackupForGKEBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - BackupForGKEMethodDescriptorSupplier(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 (BackupForGKEGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BackupForGKEFileDescriptorSupplier()) - .addMethod(getCreateBackupPlanMethod()) - .addMethod(getListBackupPlansMethod()) - .addMethod(getGetBackupPlanMethod()) - .addMethod(getUpdateBackupPlanMethod()) - .addMethod(getDeleteBackupPlanMethod()) - .addMethod(getCreateBackupMethod()) - .addMethod(getListBackupsMethod()) - .addMethod(getGetBackupMethod()) - .addMethod(getUpdateBackupMethod()) - .addMethod(getDeleteBackupMethod()) - .addMethod(getListVolumeBackupsMethod()) - .addMethod(getGetVolumeBackupMethod()) - .addMethod(getCreateRestorePlanMethod()) - .addMethod(getListRestorePlansMethod()) - .addMethod(getGetRestorePlanMethod()) - .addMethod(getUpdateRestorePlanMethod()) - .addMethod(getDeleteRestorePlanMethod()) - .addMethod(getCreateRestoreMethod()) - .addMethod(getListRestoresMethod()) - .addMethod(getGetRestoreMethod()) - .addMethod(getUpdateRestoreMethod()) - .addMethod(getDeleteRestoreMethod()) - .addMethod(getListVolumeRestoresMethod()) - .addMethod(getGetVolumeRestoreMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java b/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java similarity index 98% rename from google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java rename to owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java index 6b2f2b2..0f5d9e0 100644 --- a/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java +++ b/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; @@ -62,13 +63,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -188,6 +189,7 @@ public final com.google.longrunning.OperationsClient getOperationsClient() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ + @BetaApi public final OperationsClient getHttpJsonOperationsClient() { return httpJsonOperationsClient; } @@ -3437,10 +3439,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListBackupPlansPagedResponse extends AbstractPagedListResponse< - ListBackupPlansRequest, - ListBackupPlansResponse, - BackupPlan, - ListBackupPlansPage, + ListBackupPlansRequest, ListBackupPlansResponse, BackupPlan, ListBackupPlansPage, ListBackupPlansFixedSizeCollection> { public static ApiFuture createAsync( @@ -3490,10 +3489,7 @@ public ApiFuture createPageAsync( public static class ListBackupPlansFixedSizeCollection extends AbstractFixedSizeCollection< - ListBackupPlansRequest, - ListBackupPlansResponse, - BackupPlan, - ListBackupPlansPage, + ListBackupPlansRequest, ListBackupPlansResponse, BackupPlan, ListBackupPlansPage, ListBackupPlansFixedSizeCollection> { private ListBackupPlansFixedSizeCollection( @@ -3514,10 +3510,7 @@ protected ListBackupPlansFixedSizeCollection createCollection( public static class ListBackupsPagedResponse extends AbstractPagedListResponse< - ListBackupsRequest, - ListBackupsResponse, - Backup, - ListBackupsPage, + ListBackupsRequest, ListBackupsResponse, Backup, ListBackupsPage, ListBackupsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3564,10 +3557,7 @@ public ApiFuture createPageAsync( public static class ListBackupsFixedSizeCollection extends AbstractFixedSizeCollection< - ListBackupsRequest, - ListBackupsResponse, - Backup, - ListBackupsPage, + ListBackupsRequest, ListBackupsResponse, Backup, ListBackupsPage, ListBackupsFixedSizeCollection> { private ListBackupsFixedSizeCollection(List pages, int collectionSize) { @@ -3587,10 +3577,7 @@ protected ListBackupsFixedSizeCollection createCollection( public static class ListVolumeBackupsPagedResponse extends AbstractPagedListResponse< - ListVolumeBackupsRequest, - ListVolumeBackupsResponse, - VolumeBackup, - ListVolumeBackupsPage, + ListVolumeBackupsRequest, ListVolumeBackupsResponse, VolumeBackup, ListVolumeBackupsPage, ListVolumeBackupsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3611,9 +3598,7 @@ private ListVolumeBackupsPagedResponse(ListVolumeBackupsPage page) { public static class ListVolumeBackupsPage extends AbstractPage< - ListVolumeBackupsRequest, - ListVolumeBackupsResponse, - VolumeBackup, + ListVolumeBackupsRequest, ListVolumeBackupsResponse, VolumeBackup, ListVolumeBackupsPage> { private ListVolumeBackupsPage( @@ -3643,10 +3628,7 @@ public ApiFuture createPageAsync( public static class ListVolumeBackupsFixedSizeCollection extends AbstractFixedSizeCollection< - ListVolumeBackupsRequest, - ListVolumeBackupsResponse, - VolumeBackup, - ListVolumeBackupsPage, + ListVolumeBackupsRequest, ListVolumeBackupsResponse, VolumeBackup, ListVolumeBackupsPage, ListVolumeBackupsFixedSizeCollection> { private ListVolumeBackupsFixedSizeCollection( @@ -3667,10 +3649,7 @@ protected ListVolumeBackupsFixedSizeCollection createCollection( public static class ListRestorePlansPagedResponse extends AbstractPagedListResponse< - ListRestorePlansRequest, - ListRestorePlansResponse, - RestorePlan, - ListRestorePlansPage, + ListRestorePlansRequest, ListRestorePlansResponse, RestorePlan, ListRestorePlansPage, ListRestorePlansFixedSizeCollection> { public static ApiFuture createAsync( @@ -3720,10 +3699,7 @@ public ApiFuture createPageAsync( public static class ListRestorePlansFixedSizeCollection extends AbstractFixedSizeCollection< - ListRestorePlansRequest, - ListRestorePlansResponse, - RestorePlan, - ListRestorePlansPage, + ListRestorePlansRequest, ListRestorePlansResponse, RestorePlan, ListRestorePlansPage, ListRestorePlansFixedSizeCollection> { private ListRestorePlansFixedSizeCollection( @@ -3744,10 +3720,7 @@ protected ListRestorePlansFixedSizeCollection createCollection( public static class ListRestoresPagedResponse extends AbstractPagedListResponse< - ListRestoresRequest, - ListRestoresResponse, - Restore, - ListRestoresPage, + ListRestoresRequest, ListRestoresResponse, Restore, ListRestoresPage, ListRestoresFixedSizeCollection> { public static ApiFuture createAsync( @@ -3796,10 +3769,7 @@ public ApiFuture createPageAsync( public static class ListRestoresFixedSizeCollection extends AbstractFixedSizeCollection< - ListRestoresRequest, - ListRestoresResponse, - Restore, - ListRestoresPage, + ListRestoresRequest, ListRestoresResponse, Restore, ListRestoresPage, ListRestoresFixedSizeCollection> { private ListRestoresFixedSizeCollection(List pages, int collectionSize) { @@ -3819,11 +3789,8 @@ protected ListRestoresFixedSizeCollection createCollection( public static class ListVolumeRestoresPagedResponse extends AbstractPagedListResponse< - ListVolumeRestoresRequest, - ListVolumeRestoresResponse, - VolumeRestore, - ListVolumeRestoresPage, - ListVolumeRestoresFixedSizeCollection> { + ListVolumeRestoresRequest, ListVolumeRestoresResponse, VolumeRestore, + ListVolumeRestoresPage, ListVolumeRestoresFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, @@ -3843,9 +3810,7 @@ private ListVolumeRestoresPagedResponse(ListVolumeRestoresPage page) { public static class ListVolumeRestoresPage extends AbstractPage< - ListVolumeRestoresRequest, - ListVolumeRestoresResponse, - VolumeRestore, + ListVolumeRestoresRequest, ListVolumeRestoresResponse, VolumeRestore, ListVolumeRestoresPage> { private ListVolumeRestoresPage( @@ -3875,11 +3840,8 @@ public ApiFuture createPageAsync( public static class ListVolumeRestoresFixedSizeCollection extends AbstractFixedSizeCollection< - ListVolumeRestoresRequest, - ListVolumeRestoresResponse, - VolumeRestore, - ListVolumeRestoresPage, - ListVolumeRestoresFixedSizeCollection> { + ListVolumeRestoresRequest, ListVolumeRestoresResponse, VolumeRestore, + ListVolumeRestoresPage, ListVolumeRestoresFixedSizeCollection> { private ListVolumeRestoresFixedSizeCollection( List pages, int collectionSize) { diff --git a/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKESettings.java b/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKESettings.java similarity index 98% rename from google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKESettings.java rename to owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKESettings.java index c4202fe..9db8076 100644 --- a/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKESettings.java +++ b/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKESettings.java @@ -34,6 +34,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.cloud.gkebackup.v1.stub.BackupForGKEStubSettings; @@ -50,9 +51,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/gapic_metadata.json similarity index 100% rename from google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/gapic_metadata.json diff --git a/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/package-info.java b/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/package-info.java similarity index 100% rename from google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/package-info.java diff --git a/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStub.java b/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStub.java similarity index 100% rename from google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStub.java rename to owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStub.java diff --git a/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java b/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java similarity index 99% rename from google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java rename to owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java index 854c954..ad6d49d 100644 --- a/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java @@ -107,9 +107,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -469,8 +469,7 @@ public ApiFuture getFuturePagedResponse( ListVolumeBackupsRequest, ListVolumeBackupsResponse, ListVolumeBackupsPagedResponse> LIST_VOLUME_BACKUPS_PAGE_STR_FACT = new PagedListResponseFactory< - ListVolumeBackupsRequest, - ListVolumeBackupsResponse, + ListVolumeBackupsRequest, ListVolumeBackupsResponse, ListVolumeBackupsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -526,8 +525,7 @@ public ApiFuture getFuturePagedResponse( ListVolumeRestoresRequest, ListVolumeRestoresResponse, ListVolumeRestoresPagedResponse> LIST_VOLUME_RESTORES_PAGE_STR_FACT = new PagedListResponseFactory< - ListVolumeRestoresRequest, - ListVolumeRestoresResponse, + ListVolumeRestoresRequest, ListVolumeRestoresResponse, ListVolumeRestoresPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( diff --git a/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKECallableFactory.java b/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKECallableFactory.java similarity index 100% rename from google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKECallableFactory.java rename to owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKECallableFactory.java diff --git a/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKEStub.java b/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKEStub.java similarity index 99% rename from google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKEStub.java rename to owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKEStub.java index 010c036..fcff246 100644 --- a/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKEStub.java +++ b/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKEStub.java @@ -74,6 +74,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKECallableFactory.java b/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKECallableFactory.java similarity index 100% rename from google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKECallableFactory.java rename to owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKECallableFactory.java diff --git a/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKEStub.java b/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKEStub.java similarity index 99% rename from google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKEStub.java rename to owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKEStub.java index a726aa1..bbe1fff 100644 --- a/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKEStub.java +++ b/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKEStub.java @@ -35,6 +35,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientHttpJsonTest.java similarity index 100% rename from google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientHttpJsonTest.java rename to owl-bot-staging/v1/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientHttpJsonTest.java diff --git a/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientTest.java b/owl-bot-staging/v1/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientTest.java similarity index 100% rename from google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientTest.java rename to owl-bot-staging/v1/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientTest.java diff --git a/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/MockBackupForGKE.java b/owl-bot-staging/v1/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/MockBackupForGKE.java similarity index 100% rename from google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/MockBackupForGKE.java rename to owl-bot-staging/v1/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/MockBackupForGKE.java diff --git a/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/MockBackupForGKEImpl.java b/owl-bot-staging/v1/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/MockBackupForGKEImpl.java similarity index 100% rename from google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/MockBackupForGKEImpl.java rename to owl-bot-staging/v1/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/MockBackupForGKEImpl.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEGrpc.java new file mode 100644 index 0000000..7ba6155 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEGrpc.java @@ -0,0 +1,2286 @@ +package com.google.cloud.gkebackup.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * BackupForGKE allows Kubernetes administrators to configure, execute, and
+ * manage backup and restore operations for their GKE clusters.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/gkebackup/v1/gkebackup.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class BackupForGKEGrpc { + + private BackupForGKEGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.gkebackup.v1.BackupForGKE"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateBackupPlanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBackupPlan", + requestType = com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateBackupPlanMethod() { + io.grpc.MethodDescriptor getCreateBackupPlanMethod; + if ((getCreateBackupPlanMethod = BackupForGKEGrpc.getCreateBackupPlanMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getCreateBackupPlanMethod = BackupForGKEGrpc.getCreateBackupPlanMethod) == null) { + BackupForGKEGrpc.getCreateBackupPlanMethod = getCreateBackupPlanMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBackupPlan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("CreateBackupPlan")) + .build(); + } + } + } + return getCreateBackupPlanMethod; + } + + private static volatile io.grpc.MethodDescriptor getListBackupPlansMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBackupPlans", + requestType = com.google.cloud.gkebackup.v1.ListBackupPlansRequest.class, + responseType = com.google.cloud.gkebackup.v1.ListBackupPlansResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListBackupPlansMethod() { + io.grpc.MethodDescriptor getListBackupPlansMethod; + if ((getListBackupPlansMethod = BackupForGKEGrpc.getListBackupPlansMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getListBackupPlansMethod = BackupForGKEGrpc.getListBackupPlansMethod) == null) { + BackupForGKEGrpc.getListBackupPlansMethod = getListBackupPlansMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBackupPlans")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListBackupPlansRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListBackupPlansResponse.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("ListBackupPlans")) + .build(); + } + } + } + return getListBackupPlansMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetBackupPlanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBackupPlan", + requestType = com.google.cloud.gkebackup.v1.GetBackupPlanRequest.class, + responseType = com.google.cloud.gkebackup.v1.BackupPlan.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetBackupPlanMethod() { + io.grpc.MethodDescriptor getGetBackupPlanMethod; + if ((getGetBackupPlanMethod = BackupForGKEGrpc.getGetBackupPlanMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getGetBackupPlanMethod = BackupForGKEGrpc.getGetBackupPlanMethod) == null) { + BackupForGKEGrpc.getGetBackupPlanMethod = getGetBackupPlanMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBackupPlan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.GetBackupPlanRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("GetBackupPlan")) + .build(); + } + } + } + return getGetBackupPlanMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateBackupPlanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBackupPlan", + requestType = com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateBackupPlanMethod() { + io.grpc.MethodDescriptor getUpdateBackupPlanMethod; + if ((getUpdateBackupPlanMethod = BackupForGKEGrpc.getUpdateBackupPlanMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getUpdateBackupPlanMethod = BackupForGKEGrpc.getUpdateBackupPlanMethod) == null) { + BackupForGKEGrpc.getUpdateBackupPlanMethod = getUpdateBackupPlanMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBackupPlan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("UpdateBackupPlan")) + .build(); + } + } + } + return getUpdateBackupPlanMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteBackupPlanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBackupPlan", + requestType = com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteBackupPlanMethod() { + io.grpc.MethodDescriptor getDeleteBackupPlanMethod; + if ((getDeleteBackupPlanMethod = BackupForGKEGrpc.getDeleteBackupPlanMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getDeleteBackupPlanMethod = BackupForGKEGrpc.getDeleteBackupPlanMethod) == null) { + BackupForGKEGrpc.getDeleteBackupPlanMethod = getDeleteBackupPlanMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBackupPlan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("DeleteBackupPlan")) + .build(); + } + } + } + return getDeleteBackupPlanMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBackup", + requestType = com.google.cloud.gkebackup.v1.CreateBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateBackupMethod() { + io.grpc.MethodDescriptor getCreateBackupMethod; + if ((getCreateBackupMethod = BackupForGKEGrpc.getCreateBackupMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getCreateBackupMethod = BackupForGKEGrpc.getCreateBackupMethod) == null) { + BackupForGKEGrpc.getCreateBackupMethod = getCreateBackupMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.CreateBackupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("CreateBackup")) + .build(); + } + } + } + return getCreateBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor getListBackupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBackups", + requestType = com.google.cloud.gkebackup.v1.ListBackupsRequest.class, + responseType = com.google.cloud.gkebackup.v1.ListBackupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListBackupsMethod() { + io.grpc.MethodDescriptor getListBackupsMethod; + if ((getListBackupsMethod = BackupForGKEGrpc.getListBackupsMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getListBackupsMethod = BackupForGKEGrpc.getListBackupsMethod) == null) { + BackupForGKEGrpc.getListBackupsMethod = getListBackupsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBackups")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListBackupsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListBackupsResponse.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("ListBackups")) + .build(); + } + } + } + return getListBackupsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBackup", + requestType = com.google.cloud.gkebackup.v1.GetBackupRequest.class, + responseType = com.google.cloud.gkebackup.v1.Backup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetBackupMethod() { + io.grpc.MethodDescriptor getGetBackupMethod; + if ((getGetBackupMethod = BackupForGKEGrpc.getGetBackupMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getGetBackupMethod = BackupForGKEGrpc.getGetBackupMethod) == null) { + BackupForGKEGrpc.getGetBackupMethod = getGetBackupMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.GetBackupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.Backup.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("GetBackup")) + .build(); + } + } + } + return getGetBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBackup", + requestType = com.google.cloud.gkebackup.v1.UpdateBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateBackupMethod() { + io.grpc.MethodDescriptor getUpdateBackupMethod; + if ((getUpdateBackupMethod = BackupForGKEGrpc.getUpdateBackupMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getUpdateBackupMethod = BackupForGKEGrpc.getUpdateBackupMethod) == null) { + BackupForGKEGrpc.getUpdateBackupMethod = getUpdateBackupMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.UpdateBackupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("UpdateBackup")) + .build(); + } + } + } + return getUpdateBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBackup", + requestType = com.google.cloud.gkebackup.v1.DeleteBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteBackupMethod() { + io.grpc.MethodDescriptor getDeleteBackupMethod; + if ((getDeleteBackupMethod = BackupForGKEGrpc.getDeleteBackupMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getDeleteBackupMethod = BackupForGKEGrpc.getDeleteBackupMethod) == null) { + BackupForGKEGrpc.getDeleteBackupMethod = getDeleteBackupMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.DeleteBackupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("DeleteBackup")) + .build(); + } + } + } + return getDeleteBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor getListVolumeBackupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVolumeBackups", + requestType = com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.class, + responseType = com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListVolumeBackupsMethod() { + io.grpc.MethodDescriptor getListVolumeBackupsMethod; + if ((getListVolumeBackupsMethod = BackupForGKEGrpc.getListVolumeBackupsMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getListVolumeBackupsMethod = BackupForGKEGrpc.getListVolumeBackupsMethod) == null) { + BackupForGKEGrpc.getListVolumeBackupsMethod = getListVolumeBackupsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVolumeBackups")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("ListVolumeBackups")) + .build(); + } + } + } + return getListVolumeBackupsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetVolumeBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetVolumeBackup", + requestType = com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.class, + responseType = com.google.cloud.gkebackup.v1.VolumeBackup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetVolumeBackupMethod() { + io.grpc.MethodDescriptor getGetVolumeBackupMethod; + if ((getGetVolumeBackupMethod = BackupForGKEGrpc.getGetVolumeBackupMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getGetVolumeBackupMethod = BackupForGKEGrpc.getGetVolumeBackupMethod) == null) { + BackupForGKEGrpc.getGetVolumeBackupMethod = getGetVolumeBackupMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolumeBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.VolumeBackup.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("GetVolumeBackup")) + .build(); + } + } + } + return getGetVolumeBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateRestorePlanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRestorePlan", + requestType = com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateRestorePlanMethod() { + io.grpc.MethodDescriptor getCreateRestorePlanMethod; + if ((getCreateRestorePlanMethod = BackupForGKEGrpc.getCreateRestorePlanMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getCreateRestorePlanMethod = BackupForGKEGrpc.getCreateRestorePlanMethod) == null) { + BackupForGKEGrpc.getCreateRestorePlanMethod = getCreateRestorePlanMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRestorePlan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("CreateRestorePlan")) + .build(); + } + } + } + return getCreateRestorePlanMethod; + } + + private static volatile io.grpc.MethodDescriptor getListRestorePlansMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRestorePlans", + requestType = com.google.cloud.gkebackup.v1.ListRestorePlansRequest.class, + responseType = com.google.cloud.gkebackup.v1.ListRestorePlansResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListRestorePlansMethod() { + io.grpc.MethodDescriptor getListRestorePlansMethod; + if ((getListRestorePlansMethod = BackupForGKEGrpc.getListRestorePlansMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getListRestorePlansMethod = BackupForGKEGrpc.getListRestorePlansMethod) == null) { + BackupForGKEGrpc.getListRestorePlansMethod = getListRestorePlansMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRestorePlans")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListRestorePlansRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListRestorePlansResponse.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("ListRestorePlans")) + .build(); + } + } + } + return getListRestorePlansMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetRestorePlanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRestorePlan", + requestType = com.google.cloud.gkebackup.v1.GetRestorePlanRequest.class, + responseType = com.google.cloud.gkebackup.v1.RestorePlan.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetRestorePlanMethod() { + io.grpc.MethodDescriptor getGetRestorePlanMethod; + if ((getGetRestorePlanMethod = BackupForGKEGrpc.getGetRestorePlanMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getGetRestorePlanMethod = BackupForGKEGrpc.getGetRestorePlanMethod) == null) { + BackupForGKEGrpc.getGetRestorePlanMethod = getGetRestorePlanMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRestorePlan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.GetRestorePlanRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("GetRestorePlan")) + .build(); + } + } + } + return getGetRestorePlanMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateRestorePlanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateRestorePlan", + requestType = com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateRestorePlanMethod() { + io.grpc.MethodDescriptor getUpdateRestorePlanMethod; + if ((getUpdateRestorePlanMethod = BackupForGKEGrpc.getUpdateRestorePlanMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getUpdateRestorePlanMethod = BackupForGKEGrpc.getUpdateRestorePlanMethod) == null) { + BackupForGKEGrpc.getUpdateRestorePlanMethod = getUpdateRestorePlanMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRestorePlan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("UpdateRestorePlan")) + .build(); + } + } + } + return getUpdateRestorePlanMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteRestorePlanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRestorePlan", + requestType = com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteRestorePlanMethod() { + io.grpc.MethodDescriptor getDeleteRestorePlanMethod; + if ((getDeleteRestorePlanMethod = BackupForGKEGrpc.getDeleteRestorePlanMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getDeleteRestorePlanMethod = BackupForGKEGrpc.getDeleteRestorePlanMethod) == null) { + BackupForGKEGrpc.getDeleteRestorePlanMethod = getDeleteRestorePlanMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRestorePlan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("DeleteRestorePlan")) + .build(); + } + } + } + return getDeleteRestorePlanMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateRestoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRestore", + requestType = com.google.cloud.gkebackup.v1.CreateRestoreRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateRestoreMethod() { + io.grpc.MethodDescriptor getCreateRestoreMethod; + if ((getCreateRestoreMethod = BackupForGKEGrpc.getCreateRestoreMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getCreateRestoreMethod = BackupForGKEGrpc.getCreateRestoreMethod) == null) { + BackupForGKEGrpc.getCreateRestoreMethod = getCreateRestoreMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRestore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.CreateRestoreRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("CreateRestore")) + .build(); + } + } + } + return getCreateRestoreMethod; + } + + private static volatile io.grpc.MethodDescriptor getListRestoresMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRestores", + requestType = com.google.cloud.gkebackup.v1.ListRestoresRequest.class, + responseType = com.google.cloud.gkebackup.v1.ListRestoresResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListRestoresMethod() { + io.grpc.MethodDescriptor getListRestoresMethod; + if ((getListRestoresMethod = BackupForGKEGrpc.getListRestoresMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getListRestoresMethod = BackupForGKEGrpc.getListRestoresMethod) == null) { + BackupForGKEGrpc.getListRestoresMethod = getListRestoresMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRestores")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListRestoresRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListRestoresResponse.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("ListRestores")) + .build(); + } + } + } + return getListRestoresMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetRestoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRestore", + requestType = com.google.cloud.gkebackup.v1.GetRestoreRequest.class, + responseType = com.google.cloud.gkebackup.v1.Restore.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetRestoreMethod() { + io.grpc.MethodDescriptor getGetRestoreMethod; + if ((getGetRestoreMethod = BackupForGKEGrpc.getGetRestoreMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getGetRestoreMethod = BackupForGKEGrpc.getGetRestoreMethod) == null) { + BackupForGKEGrpc.getGetRestoreMethod = getGetRestoreMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRestore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.GetRestoreRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.Restore.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("GetRestore")) + .build(); + } + } + } + return getGetRestoreMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateRestoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateRestore", + requestType = com.google.cloud.gkebackup.v1.UpdateRestoreRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateRestoreMethod() { + io.grpc.MethodDescriptor getUpdateRestoreMethod; + if ((getUpdateRestoreMethod = BackupForGKEGrpc.getUpdateRestoreMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getUpdateRestoreMethod = BackupForGKEGrpc.getUpdateRestoreMethod) == null) { + BackupForGKEGrpc.getUpdateRestoreMethod = getUpdateRestoreMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRestore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.UpdateRestoreRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("UpdateRestore")) + .build(); + } + } + } + return getUpdateRestoreMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteRestoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRestore", + requestType = com.google.cloud.gkebackup.v1.DeleteRestoreRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteRestoreMethod() { + io.grpc.MethodDescriptor getDeleteRestoreMethod; + if ((getDeleteRestoreMethod = BackupForGKEGrpc.getDeleteRestoreMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getDeleteRestoreMethod = BackupForGKEGrpc.getDeleteRestoreMethod) == null) { + BackupForGKEGrpc.getDeleteRestoreMethod = getDeleteRestoreMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRestore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.DeleteRestoreRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("DeleteRestore")) + .build(); + } + } + } + return getDeleteRestoreMethod; + } + + private static volatile io.grpc.MethodDescriptor getListVolumeRestoresMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVolumeRestores", + requestType = com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.class, + responseType = com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListVolumeRestoresMethod() { + io.grpc.MethodDescriptor getListVolumeRestoresMethod; + if ((getListVolumeRestoresMethod = BackupForGKEGrpc.getListVolumeRestoresMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getListVolumeRestoresMethod = BackupForGKEGrpc.getListVolumeRestoresMethod) == null) { + BackupForGKEGrpc.getListVolumeRestoresMethod = getListVolumeRestoresMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVolumeRestores")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("ListVolumeRestores")) + .build(); + } + } + } + return getListVolumeRestoresMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetVolumeRestoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetVolumeRestore", + requestType = com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.class, + responseType = com.google.cloud.gkebackup.v1.VolumeRestore.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetVolumeRestoreMethod() { + io.grpc.MethodDescriptor getGetVolumeRestoreMethod; + if ((getGetVolumeRestoreMethod = BackupForGKEGrpc.getGetVolumeRestoreMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getGetVolumeRestoreMethod = BackupForGKEGrpc.getGetVolumeRestoreMethod) == null) { + BackupForGKEGrpc.getGetVolumeRestoreMethod = getGetVolumeRestoreMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolumeRestore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.VolumeRestore.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("GetVolumeRestore")) + .build(); + } + } + } + return getGetVolumeRestoreMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static BackupForGKEStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BackupForGKEStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BackupForGKEStub(channel, callOptions); + } + }; + return BackupForGKEStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static BackupForGKEBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BackupForGKEBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BackupForGKEBlockingStub(channel, callOptions); + } + }; + return BackupForGKEBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static BackupForGKEFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BackupForGKEFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BackupForGKEFutureStub(channel, callOptions); + } + }; + return BackupForGKEFutureStub.newStub(factory, channel); + } + + /** + *
+   * BackupForGKE allows Kubernetes administrators to configure, execute, and
+   * manage backup and restore operations for their GKE clusters.
+   * 
+ */ + public static abstract class BackupForGKEImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a new BackupPlan in a given location.
+     * 
+ */ + public void createBackupPlan(com.google.cloud.gkebackup.v1.CreateBackupPlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBackupPlanMethod(), responseObserver); + } + + /** + *
+     * Lists BackupPlans in a given location.
+     * 
+ */ + public void listBackupPlans(com.google.cloud.gkebackup.v1.ListBackupPlansRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBackupPlansMethod(), responseObserver); + } + + /** + *
+     * Retrieve the details of a single BackupPlan.
+     * 
+ */ + public void getBackupPlan(com.google.cloud.gkebackup.v1.GetBackupPlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupPlanMethod(), responseObserver); + } + + /** + *
+     * Update a BackupPlan.
+     * 
+ */ + public void updateBackupPlan(com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBackupPlanMethod(), responseObserver); + } + + /** + *
+     * Deletes an existing BackupPlan.
+     * 
+ */ + public void deleteBackupPlan(com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBackupPlanMethod(), responseObserver); + } + + /** + *
+     * Creates a Backup for the given BackupPlan.
+     * 
+ */ + public void createBackup(com.google.cloud.gkebackup.v1.CreateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBackupMethod(), responseObserver); + } + + /** + *
+     * Lists the Backups for a given BackupPlan.
+     * 
+ */ + public void listBackups(com.google.cloud.gkebackup.v1.ListBackupsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBackupsMethod(), responseObserver); + } + + /** + *
+     * Retrieve the details of a single Backup.
+     * 
+ */ + public void getBackup(com.google.cloud.gkebackup.v1.GetBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); + } + + /** + *
+     * Update a Backup.
+     * 
+ */ + public void updateBackup(com.google.cloud.gkebackup.v1.UpdateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBackupMethod(), responseObserver); + } + + /** + *
+     * Deletes an existing Backup.
+     * 
+ */ + public void deleteBackup(com.google.cloud.gkebackup.v1.DeleteBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBackupMethod(), responseObserver); + } + + /** + *
+     * Lists the VolumeBackups for a given Backup.
+     * 
+ */ + public void listVolumeBackups(com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVolumeBackupsMethod(), responseObserver); + } + + /** + *
+     * Retrieve the details of a single VolumeBackup.
+     * 
+ */ + public void getVolumeBackup(com.google.cloud.gkebackup.v1.GetVolumeBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVolumeBackupMethod(), responseObserver); + } + + /** + *
+     * Creates a new RestorePlan in a given location.
+     * 
+ */ + public void createRestorePlan(com.google.cloud.gkebackup.v1.CreateRestorePlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRestorePlanMethod(), responseObserver); + } + + /** + *
+     * Lists RestorePlans in a given location.
+     * 
+ */ + public void listRestorePlans(com.google.cloud.gkebackup.v1.ListRestorePlansRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRestorePlansMethod(), responseObserver); + } + + /** + *
+     * Retrieve the details of a single RestorePlan.
+     * 
+ */ + public void getRestorePlan(com.google.cloud.gkebackup.v1.GetRestorePlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRestorePlanMethod(), responseObserver); + } + + /** + *
+     * Update a RestorePlan.
+     * 
+ */ + public void updateRestorePlan(com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateRestorePlanMethod(), responseObserver); + } + + /** + *
+     * Deletes an existing RestorePlan.
+     * 
+ */ + public void deleteRestorePlan(com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRestorePlanMethod(), responseObserver); + } + + /** + *
+     * Creates a new Restore for the given RestorePlan.
+     * 
+ */ + public void createRestore(com.google.cloud.gkebackup.v1.CreateRestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRestoreMethod(), responseObserver); + } + + /** + *
+     * Lists the Restores for a given RestorePlan.
+     * 
+ */ + public void listRestores(com.google.cloud.gkebackup.v1.ListRestoresRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRestoresMethod(), responseObserver); + } + + /** + *
+     * Retrieves the details of a single Restore.
+     * 
+ */ + public void getRestore(com.google.cloud.gkebackup.v1.GetRestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRestoreMethod(), responseObserver); + } + + /** + *
+     * Update a Restore.
+     * 
+ */ + public void updateRestore(com.google.cloud.gkebackup.v1.UpdateRestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateRestoreMethod(), responseObserver); + } + + /** + *
+     * Deletes an existing Restore.
+     * 
+ */ + public void deleteRestore(com.google.cloud.gkebackup.v1.DeleteRestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRestoreMethod(), responseObserver); + } + + /** + *
+     * Lists the VolumeRestores for a given Restore.
+     * 
+ */ + public void listVolumeRestores(com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVolumeRestoresMethod(), responseObserver); + } + + /** + *
+     * Retrieve the details of a single VolumeRestore.
+     * 
+ */ + public void getVolumeRestore(com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVolumeRestoreMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateBackupPlanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_BACKUP_PLAN))) + .addMethod( + getListBackupPlansMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.ListBackupPlansRequest, + com.google.cloud.gkebackup.v1.ListBackupPlansResponse>( + this, METHODID_LIST_BACKUP_PLANS))) + .addMethod( + getGetBackupPlanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.GetBackupPlanRequest, + com.google.cloud.gkebackup.v1.BackupPlan>( + this, METHODID_GET_BACKUP_PLAN))) + .addMethod( + getUpdateBackupPlanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_BACKUP_PLAN))) + .addMethod( + getDeleteBackupPlanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_BACKUP_PLAN))) + .addMethod( + getCreateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.CreateBackupRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_BACKUP))) + .addMethod( + getListBackupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.ListBackupsRequest, + com.google.cloud.gkebackup.v1.ListBackupsResponse>( + this, METHODID_LIST_BACKUPS))) + .addMethod( + getGetBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.GetBackupRequest, + com.google.cloud.gkebackup.v1.Backup>( + this, METHODID_GET_BACKUP))) + .addMethod( + getUpdateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.UpdateBackupRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_BACKUP))) + .addMethod( + getDeleteBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.DeleteBackupRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_BACKUP))) + .addMethod( + getListVolumeBackupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest, + com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse>( + this, METHODID_LIST_VOLUME_BACKUPS))) + .addMethod( + getGetVolumeBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest, + com.google.cloud.gkebackup.v1.VolumeBackup>( + this, METHODID_GET_VOLUME_BACKUP))) + .addMethod( + getCreateRestorePlanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_RESTORE_PLAN))) + .addMethod( + getListRestorePlansMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.ListRestorePlansRequest, + com.google.cloud.gkebackup.v1.ListRestorePlansResponse>( + this, METHODID_LIST_RESTORE_PLANS))) + .addMethod( + getGetRestorePlanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.GetRestorePlanRequest, + com.google.cloud.gkebackup.v1.RestorePlan>( + this, METHODID_GET_RESTORE_PLAN))) + .addMethod( + getUpdateRestorePlanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_RESTORE_PLAN))) + .addMethod( + getDeleteRestorePlanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_RESTORE_PLAN))) + .addMethod( + getCreateRestoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.CreateRestoreRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_RESTORE))) + .addMethod( + getListRestoresMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.ListRestoresRequest, + com.google.cloud.gkebackup.v1.ListRestoresResponse>( + this, METHODID_LIST_RESTORES))) + .addMethod( + getGetRestoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.GetRestoreRequest, + com.google.cloud.gkebackup.v1.Restore>( + this, METHODID_GET_RESTORE))) + .addMethod( + getUpdateRestoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.UpdateRestoreRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_RESTORE))) + .addMethod( + getDeleteRestoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.DeleteRestoreRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_RESTORE))) + .addMethod( + getListVolumeRestoresMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest, + com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse>( + this, METHODID_LIST_VOLUME_RESTORES))) + .addMethod( + getGetVolumeRestoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest, + com.google.cloud.gkebackup.v1.VolumeRestore>( + this, METHODID_GET_VOLUME_RESTORE))) + .build(); + } + } + + /** + *
+   * BackupForGKE allows Kubernetes administrators to configure, execute, and
+   * manage backup and restore operations for their GKE clusters.
+   * 
+ */ + public static final class BackupForGKEStub extends io.grpc.stub.AbstractAsyncStub { + private BackupForGKEStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BackupForGKEStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BackupForGKEStub(channel, callOptions); + } + + /** + *
+     * Creates a new BackupPlan in a given location.
+     * 
+ */ + public void createBackupPlan(com.google.cloud.gkebackup.v1.CreateBackupPlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBackupPlanMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists BackupPlans in a given location.
+     * 
+ */ + public void listBackupPlans(com.google.cloud.gkebackup.v1.ListBackupPlansRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBackupPlansMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieve the details of a single BackupPlan.
+     * 
+ */ + public void getBackupPlan(com.google.cloud.gkebackup.v1.GetBackupPlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBackupPlanMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update a BackupPlan.
+     * 
+ */ + public void updateBackupPlan(com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBackupPlanMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an existing BackupPlan.
+     * 
+ */ + public void deleteBackupPlan(com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBackupPlanMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a Backup for the given BackupPlan.
+     * 
+ */ + public void createBackup(com.google.cloud.gkebackup.v1.CreateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the Backups for a given BackupPlan.
+     * 
+ */ + public void listBackups(com.google.cloud.gkebackup.v1.ListBackupsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBackupsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieve the details of a single Backup.
+     * 
+ */ + public void getBackup(com.google.cloud.gkebackup.v1.GetBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBackupMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update a Backup.
+     * 
+ */ + public void updateBackup(com.google.cloud.gkebackup.v1.UpdateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an existing Backup.
+     * 
+ */ + public void deleteBackup(com.google.cloud.gkebackup.v1.DeleteBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the VolumeBackups for a given Backup.
+     * 
+ */ + public void listVolumeBackups(com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVolumeBackupsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieve the details of a single VolumeBackup.
+     * 
+ */ + public void getVolumeBackup(com.google.cloud.gkebackup.v1.GetVolumeBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetVolumeBackupMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new RestorePlan in a given location.
+     * 
+ */ + public void createRestorePlan(com.google.cloud.gkebackup.v1.CreateRestorePlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRestorePlanMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists RestorePlans in a given location.
+     * 
+ */ + public void listRestorePlans(com.google.cloud.gkebackup.v1.ListRestorePlansRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRestorePlansMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieve the details of a single RestorePlan.
+     * 
+ */ + public void getRestorePlan(com.google.cloud.gkebackup.v1.GetRestorePlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRestorePlanMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update a RestorePlan.
+     * 
+ */ + public void updateRestorePlan(com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateRestorePlanMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an existing RestorePlan.
+     * 
+ */ + public void deleteRestorePlan(com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRestorePlanMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new Restore for the given RestorePlan.
+     * 
+ */ + public void createRestore(com.google.cloud.gkebackup.v1.CreateRestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRestoreMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the Restores for a given RestorePlan.
+     * 
+ */ + public void listRestores(com.google.cloud.gkebackup.v1.ListRestoresRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRestoresMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieves the details of a single Restore.
+     * 
+ */ + public void getRestore(com.google.cloud.gkebackup.v1.GetRestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRestoreMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update a Restore.
+     * 
+ */ + public void updateRestore(com.google.cloud.gkebackup.v1.UpdateRestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateRestoreMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an existing Restore.
+     * 
+ */ + public void deleteRestore(com.google.cloud.gkebackup.v1.DeleteRestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRestoreMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the VolumeRestores for a given Restore.
+     * 
+ */ + public void listVolumeRestores(com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVolumeRestoresMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieve the details of a single VolumeRestore.
+     * 
+ */ + public void getVolumeRestore(com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetVolumeRestoreMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * BackupForGKE allows Kubernetes administrators to configure, execute, and
+   * manage backup and restore operations for their GKE clusters.
+   * 
+ */ + public static final class BackupForGKEBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private BackupForGKEBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BackupForGKEBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BackupForGKEBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a new BackupPlan in a given location.
+     * 
+ */ + public com.google.longrunning.Operation createBackupPlan(com.google.cloud.gkebackup.v1.CreateBackupPlanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBackupPlanMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists BackupPlans in a given location.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.ListBackupPlansResponse listBackupPlans(com.google.cloud.gkebackup.v1.ListBackupPlansRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBackupPlansMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieve the details of a single BackupPlan.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.BackupPlan getBackupPlan(com.google.cloud.gkebackup.v1.GetBackupPlanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBackupPlanMethod(), getCallOptions(), request); + } + + /** + *
+     * Update a BackupPlan.
+     * 
+ */ + public com.google.longrunning.Operation updateBackupPlan(com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBackupPlanMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an existing BackupPlan.
+     * 
+ */ + public com.google.longrunning.Operation deleteBackupPlan(com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBackupPlanMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a Backup for the given BackupPlan.
+     * 
+ */ + public com.google.longrunning.Operation createBackup(com.google.cloud.gkebackup.v1.CreateBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBackupMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists the Backups for a given BackupPlan.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.ListBackupsResponse listBackups(com.google.cloud.gkebackup.v1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBackupsMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieve the details of a single Backup.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.Backup getBackup(com.google.cloud.gkebackup.v1.GetBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBackupMethod(), getCallOptions(), request); + } + + /** + *
+     * Update a Backup.
+     * 
+ */ + public com.google.longrunning.Operation updateBackup(com.google.cloud.gkebackup.v1.UpdateBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBackupMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an existing Backup.
+     * 
+ */ + public com.google.longrunning.Operation deleteBackup(com.google.cloud.gkebackup.v1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBackupMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists the VolumeBackups for a given Backup.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse listVolumeBackups(com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVolumeBackupsMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieve the details of a single VolumeBackup.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.VolumeBackup getVolumeBackup(com.google.cloud.gkebackup.v1.GetVolumeBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetVolumeBackupMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new RestorePlan in a given location.
+     * 
+ */ + public com.google.longrunning.Operation createRestorePlan(com.google.cloud.gkebackup.v1.CreateRestorePlanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRestorePlanMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists RestorePlans in a given location.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.ListRestorePlansResponse listRestorePlans(com.google.cloud.gkebackup.v1.ListRestorePlansRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRestorePlansMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieve the details of a single RestorePlan.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.RestorePlan getRestorePlan(com.google.cloud.gkebackup.v1.GetRestorePlanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRestorePlanMethod(), getCallOptions(), request); + } + + /** + *
+     * Update a RestorePlan.
+     * 
+ */ + public com.google.longrunning.Operation updateRestorePlan(com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateRestorePlanMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an existing RestorePlan.
+     * 
+ */ + public com.google.longrunning.Operation deleteRestorePlan(com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRestorePlanMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new Restore for the given RestorePlan.
+     * 
+ */ + public com.google.longrunning.Operation createRestore(com.google.cloud.gkebackup.v1.CreateRestoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRestoreMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists the Restores for a given RestorePlan.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.ListRestoresResponse listRestores(com.google.cloud.gkebackup.v1.ListRestoresRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRestoresMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieves the details of a single Restore.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.Restore getRestore(com.google.cloud.gkebackup.v1.GetRestoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRestoreMethod(), getCallOptions(), request); + } + + /** + *
+     * Update a Restore.
+     * 
+ */ + public com.google.longrunning.Operation updateRestore(com.google.cloud.gkebackup.v1.UpdateRestoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateRestoreMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an existing Restore.
+     * 
+ */ + public com.google.longrunning.Operation deleteRestore(com.google.cloud.gkebackup.v1.DeleteRestoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRestoreMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists the VolumeRestores for a given Restore.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse listVolumeRestores(com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVolumeRestoresMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieve the details of a single VolumeRestore.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.VolumeRestore getVolumeRestore(com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetVolumeRestoreMethod(), getCallOptions(), request); + } + } + + /** + *
+   * BackupForGKE allows Kubernetes administrators to configure, execute, and
+   * manage backup and restore operations for their GKE clusters.
+   * 
+ */ + public static final class BackupForGKEFutureStub extends io.grpc.stub.AbstractFutureStub { + private BackupForGKEFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BackupForGKEFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BackupForGKEFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a new BackupPlan in a given location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createBackupPlan( + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBackupPlanMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists BackupPlans in a given location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listBackupPlans( + com.google.cloud.gkebackup.v1.ListBackupPlansRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBackupPlansMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieve the details of a single BackupPlan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getBackupPlan( + com.google.cloud.gkebackup.v1.GetBackupPlanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBackupPlanMethod(), getCallOptions()), request); + } + + /** + *
+     * Update a BackupPlan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateBackupPlan( + com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBackupPlanMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an existing BackupPlan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteBackupPlan( + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBackupPlanMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a Backup for the given BackupPlan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createBackup( + com.google.cloud.gkebackup.v1.CreateBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists the Backups for a given BackupPlan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listBackups( + com.google.cloud.gkebackup.v1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieve the details of a single Backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getBackup( + com.google.cloud.gkebackup.v1.GetBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBackupMethod(), getCallOptions()), request); + } + + /** + *
+     * Update a Backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateBackup( + com.google.cloud.gkebackup.v1.UpdateBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an existing Backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteBackup( + com.google.cloud.gkebackup.v1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists the VolumeBackups for a given Backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listVolumeBackups( + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVolumeBackupsMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieve the details of a single VolumeBackup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getVolumeBackup( + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetVolumeBackupMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new RestorePlan in a given location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createRestorePlan( + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRestorePlanMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists RestorePlans in a given location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listRestorePlans( + com.google.cloud.gkebackup.v1.ListRestorePlansRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRestorePlansMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieve the details of a single RestorePlan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getRestorePlan( + com.google.cloud.gkebackup.v1.GetRestorePlanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRestorePlanMethod(), getCallOptions()), request); + } + + /** + *
+     * Update a RestorePlan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateRestorePlan( + com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateRestorePlanMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an existing RestorePlan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteRestorePlan( + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRestorePlanMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new Restore for the given RestorePlan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createRestore( + com.google.cloud.gkebackup.v1.CreateRestoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRestoreMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists the Restores for a given RestorePlan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listRestores( + com.google.cloud.gkebackup.v1.ListRestoresRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRestoresMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieves the details of a single Restore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getRestore( + com.google.cloud.gkebackup.v1.GetRestoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRestoreMethod(), getCallOptions()), request); + } + + /** + *
+     * Update a Restore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateRestore( + com.google.cloud.gkebackup.v1.UpdateRestoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateRestoreMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an existing Restore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteRestore( + com.google.cloud.gkebackup.v1.DeleteRestoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRestoreMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists the VolumeRestores for a given Restore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listVolumeRestores( + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVolumeRestoresMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieve the details of a single VolumeRestore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getVolumeRestore( + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetVolumeRestoreMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_BACKUP_PLAN = 0; + private static final int METHODID_LIST_BACKUP_PLANS = 1; + private static final int METHODID_GET_BACKUP_PLAN = 2; + private static final int METHODID_UPDATE_BACKUP_PLAN = 3; + private static final int METHODID_DELETE_BACKUP_PLAN = 4; + private static final int METHODID_CREATE_BACKUP = 5; + private static final int METHODID_LIST_BACKUPS = 6; + private static final int METHODID_GET_BACKUP = 7; + private static final int METHODID_UPDATE_BACKUP = 8; + private static final int METHODID_DELETE_BACKUP = 9; + private static final int METHODID_LIST_VOLUME_BACKUPS = 10; + private static final int METHODID_GET_VOLUME_BACKUP = 11; + private static final int METHODID_CREATE_RESTORE_PLAN = 12; + private static final int METHODID_LIST_RESTORE_PLANS = 13; + private static final int METHODID_GET_RESTORE_PLAN = 14; + private static final int METHODID_UPDATE_RESTORE_PLAN = 15; + private static final int METHODID_DELETE_RESTORE_PLAN = 16; + private static final int METHODID_CREATE_RESTORE = 17; + private static final int METHODID_LIST_RESTORES = 18; + private static final int METHODID_GET_RESTORE = 19; + private static final int METHODID_UPDATE_RESTORE = 20; + private static final int METHODID_DELETE_RESTORE = 21; + private static final int METHODID_LIST_VOLUME_RESTORES = 22; + private static final int METHODID_GET_VOLUME_RESTORE = 23; + + 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 BackupForGKEImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BackupForGKEImplBase 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_BACKUP_PLAN: + serviceImpl.createBackupPlan((com.google.cloud.gkebackup.v1.CreateBackupPlanRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BACKUP_PLANS: + serviceImpl.listBackupPlans((com.google.cloud.gkebackup.v1.ListBackupPlansRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_BACKUP_PLAN: + serviceImpl.getBackupPlan((com.google.cloud.gkebackup.v1.GetBackupPlanRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_BACKUP_PLAN: + serviceImpl.updateBackupPlan((com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BACKUP_PLAN: + serviceImpl.deleteBackupPlan((com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_BACKUP: + serviceImpl.createBackup((com.google.cloud.gkebackup.v1.CreateBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BACKUPS: + serviceImpl.listBackups((com.google.cloud.gkebackup.v1.ListBackupsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_BACKUP: + serviceImpl.getBackup((com.google.cloud.gkebackup.v1.GetBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_BACKUP: + serviceImpl.updateBackup((com.google.cloud.gkebackup.v1.UpdateBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BACKUP: + serviceImpl.deleteBackup((com.google.cloud.gkebackup.v1.DeleteBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_VOLUME_BACKUPS: + serviceImpl.listVolumeBackups((com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_VOLUME_BACKUP: + serviceImpl.getVolumeBackup((com.google.cloud.gkebackup.v1.GetVolumeBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_RESTORE_PLAN: + serviceImpl.createRestorePlan((com.google.cloud.gkebackup.v1.CreateRestorePlanRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RESTORE_PLANS: + serviceImpl.listRestorePlans((com.google.cloud.gkebackup.v1.ListRestorePlansRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_RESTORE_PLAN: + serviceImpl.getRestorePlan((com.google.cloud.gkebackup.v1.GetRestorePlanRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_RESTORE_PLAN: + serviceImpl.updateRestorePlan((com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_RESTORE_PLAN: + serviceImpl.deleteRestorePlan((com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_RESTORE: + serviceImpl.createRestore((com.google.cloud.gkebackup.v1.CreateRestoreRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RESTORES: + serviceImpl.listRestores((com.google.cloud.gkebackup.v1.ListRestoresRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_RESTORE: + serviceImpl.getRestore((com.google.cloud.gkebackup.v1.GetRestoreRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_RESTORE: + serviceImpl.updateRestore((com.google.cloud.gkebackup.v1.UpdateRestoreRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_RESTORE: + serviceImpl.deleteRestore((com.google.cloud.gkebackup.v1.DeleteRestoreRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_VOLUME_RESTORES: + serviceImpl.listVolumeRestores((com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_VOLUME_RESTORE: + serviceImpl.getVolumeRestore((com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest) 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(); + } + } + } + + private static abstract class BackupForGKEBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BackupForGKEBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BackupForGKE"); + } + } + + private static final class BackupForGKEFileDescriptorSupplier + extends BackupForGKEBaseDescriptorSupplier { + BackupForGKEFileDescriptorSupplier() {} + } + + private static final class BackupForGKEMethodDescriptorSupplier + extends BackupForGKEBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + BackupForGKEMethodDescriptorSupplier(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 (BackupForGKEGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BackupForGKEFileDescriptorSupplier()) + .addMethod(getCreateBackupPlanMethod()) + .addMethod(getListBackupPlansMethod()) + .addMethod(getGetBackupPlanMethod()) + .addMethod(getUpdateBackupPlanMethod()) + .addMethod(getDeleteBackupPlanMethod()) + .addMethod(getCreateBackupMethod()) + .addMethod(getListBackupsMethod()) + .addMethod(getGetBackupMethod()) + .addMethod(getUpdateBackupMethod()) + .addMethod(getDeleteBackupMethod()) + .addMethod(getListVolumeBackupsMethod()) + .addMethod(getGetVolumeBackupMethod()) + .addMethod(getCreateRestorePlanMethod()) + .addMethod(getListRestorePlansMethod()) + .addMethod(getGetRestorePlanMethod()) + .addMethod(getUpdateRestorePlanMethod()) + .addMethod(getDeleteRestorePlanMethod()) + .addMethod(getCreateRestoreMethod()) + .addMethod(getListRestoresMethod()) + .addMethod(getGetRestoreMethod()) + .addMethod(getUpdateRestoreMethod()) + .addMethod(getDeleteRestoreMethod()) + .addMethod(getListVolumeRestoresMethod()) + .addMethod(getGetVolumeRestoreMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Backup.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Backup.java similarity index 70% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Backup.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Backup.java index c0fbf82..b9d37ef 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Backup.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Backup.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/backup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Represents a request to perform a single point-in-time capture of
  * some portion of the state of a GKE cluster, the record of the backup
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.gkebackup.v1.Backup}
  */
-public final class Backup extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Backup extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.Backup)
     BackupOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Backup.newBuilder() to construct.
   private Backup(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Backup() {
     name_ = "";
     uid_ = "";
@@ -52,15 +34,16 @@ private Backup() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Backup();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Backup(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -80,265 +63,236 @@ private Backup(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              uid_ = s;
-              break;
+            uid_ = s;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
 
-              break;
-            }
-          case 40:
-            {
-              manual_ = input.readBool();
-              break;
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 50:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 56:
-            {
-              deleteLockDays_ = input.readInt32();
-              break;
+
+            break;
+          }
+          case 40: {
+
+            manual_ = input.readBool();
+            break;
+          }
+          case 50: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 66:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (deleteLockExpireTime_ != null) {
-                subBuilder = deleteLockExpireTime_.toBuilder();
-              }
-              deleteLockExpireTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(deleteLockExpireTime_);
-                deleteLockExpireTime_ = subBuilder.buildPartial();
-              }
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          case 56: {
 
-              break;
+            deleteLockDays_ = input.readInt32();
+            break;
+          }
+          case 66: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (deleteLockExpireTime_ != null) {
+              subBuilder = deleteLockExpireTime_.toBuilder();
             }
-          case 72:
-            {
-              retainDays_ = input.readInt32();
-              break;
+            deleteLockExpireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(deleteLockExpireTime_);
+              deleteLockExpireTime_ = subBuilder.buildPartial();
             }
-          case 82:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (retainExpireTime_ != null) {
-                subBuilder = retainExpireTime_.toBuilder();
-              }
-              retainExpireTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(retainExpireTime_);
-                retainExpireTime_ = subBuilder.buildPartial();
-              }
 
-              break;
-            }
-          case 90:
-            {
-              com.google.cloud.gkebackup.v1.EncryptionKey.Builder subBuilder = null;
-              if (encryptionKey_ != null) {
-                subBuilder = encryptionKey_.toBuilder();
-              }
-              encryptionKey_ =
-                  input.readMessage(
-                      com.google.cloud.gkebackup.v1.EncryptionKey.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(encryptionKey_);
-                encryptionKey_ = subBuilder.buildPartial();
-              }
+            break;
+          }
+          case 72: {
 
-              break;
+            retainDays_ = input.readInt32();
+            break;
+          }
+          case 82: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (retainExpireTime_ != null) {
+              subBuilder = retainExpireTime_.toBuilder();
             }
-          case 96:
-            {
-              backupScope_ = input.readBool();
-              backupScopeCase_ = 12;
-              break;
+            retainExpireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(retainExpireTime_);
+              retainExpireTime_ = subBuilder.buildPartial();
             }
-          case 106:
-            {
-              com.google.cloud.gkebackup.v1.Namespaces.Builder subBuilder = null;
-              if (backupScopeCase_ == 13) {
-                subBuilder = ((com.google.cloud.gkebackup.v1.Namespaces) backupScope_).toBuilder();
-              }
-              backupScope_ =
-                  input.readMessage(
-                      com.google.cloud.gkebackup.v1.Namespaces.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.gkebackup.v1.Namespaces) backupScope_);
-                backupScope_ = subBuilder.buildPartial();
-              }
-              backupScopeCase_ = 13;
-              break;
+
+            break;
+          }
+          case 90: {
+            com.google.cloud.gkebackup.v1.EncryptionKey.Builder subBuilder = null;
+            if (encryptionKey_ != null) {
+              subBuilder = encryptionKey_.toBuilder();
             }
-          case 114:
-            {
-              com.google.cloud.gkebackup.v1.NamespacedNames.Builder subBuilder = null;
-              if (backupScopeCase_ == 14) {
-                subBuilder =
-                    ((com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_).toBuilder();
-              }
-              backupScope_ =
-                  input.readMessage(
-                      com.google.cloud.gkebackup.v1.NamespacedNames.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_);
-                backupScope_ = subBuilder.buildPartial();
-              }
-              backupScopeCase_ = 14;
-              break;
+            encryptionKey_ = input.readMessage(com.google.cloud.gkebackup.v1.EncryptionKey.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(encryptionKey_);
+              encryptionKey_ = subBuilder.buildPartial();
             }
-          case 120:
-            {
-              containsVolumeData_ = input.readBool();
-              break;
+
+            break;
+          }
+          case 96: {
+            backupScope_ = input.readBool();
+            backupScopeCase_ = 12;
+            break;
+          }
+          case 106: {
+            com.google.cloud.gkebackup.v1.Namespaces.Builder subBuilder = null;
+            if (backupScopeCase_ == 13) {
+              subBuilder = ((com.google.cloud.gkebackup.v1.Namespaces) backupScope_).toBuilder();
             }
-          case 128:
-            {
-              containsSecrets_ = input.readBool();
-              break;
+            backupScope_ =
+                input.readMessage(com.google.cloud.gkebackup.v1.Namespaces.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.gkebackup.v1.Namespaces) backupScope_);
+              backupScope_ = subBuilder.buildPartial();
             }
-          case 138:
-            {
-              com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder subBuilder = null;
-              if (clusterMetadata_ != null) {
-                subBuilder = clusterMetadata_.toBuilder();
-              }
-              clusterMetadata_ =
-                  input.readMessage(
-                      com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(clusterMetadata_);
-                clusterMetadata_ = subBuilder.buildPartial();
-              }
-
-              break;
+            backupScopeCase_ = 13;
+            break;
+          }
+          case 114: {
+            com.google.cloud.gkebackup.v1.NamespacedNames.Builder subBuilder = null;
+            if (backupScopeCase_ == 14) {
+              subBuilder = ((com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_).toBuilder();
             }
-          case 144:
-            {
-              int rawValue = input.readEnum();
-
-              state_ = rawValue;
-              break;
+            backupScope_ =
+                input.readMessage(com.google.cloud.gkebackup.v1.NamespacedNames.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_);
+              backupScope_ = subBuilder.buildPartial();
             }
-          case 154:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            backupScopeCase_ = 14;
+            break;
+          }
+          case 120: {
 
-              stateReason_ = s;
-              break;
-            }
-          case 162:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (completeTime_ != null) {
-                subBuilder = completeTime_.toBuilder();
-              }
-              completeTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(completeTime_);
-                completeTime_ = subBuilder.buildPartial();
-              }
+            containsVolumeData_ = input.readBool();
+            break;
+          }
+          case 128: {
 
-              break;
-            }
-          case 168:
-            {
-              resourceCount_ = input.readInt32();
-              break;
-            }
-          case 176:
-            {
-              volumeCount_ = input.readInt32();
-              break;
+            containsSecrets_ = input.readBool();
+            break;
+          }
+          case 138: {
+            com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder subBuilder = null;
+            if (clusterMetadata_ != null) {
+              subBuilder = clusterMetadata_.toBuilder();
             }
-          case 184:
-            {
-              sizeBytes_ = input.readInt64();
-              break;
+            clusterMetadata_ = input.readMessage(com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(clusterMetadata_);
+              clusterMetadata_ = subBuilder.buildPartial();
             }
-          case 194:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              etag_ = s;
-              break;
-            }
-          case 202:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            break;
+          }
+          case 144: {
+            int rawValue = input.readEnum();
 
-              description_ = s;
-              break;
-            }
-          case 208:
-            {
-              podCount_ = input.readInt32();
-              break;
+            state_ = rawValue;
+            break;
+          }
+          case 154: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            stateReason_ = s;
+            break;
+          }
+          case 162: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (completeTime_ != null) {
+              subBuilder = completeTime_.toBuilder();
             }
-          case 216:
-            {
-              configBackupSizeBytes_ = input.readInt64();
-              break;
+            completeTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(completeTime_);
+              completeTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 168: {
+
+            resourceCount_ = input.readInt32();
+            break;
+          }
+          case 176: {
+
+            volumeCount_ = input.readInt32();
+            break;
+          }
+          case 184: {
+
+            sizeBytes_ = input.readInt64();
+            break;
+          }
+          case 194: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            etag_ = s;
+            break;
+          }
+          case 202: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            description_ = s;
+            break;
+          }
+          case 208: {
+
+            podCount_ = input.readInt32();
+            break;
+          }
+          case 216: {
+
+            configBackupSizeBytes_ = input.readInt64();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -346,52 +300,48 @@ private Backup(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkebackup.v1.BackupProto
-        .internal_static_google_cloud_gkebackup_v1_Backup_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 6:
         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.cloud.gkebackup.v1.BackupProto
-        .internal_static_google_cloud_gkebackup_v1_Backup_fieldAccessorTable
+    return com.google.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkebackup.v1.Backup.class,
-            com.google.cloud.gkebackup.v1.Backup.Builder.class);
+            com.google.cloud.gkebackup.v1.Backup.class, com.google.cloud.gkebackup.v1.Backup.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * State
    * 
* * Protobuf enum {@code google.cloud.gkebackup.v1.Backup.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The Backup resource is in the process of being created.
      * 
@@ -400,8 +350,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The Backup resource has been created and the associated BackupJob
      * Kubernetes resource has been injected into the source cluster.
@@ -411,8 +359,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CREATING(1),
     /**
-     *
-     *
      * 
      * The gkebackup agent in the cluster has begun executing the backup
      * operation.
@@ -422,8 +368,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     IN_PROGRESS(2),
     /**
-     *
-     *
      * 
      * The backup operation has completed successfully.
      * 
@@ -432,8 +376,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(3), /** - * - * *
      * The backup operation has failed.
      * 
@@ -442,8 +384,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(4), /** - * - * *
      * This Backup resource (and its associated artifacts) is in the process
      * of being deleted.
@@ -456,8 +396,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * The Backup resource is in the process of being created.
      * 
@@ -466,8 +404,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The Backup resource has been created and the associated BackupJob
      * Kubernetes resource has been injected into the source cluster.
@@ -477,8 +413,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CREATING_VALUE = 1;
     /**
-     *
-     *
      * 
      * The gkebackup agent in the cluster has begun executing the backup
      * operation.
@@ -488,8 +422,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int IN_PROGRESS_VALUE = 2;
     /**
-     *
-     *
      * 
      * The backup operation has completed successfully.
      * 
@@ -498,8 +430,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 3; /** - * - * *
      * The backup operation has failed.
      * 
@@ -508,8 +438,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 4; /** - * - * *
      * This Backup resource (and its associated artifacts) is in the process
      * of being deleted.
@@ -519,6 +447,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DELETING_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -543,55 +472,52 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return CREATING;
-        case 2:
-          return IN_PROGRESS;
-        case 3:
-          return SUCCEEDED;
-        case 4:
-          return FAILED;
-        case 5:
-          return DELETING;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return CREATING;
+        case 2: return IN_PROGRESS;
+        case 3: return SUCCEEDED;
+        case 4: return FAILED;
+        case 5: return DELETING;
+        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<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.gkebackup.v1.Backup.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State 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;
@@ -608,14 +534,11 @@ private State(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.gkebackup.v1.Backup.State)
   }
 
-  public interface ClusterMetadataOrBuilder
-      extends
+  public interface ClusterMetadataOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.Backup.ClusterMetadata)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The source cluster from which this Backup was created.
      * Valid formats:
@@ -626,13 +549,10 @@ public interface ClusterMetadataOrBuilder
      * 
* * string cluster = 1; - * * @return The cluster. */ java.lang.String getCluster(); /** - * - * *
      * The source cluster from which this Backup was created.
      * Valid formats:
@@ -643,39 +563,32 @@ public interface ClusterMetadataOrBuilder
      * 
* * string cluster = 1; - * * @return The bytes for cluster. */ - com.google.protobuf.ByteString getClusterBytes(); + com.google.protobuf.ByteString + getClusterBytes(); /** - * - * *
      * The Kubernetes server version of the source cluster.
      * 
* * string k8s_version = 2; - * * @return The k8sVersion. */ java.lang.String getK8SVersion(); /** - * - * *
      * The Kubernetes server version of the source cluster.
      * 
* * string k8s_version = 2; - * * @return The bytes for k8sVersion. */ - com.google.protobuf.ByteString getK8SVersionBytes(); + com.google.protobuf.ByteString + getK8SVersionBytes(); /** - * - * *
      * A list of the Backup for GKE CRD versions found in the cluster.
      * 
@@ -684,31 +597,30 @@ public interface ClusterMetadataOrBuilder */ int getBackupCrdVersionsCount(); /** - * - * *
      * A list of the Backup for GKE CRD versions found in the cluster.
      * 
* * map<string, string> backup_crd_versions = 3; */ - boolean containsBackupCrdVersions(java.lang.String key); - /** Use {@link #getBackupCrdVersionsMap()} instead. */ + boolean containsBackupCrdVersions( + java.lang.String key); + /** + * Use {@link #getBackupCrdVersionsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getBackupCrdVersions(); + java.util.Map + getBackupCrdVersions(); /** - * - * *
      * A list of the Backup for GKE CRD versions found in the cluster.
      * 
* * map<string, string> backup_crd_versions = 3; */ - java.util.Map getBackupCrdVersionsMap(); + java.util.Map + getBackupCrdVersionsMap(); /** - * - * *
      * A list of the Backup for GKE CRD versions found in the cluster.
      * 
@@ -717,117 +629,97 @@ public interface ClusterMetadataOrBuilder */ /* nullable */ - java.lang.String getBackupCrdVersionsOrDefault( +java.lang.String getBackupCrdVersionsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
      * A list of the Backup for GKE CRD versions found in the cluster.
      * 
* * map<string, string> backup_crd_versions = 3; */ - java.lang.String getBackupCrdVersionsOrThrow(java.lang.String key); + + java.lang.String getBackupCrdVersionsOrThrow( + java.lang.String key); /** - * - * *
      * GKE version
      * 
* * string gke_version = 4; - * * @return Whether the gkeVersion field is set. */ boolean hasGkeVersion(); /** - * - * *
      * GKE version
      * 
* * string gke_version = 4; - * * @return The gkeVersion. */ java.lang.String getGkeVersion(); /** - * - * *
      * GKE version
      * 
* * string gke_version = 4; - * * @return The bytes for gkeVersion. */ - com.google.protobuf.ByteString getGkeVersionBytes(); + com.google.protobuf.ByteString + getGkeVersionBytes(); /** - * - * *
      * Anthos version
      * 
* * string anthos_version = 5; - * * @return Whether the anthosVersion field is set. */ boolean hasAnthosVersion(); /** - * - * *
      * Anthos version
      * 
* * string anthos_version = 5; - * * @return The anthosVersion. */ java.lang.String getAnthosVersion(); /** - * - * *
      * Anthos version
      * 
* * string anthos_version = 5; - * * @return The bytes for anthosVersion. */ - com.google.protobuf.ByteString getAnthosVersionBytes(); + com.google.protobuf.ByteString + getAnthosVersionBytes(); - public com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.PlatformVersionCase - getPlatformVersionCase(); + public com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.PlatformVersionCase getPlatformVersionCase(); } /** - * - * *
    * Information about the GKE cluster from which this Backup was created.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.Backup.ClusterMetadata} */ - public static final class ClusterMetadata extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ClusterMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.Backup.ClusterMetadata) ClusterMetadataOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClusterMetadata.newBuilder() to construct. private ClusterMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ClusterMetadata() { cluster_ = ""; k8SVersion_ = ""; @@ -835,15 +727,16 @@ private ClusterMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ClusterMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ClusterMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -863,59 +756,50 @@ private ClusterMetadata( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - cluster_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + cluster_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - k8SVersion_ = s; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - backupCrdVersions_ = - com.google.protobuf.MapField.newMapField( - BackupCrdVersionsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - backupCrdVersions__ = - input.readMessage( - BackupCrdVersionsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - backupCrdVersions_ - .getMutableMap() - .put(backupCrdVersions__.getKey(), backupCrdVersions__.getValue()); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - platformVersionCase_ = 4; - platformVersion_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - platformVersionCase_ = 5; - platformVersion_ = s; - break; + k8SVersion_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + backupCrdVersions_ = com.google.protobuf.MapField.newMapField( + BackupCrdVersionsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + backupCrdVersions__ = input.readMessage( + BackupCrdVersionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + backupCrdVersions_.getMutableMap().put( + backupCrdVersions__.getKey(), backupCrdVersions__.getValue()); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + platformVersionCase_ = 4; + platformVersion_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + platformVersionCase_ = 5; + platformVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -923,51 +807,47 @@ private ClusterMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.BackupProto - .internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetBackupCrdVersions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.BackupProto - .internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_fieldAccessorTable + return com.google.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.class, - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder.class); + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.class, com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder.class); } private int platformVersionCase_ = 0; private java.lang.Object platformVersion_; - public enum PlatformVersionCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GKE_VERSION(4), ANTHOS_VERSION(5), PLATFORMVERSION_NOT_SET(0); private final int value; - private PlatformVersionCase(int value) { this.value = value; } @@ -983,31 +863,26 @@ public static PlatformVersionCase valueOf(int value) { public static PlatformVersionCase forNumber(int value) { switch (value) { - case 4: - return GKE_VERSION; - case 5: - return ANTHOS_VERSION; - case 0: - return PLATFORMVERSION_NOT_SET; - default: - return null; + case 4: return GKE_VERSION; + case 5: return ANTHOS_VERSION; + case 0: return PLATFORMVERSION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public PlatformVersionCase getPlatformVersionCase() { - return PlatformVersionCase.forNumber(platformVersionCase_); + public PlatformVersionCase + getPlatformVersionCase() { + return PlatformVersionCase.forNumber( + platformVersionCase_); } public static final int CLUSTER_FIELD_NUMBER = 1; private volatile java.lang.Object cluster_; /** - * - * *
      * The source cluster from which this Backup was created.
      * Valid formats:
@@ -1018,7 +893,6 @@ public PlatformVersionCase getPlatformVersionCase() {
      * 
* * string cluster = 1; - * * @return The cluster. */ @java.lang.Override @@ -1027,15 +901,14 @@ public java.lang.String getCluster() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; } } /** - * - * *
      * The source cluster from which this Backup was created.
      * Valid formats:
@@ -1046,15 +919,16 @@ public java.lang.String getCluster() {
      * 
* * string cluster = 1; - * * @return The bytes for cluster. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterBytes() { + public com.google.protobuf.ByteString + getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cluster_ = b; return b; } else { @@ -1065,14 +939,11 @@ public com.google.protobuf.ByteString getClusterBytes() { public static final int K8S_VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object k8SVersion_; /** - * - * *
      * The Kubernetes server version of the source cluster.
      * 
* * string k8s_version = 2; - * * @return The k8sVersion. */ @java.lang.Override @@ -1081,29 +952,29 @@ public java.lang.String getK8SVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); k8SVersion_ = s; return s; } } /** - * - * *
      * The Kubernetes server version of the source cluster.
      * 
* * string k8s_version = 2; - * * @return The bytes for k8sVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getK8SVersionBytes() { + public com.google.protobuf.ByteString + getK8SVersionBytes() { java.lang.Object ref = k8SVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); k8SVersion_ = b; return b; } else { @@ -1112,22 +983,21 @@ public com.google.protobuf.ByteString getK8SVersionBytes() { } public static final int BACKUP_CRD_VERSIONS_FIELD_NUMBER = 3; - private static final class BackupCrdVersionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.gkebackup.v1.BackupProto - .internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField backupCrdVersions_; - + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> backupCrdVersions_; private com.google.protobuf.MapField - internalGetBackupCrdVersions() { + internalGetBackupCrdVersions() { if (backupCrdVersions_ == null) { return com.google.protobuf.MapField.emptyMapField( BackupCrdVersionsDefaultEntryHolder.defaultEntry); @@ -1139,30 +1009,28 @@ public int getBackupCrdVersionsCount() { return internalGetBackupCrdVersions().getMap().size(); } /** - * - * *
      * A list of the Backup for GKE CRD versions found in the cluster.
      * 
* * map<string, string> backup_crd_versions = 3; */ + @java.lang.Override - public boolean containsBackupCrdVersions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsBackupCrdVersions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetBackupCrdVersions().getMap().containsKey(key); } - /** Use {@link #getBackupCrdVersionsMap()} instead. */ + /** + * Use {@link #getBackupCrdVersionsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getBackupCrdVersions() { return getBackupCrdVersionsMap(); } /** - * - * *
      * A list of the Backup for GKE CRD versions found in the cluster.
      * 
@@ -1170,12 +1038,11 @@ public java.util.Map getBackupCrdVersions() * map<string, string> backup_crd_versions = 3; */ @java.lang.Override + public java.util.Map getBackupCrdVersionsMap() { return internalGetBackupCrdVersions().getMap(); } /** - * - * *
      * A list of the Backup for GKE CRD versions found in the cluster.
      * 
@@ -1183,18 +1050,16 @@ public java.util.Map getBackupCrdVersionsMap * map<string, string> backup_crd_versions = 3; */ @java.lang.Override + public java.lang.String getBackupCrdVersionsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetBackupCrdVersions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * A list of the Backup for GKE CRD versions found in the cluster.
      * 
@@ -1202,10 +1067,10 @@ public java.lang.String getBackupCrdVersionsOrDefault( * map<string, string> backup_crd_versions = 3; */ @java.lang.Override - public java.lang.String getBackupCrdVersionsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public java.lang.String getBackupCrdVersionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetBackupCrdVersions().getMap(); if (!map.containsKey(key)) { @@ -1216,28 +1081,22 @@ public java.lang.String getBackupCrdVersionsOrThrow(java.lang.String key) { public static final int GKE_VERSION_FIELD_NUMBER = 4; /** - * - * *
      * GKE version
      * 
* * string gke_version = 4; - * * @return Whether the gkeVersion field is set. */ public boolean hasGkeVersion() { return platformVersionCase_ == 4; } /** - * - * *
      * GKE version
      * 
* * string gke_version = 4; - * * @return The gkeVersion. */ public java.lang.String getGkeVersion() { @@ -1248,7 +1107,8 @@ public java.lang.String getGkeVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (platformVersionCase_ == 4) { platformVersion_ = s; @@ -1257,24 +1117,23 @@ public java.lang.String getGkeVersion() { } } /** - * - * *
      * GKE version
      * 
* * string gke_version = 4; - * * @return The bytes for gkeVersion. */ - public com.google.protobuf.ByteString getGkeVersionBytes() { + public com.google.protobuf.ByteString + getGkeVersionBytes() { java.lang.Object ref = ""; if (platformVersionCase_ == 4) { ref = platformVersion_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (platformVersionCase_ == 4) { platformVersion_ = b; } @@ -1286,28 +1145,22 @@ public com.google.protobuf.ByteString getGkeVersionBytes() { public static final int ANTHOS_VERSION_FIELD_NUMBER = 5; /** - * - * *
      * Anthos version
      * 
* * string anthos_version = 5; - * * @return Whether the anthosVersion field is set. */ public boolean hasAnthosVersion() { return platformVersionCase_ == 5; } /** - * - * *
      * Anthos version
      * 
* * string anthos_version = 5; - * * @return The anthosVersion. */ public java.lang.String getAnthosVersion() { @@ -1318,7 +1171,8 @@ public java.lang.String getAnthosVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (platformVersionCase_ == 5) { platformVersion_ = s; @@ -1327,24 +1181,23 @@ public java.lang.String getAnthosVersion() { } } /** - * - * *
      * Anthos version
      * 
* * string anthos_version = 5; - * * @return The bytes for anthosVersion. */ - public com.google.protobuf.ByteString getAnthosVersionBytes() { + public com.google.protobuf.ByteString + getAnthosVersionBytes() { java.lang.Object ref = ""; if (platformVersionCase_ == 5) { ref = platformVersion_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (platformVersionCase_ == 5) { platformVersion_ = b; } @@ -1355,7 +1208,6 @@ public com.google.protobuf.ByteString getAnthosVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1367,14 +1219,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cluster_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(k8SVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, k8SVersion_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetBackupCrdVersions(), BackupCrdVersionsDefaultEntryHolder.defaultEntry, @@ -1400,15 +1254,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(k8SVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, k8SVersion_); } - for (java.util.Map.Entry entry : - internalGetBackupCrdVersions().getMap().entrySet()) { - com.google.protobuf.MapEntry backupCrdVersions__ = - BackupCrdVersionsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, backupCrdVersions__); + for (java.util.Map.Entry entry + : internalGetBackupCrdVersions().getMap().entrySet()) { + com.google.protobuf.MapEntry + backupCrdVersions__ = BackupCrdVersionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, backupCrdVersions__); } if (platformVersionCase_ == 4) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, platformVersion_); @@ -1424,25 +1278,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.Backup.ClusterMetadata)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata other = - (com.google.cloud.gkebackup.v1.Backup.ClusterMetadata) obj; + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata other = (com.google.cloud.gkebackup.v1.Backup.ClusterMetadata) obj; - if (!getCluster().equals(other.getCluster())) return false; - if (!getK8SVersion().equals(other.getK8SVersion())) return false; - if (!internalGetBackupCrdVersions().equals(other.internalGetBackupCrdVersions())) - return false; + if (!getCluster() + .equals(other.getCluster())) return false; + if (!getK8SVersion() + .equals(other.getK8SVersion())) return false; + if (!internalGetBackupCrdVersions().equals( + other.internalGetBackupCrdVersions())) return false; if (!getPlatformVersionCase().equals(other.getPlatformVersionCase())) return false; switch (platformVersionCase_) { case 4: - if (!getGkeVersion().equals(other.getGkeVersion())) return false; + if (!getGkeVersion() + .equals(other.getGkeVersion())) return false; break; case 5: - if (!getAnthosVersion().equals(other.getAnthosVersion())) return false; + if (!getAnthosVersion() + .equals(other.getAnthosVersion())) return false; break; case 0: default: @@ -1484,94 +1341,87 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata prototype) { + public static Builder newBuilder(com.google.cloud.gkebackup.v1.Backup.ClusterMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1581,52 +1431,49 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information about the GKE cluster from which this Backup was created.
      * 
* * Protobuf type {@code google.cloud.gkebackup.v1.Backup.ClusterMetadata} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.Backup.ClusterMetadata) com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.BackupProto - .internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetBackupCrdVersions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 3: return internalGetMutableBackupCrdVersions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.BackupProto - .internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_fieldAccessorTable + return com.google.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.class, - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder.class); + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.class, com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.newBuilder() @@ -1634,15 +1481,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1657,9 +1505,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.BackupProto - .internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor; } @java.lang.Override @@ -1678,8 +1526,7 @@ public com.google.cloud.gkebackup.v1.Backup.ClusterMetadata build() { @java.lang.Override public com.google.cloud.gkebackup.v1.Backup.ClusterMetadata buildPartial() { - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata result = - new com.google.cloud.gkebackup.v1.Backup.ClusterMetadata(this); + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata result = new com.google.cloud.gkebackup.v1.Backup.ClusterMetadata(this); int from_bitField0_ = bitField0_; result.cluster_ = cluster_; result.k8SVersion_ = k8SVersion_; @@ -1700,41 +1547,38 @@ public com.google.cloud.gkebackup.v1.Backup.ClusterMetadata 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) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.gkebackup.v1.Backup.ClusterMetadata) { - return mergeFrom((com.google.cloud.gkebackup.v1.Backup.ClusterMetadata) other); + return mergeFrom((com.google.cloud.gkebackup.v1.Backup.ClusterMetadata)other); } else { super.mergeFrom(other); return this; @@ -1742,8 +1586,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.Backup.ClusterMetadata other) { - if (other == com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.getDefaultInstance()) return this; if (!other.getCluster().isEmpty()) { cluster_ = other.cluster_; onChanged(); @@ -1752,26 +1595,24 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.Backup.ClusterMetadata ot k8SVersion_ = other.k8SVersion_; onChanged(); } - internalGetMutableBackupCrdVersions().mergeFrom(other.internalGetBackupCrdVersions()); + internalGetMutableBackupCrdVersions().mergeFrom( + other.internalGetBackupCrdVersions()); switch (other.getPlatformVersionCase()) { - case GKE_VERSION: - { - platformVersionCase_ = 4; - platformVersion_ = other.platformVersion_; - onChanged(); - break; - } - case ANTHOS_VERSION: - { - platformVersionCase_ = 5; - platformVersion_ = other.platformVersion_; - onChanged(); - break; - } - case PLATFORMVERSION_NOT_SET: - { - break; - } + case GKE_VERSION: { + platformVersionCase_ = 4; + platformVersion_ = other.platformVersion_; + onChanged(); + break; + } + case ANTHOS_VERSION: { + platformVersionCase_ = 5; + platformVersion_ = other.platformVersion_; + onChanged(); + break; + } + case PLATFORMVERSION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1792,8 +1633,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.Backup.ClusterMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.Backup.ClusterMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1802,12 +1642,12 @@ public Builder mergeFrom( } return this; } - private int platformVersionCase_ = 0; private java.lang.Object platformVersion_; - - public PlatformVersionCase getPlatformVersionCase() { - return PlatformVersionCase.forNumber(platformVersionCase_); + public PlatformVersionCase + getPlatformVersionCase() { + return PlatformVersionCase.forNumber( + platformVersionCase_); } public Builder clearPlatformVersion() { @@ -1821,8 +1661,6 @@ public Builder clearPlatformVersion() { private java.lang.Object cluster_ = ""; /** - * - * *
        * The source cluster from which this Backup was created.
        * Valid formats:
@@ -1833,13 +1671,13 @@ public Builder clearPlatformVersion() {
        * 
* * string cluster = 1; - * * @return The cluster. */ public java.lang.String getCluster() { java.lang.Object ref = cluster_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; @@ -1848,8 +1686,6 @@ public java.lang.String getCluster() { } } /** - * - * *
        * The source cluster from which this Backup was created.
        * Valid formats:
@@ -1860,14 +1696,15 @@ public java.lang.String getCluster() {
        * 
* * string cluster = 1; - * * @return The bytes for cluster. */ - public com.google.protobuf.ByteString getClusterBytes() { + public com.google.protobuf.ByteString + getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cluster_ = b; return b; } else { @@ -1875,8 +1712,6 @@ public com.google.protobuf.ByteString getClusterBytes() { } } /** - * - * *
        * The source cluster from which this Backup was created.
        * Valid formats:
@@ -1887,22 +1722,20 @@ public com.google.protobuf.ByteString getClusterBytes() {
        * 
* * string cluster = 1; - * * @param value The cluster to set. * @return This builder for chaining. */ - public Builder setCluster(java.lang.String value) { + public Builder setCluster( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cluster_ = value; onChanged(); return this; } /** - * - * *
        * The source cluster from which this Backup was created.
        * Valid formats:
@@ -1913,18 +1746,15 @@ public Builder setCluster(java.lang.String value) {
        * 
* * string cluster = 1; - * * @return This builder for chaining. */ public Builder clearCluster() { - + cluster_ = getDefaultInstance().getCluster(); onChanged(); return this; } /** - * - * *
        * The source cluster from which this Backup was created.
        * Valid formats:
@@ -1935,16 +1765,16 @@ public Builder clearCluster() {
        * 
* * string cluster = 1; - * * @param value The bytes for cluster to set. * @return This builder for chaining. */ - public Builder setClusterBytes(com.google.protobuf.ByteString value) { + public Builder setClusterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cluster_ = value; onChanged(); return this; @@ -1952,20 +1782,18 @@ public Builder setClusterBytes(com.google.protobuf.ByteString value) { private java.lang.Object k8SVersion_ = ""; /** - * - * *
        * The Kubernetes server version of the source cluster.
        * 
* * string k8s_version = 2; - * * @return The k8sVersion. */ public java.lang.String getK8SVersion() { java.lang.Object ref = k8SVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); k8SVersion_ = s; return s; @@ -1974,21 +1802,20 @@ public java.lang.String getK8SVersion() { } } /** - * - * *
        * The Kubernetes server version of the source cluster.
        * 
* * string k8s_version = 2; - * * @return The bytes for k8sVersion. */ - public com.google.protobuf.ByteString getK8SVersionBytes() { + public com.google.protobuf.ByteString + getK8SVersionBytes() { java.lang.Object ref = k8SVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); k8SVersion_ = b; return b; } else { @@ -1996,85 +1823,75 @@ public com.google.protobuf.ByteString getK8SVersionBytes() { } } /** - * - * *
        * The Kubernetes server version of the source cluster.
        * 
* * string k8s_version = 2; - * * @param value The k8sVersion to set. * @return This builder for chaining. */ - public Builder setK8SVersion(java.lang.String value) { + public Builder setK8SVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + k8SVersion_ = value; onChanged(); return this; } /** - * - * *
        * The Kubernetes server version of the source cluster.
        * 
* * string k8s_version = 2; - * * @return This builder for chaining. */ public Builder clearK8SVersion() { - + k8SVersion_ = getDefaultInstance().getK8SVersion(); onChanged(); return this; } /** - * - * *
        * The Kubernetes server version of the source cluster.
        * 
* * string k8s_version = 2; - * * @param value The bytes for k8sVersion to set. * @return This builder for chaining. */ - public Builder setK8SVersionBytes(com.google.protobuf.ByteString value) { + public Builder setK8SVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + k8SVersion_ = value; onChanged(); return this; } - private com.google.protobuf.MapField backupCrdVersions_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> backupCrdVersions_; private com.google.protobuf.MapField - internalGetBackupCrdVersions() { + internalGetBackupCrdVersions() { if (backupCrdVersions_ == null) { return com.google.protobuf.MapField.emptyMapField( BackupCrdVersionsDefaultEntryHolder.defaultEntry); } return backupCrdVersions_; } - private com.google.protobuf.MapField - internalGetMutableBackupCrdVersions() { - onChanged(); - ; + internalGetMutableBackupCrdVersions() { + onChanged();; if (backupCrdVersions_ == null) { - backupCrdVersions_ = - com.google.protobuf.MapField.newMapField( - BackupCrdVersionsDefaultEntryHolder.defaultEntry); + backupCrdVersions_ = com.google.protobuf.MapField.newMapField( + BackupCrdVersionsDefaultEntryHolder.defaultEntry); } if (!backupCrdVersions_.isMutable()) { backupCrdVersions_ = backupCrdVersions_.copy(); @@ -2086,30 +1903,28 @@ public int getBackupCrdVersionsCount() { return internalGetBackupCrdVersions().getMap().size(); } /** - * - * *
        * A list of the Backup for GKE CRD versions found in the cluster.
        * 
* * map<string, string> backup_crd_versions = 3; */ + @java.lang.Override - public boolean containsBackupCrdVersions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsBackupCrdVersions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetBackupCrdVersions().getMap().containsKey(key); } - /** Use {@link #getBackupCrdVersionsMap()} instead. */ + /** + * Use {@link #getBackupCrdVersionsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getBackupCrdVersions() { return getBackupCrdVersionsMap(); } /** - * - * *
        * A list of the Backup for GKE CRD versions found in the cluster.
        * 
@@ -2117,12 +1932,11 @@ public java.util.Map getBackupCrdVersions() * map<string, string> backup_crd_versions = 3; */ @java.lang.Override + public java.util.Map getBackupCrdVersionsMap() { return internalGetBackupCrdVersions().getMap(); } /** - * - * *
        * A list of the Backup for GKE CRD versions found in the cluster.
        * 
@@ -2130,18 +1944,16 @@ public java.util.Map getBackupCrdVersionsMap * map<string, string> backup_crd_versions = 3; */ @java.lang.Override + public java.lang.String getBackupCrdVersionsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetBackupCrdVersions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
        * A list of the Backup for GKE CRD versions found in the cluster.
        * 
@@ -2149,10 +1961,10 @@ public java.lang.String getBackupCrdVersionsOrDefault( * map<string, string> backup_crd_versions = 3; */ @java.lang.Override - public java.lang.String getBackupCrdVersionsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public java.lang.String getBackupCrdVersionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetBackupCrdVersions().getMap(); if (!map.containsKey(key)) { @@ -2162,74 +1974,73 @@ public java.lang.String getBackupCrdVersionsOrThrow(java.lang.String key) { } public Builder clearBackupCrdVersions() { - internalGetMutableBackupCrdVersions().getMutableMap().clear(); + internalGetMutableBackupCrdVersions().getMutableMap() + .clear(); return this; } /** - * - * *
        * A list of the Backup for GKE CRD versions found in the cluster.
        * 
* * map<string, string> backup_crd_versions = 3; */ - public Builder removeBackupCrdVersions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableBackupCrdVersions().getMutableMap().remove(key); + + public Builder removeBackupCrdVersions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableBackupCrdVersions().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableBackupCrdVersions() { + public java.util.Map + getMutableBackupCrdVersions() { return internalGetMutableBackupCrdVersions().getMutableMap(); } /** - * - * *
        * A list of the Backup for GKE CRD versions found in the cluster.
        * 
* * map<string, string> backup_crd_versions = 3; */ - public Builder putBackupCrdVersions(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putBackupCrdVersions( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableBackupCrdVersions().getMutableMap().put(key, value); + internalGetMutableBackupCrdVersions().getMutableMap() + .put(key, value); return this; } /** - * - * *
        * A list of the Backup for GKE CRD versions found in the cluster.
        * 
* * map<string, string> backup_crd_versions = 3; */ + public Builder putAllBackupCrdVersions( java.util.Map values) { - internalGetMutableBackupCrdVersions().getMutableMap().putAll(values); + internalGetMutableBackupCrdVersions().getMutableMap() + .putAll(values); return this; } /** - * - * *
        * GKE version
        * 
* * string gke_version = 4; - * * @return Whether the gkeVersion field is set. */ @java.lang.Override @@ -2237,14 +2048,11 @@ public boolean hasGkeVersion() { return platformVersionCase_ == 4; } /** - * - * *
        * GKE version
        * 
* * string gke_version = 4; - * * @return The gkeVersion. */ @java.lang.Override @@ -2254,7 +2062,8 @@ public java.lang.String getGkeVersion() { ref = platformVersion_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (platformVersionCase_ == 4) { platformVersion_ = s; @@ -2265,25 +2074,24 @@ public java.lang.String getGkeVersion() { } } /** - * - * *
        * GKE version
        * 
* * string gke_version = 4; - * * @return The bytes for gkeVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getGkeVersionBytes() { + public com.google.protobuf.ByteString + getGkeVersionBytes() { java.lang.Object ref = ""; if (platformVersionCase_ == 4) { ref = platformVersion_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (platformVersionCase_ == 4) { platformVersion_ = b; } @@ -2293,35 +2101,30 @@ public com.google.protobuf.ByteString getGkeVersionBytes() { } } /** - * - * *
        * GKE version
        * 
* * string gke_version = 4; - * * @param value The gkeVersion to set. * @return This builder for chaining. */ - public Builder setGkeVersion(java.lang.String value) { + public Builder setGkeVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - platformVersionCase_ = 4; + throw new NullPointerException(); + } + platformVersionCase_ = 4; platformVersion_ = value; onChanged(); return this; } /** - * - * *
        * GKE version
        * 
* * string gke_version = 4; - * * @return This builder for chaining. */ public Builder clearGkeVersion() { @@ -2333,22 +2136,20 @@ public Builder clearGkeVersion() { return this; } /** - * - * *
        * GKE version
        * 
* * string gke_version = 4; - * * @param value The bytes for gkeVersion to set. * @return This builder for chaining. */ - public Builder setGkeVersionBytes(com.google.protobuf.ByteString value) { + public Builder setGkeVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); platformVersionCase_ = 4; platformVersion_ = value; onChanged(); @@ -2356,14 +2157,11 @@ public Builder setGkeVersionBytes(com.google.protobuf.ByteString value) { } /** - * - * *
        * Anthos version
        * 
* * string anthos_version = 5; - * * @return Whether the anthosVersion field is set. */ @java.lang.Override @@ -2371,14 +2169,11 @@ public boolean hasAnthosVersion() { return platformVersionCase_ == 5; } /** - * - * *
        * Anthos version
        * 
* * string anthos_version = 5; - * * @return The anthosVersion. */ @java.lang.Override @@ -2388,7 +2183,8 @@ public java.lang.String getAnthosVersion() { ref = platformVersion_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (platformVersionCase_ == 5) { platformVersion_ = s; @@ -2399,25 +2195,24 @@ public java.lang.String getAnthosVersion() { } } /** - * - * *
        * Anthos version
        * 
* * string anthos_version = 5; - * * @return The bytes for anthosVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getAnthosVersionBytes() { + public com.google.protobuf.ByteString + getAnthosVersionBytes() { java.lang.Object ref = ""; if (platformVersionCase_ == 5) { ref = platformVersion_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (platformVersionCase_ == 5) { platformVersion_ = b; } @@ -2427,35 +2222,30 @@ public com.google.protobuf.ByteString getAnthosVersionBytes() { } } /** - * - * *
        * Anthos version
        * 
* * string anthos_version = 5; - * * @param value The anthosVersion to set. * @return This builder for chaining. */ - public Builder setAnthosVersion(java.lang.String value) { + public Builder setAnthosVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - platformVersionCase_ = 5; + throw new NullPointerException(); + } + platformVersionCase_ = 5; platformVersion_ = value; onChanged(); return this; } /** - * - * *
        * Anthos version
        * 
* * string anthos_version = 5; - * * @return This builder for chaining. */ public Builder clearAnthosVersion() { @@ -2467,28 +2257,25 @@ public Builder clearAnthosVersion() { return this; } /** - * - * *
        * Anthos version
        * 
* * string anthos_version = 5; - * * @param value The bytes for anthosVersion to set. * @return This builder for chaining. */ - public Builder setAnthosVersionBytes(com.google.protobuf.ByteString value) { + public Builder setAnthosVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); platformVersionCase_ = 5; platformVersion_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2501,12 +2288,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.Backup.ClusterMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.Backup.ClusterMetadata) private static final com.google.cloud.gkebackup.v1.Backup.ClusterMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.Backup.ClusterMetadata(); } @@ -2515,16 +2302,16 @@ public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClusterMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2539,21 +2326,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.Backup.ClusterMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int backupScopeCase_ = 0; private java.lang.Object backupScope_; - public enum BackupScopeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ALL_NAMESPACES(12), SELECTED_NAMESPACES(13), SELECTED_APPLICATIONS(14), BACKUPSCOPE_NOT_SET(0); private final int value; - private BackupScopeCase(int value) { this.value = value; } @@ -2569,40 +2354,33 @@ public static BackupScopeCase valueOf(int value) { public static BackupScopeCase forNumber(int value) { switch (value) { - case 12: - return ALL_NAMESPACES; - case 13: - return SELECTED_NAMESPACES; - case 14: - return SELECTED_APPLICATIONS; - case 0: - return BACKUPSCOPE_NOT_SET; - default: - return null; + case 12: return ALL_NAMESPACES; + case 13: return SELECTED_NAMESPACES; + case 14: return SELECTED_APPLICATIONS; + case 0: return BACKUPSCOPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public BackupScopeCase getBackupScopeCase() { - return BackupScopeCase.forNumber(backupScopeCase_); + public BackupScopeCase + getBackupScopeCase() { + return BackupScopeCase.forNumber( + backupScopeCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The fully qualified name of the Backup.
    * projects/*/locations/*/backupPlans/*/backups/*
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -2611,30 +2389,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 fully qualified name of the Backup.
    * projects/*/locations/*/backupPlans/*/backups/*
    * 
* * 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 { @@ -2645,15 +2423,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int UID_FIELD_NUMBER = 2; private volatile java.lang.Object uid_; /** - * - * *
    * Output only. Server generated global unique identifier of
    * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -2662,30 +2437,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** - * - * *
    * Output only. Server generated global unique identifier of
    * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -2696,15 +2471,11 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The timestamp when this Backup resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -2712,15 +2483,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The timestamp when this Backup resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -2728,14 +2495,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The timestamp when this Backup resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -2745,15 +2509,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The timestamp when this Backup resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -2761,15 +2521,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The timestamp when this Backup resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -2777,14 +2533,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The timestamp when this Backup resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -2794,8 +2547,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int MANUAL_FIELD_NUMBER = 5; private boolean manual_; /** - * - * *
    * Output only. This flag indicates whether this Backup resource was created manually
    * by a user or via a schedule in the BackupPlan. A value of True means that
@@ -2803,7 +2554,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * bool manual = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The manual. */ @java.lang.Override @@ -2812,23 +2562,24 @@ public boolean getManual() { } public static final int LABELS_FIELD_NUMBER = 6; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.gkebackup.v1.BackupProto - .internal_static_google_cloud_gkebackup_v1_Backup_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.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - 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_; } @@ -2837,30 +2588,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 6; */ + @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(); } /** - * - * *
    * A set of custom labels supplied by user.
    * 
@@ -2868,12 +2617,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 6; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * A set of custom labels supplied by user.
    * 
@@ -2881,16 +2629,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + 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; } /** - * - * *
    * A set of custom labels supplied by user.
    * 
@@ -2898,11 +2646,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 6; */ @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(); } @@ -2912,8 +2661,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int DELETE_LOCK_DAYS_FIELD_NUMBER = 7; private int deleteLockDays_; /** - * - * *
    * Minimum age for this Backup (in days). If this field is set to a non-zero
    * value, the Backup will be "locked" against deletion (either manual or
@@ -2927,7 +2674,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * int32 delete_lock_days = 7; - * * @return The deleteLockDays. */ @java.lang.Override @@ -2938,17 +2684,12 @@ public int getDeleteLockDays() { public static final int DELETE_LOCK_EXPIRE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteLockExpireTime_; /** - * - * *
    * Output only. The time at which an existing delete lock will expire for this backup
    * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
    * 
* - * - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteLockExpireTime field is set. */ @java.lang.Override @@ -2956,36 +2697,25 @@ public boolean hasDeleteLockExpireTime() { return deleteLockExpireTime_ != null; } /** - * - * *
    * Output only. The time at which an existing delete lock will expire for this backup
    * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
    * 
* - * - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteLockExpireTime. */ @java.lang.Override public com.google.protobuf.Timestamp getDeleteLockExpireTime() { - return deleteLockExpireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteLockExpireTime_; + return deleteLockExpireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteLockExpireTime_; } /** - * - * *
    * Output only. The time at which an existing delete lock will expire for this backup
    * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
    * 
* - * - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteLockExpireTimeOrBuilder() { @@ -2995,8 +2725,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteLockExpireTimeOrBuilder() public static final int RETAIN_DAYS_FIELD_NUMBER = 9; private int retainDays_; /** - * - * *
    * The age (in days) after which this Backup will be automatically deleted.
    * Must be an integer value >= 0:
@@ -3008,7 +2736,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteLockExpireTimeOrBuilder()
    * 
* * int32 retain_days = 9; - * * @return The retainDays. */ @java.lang.Override @@ -3019,17 +2746,12 @@ public int getRetainDays() { public static final int RETAIN_EXPIRE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp retainExpireTime_; /** - * - * *
    * Output only. The time at which this Backup will be automatically deleted (calculated
    * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
    * 
* - * - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the retainExpireTime field is set. */ @java.lang.Override @@ -3037,36 +2759,25 @@ public boolean hasRetainExpireTime() { return retainExpireTime_ != null; } /** - * - * *
    * Output only. The time at which this Backup will be automatically deleted (calculated
    * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
    * 
* - * - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The retainExpireTime. */ @java.lang.Override public com.google.protobuf.Timestamp getRetainExpireTime() { - return retainExpireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : retainExpireTime_; + return retainExpireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : retainExpireTime_; } /** - * - * *
    * Output only. The time at which this Backup will be automatically deleted (calculated
    * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
    * 
* - * - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getRetainExpireTimeOrBuilder() { @@ -3076,18 +2787,13 @@ public com.google.protobuf.TimestampOrBuilder getRetainExpireTimeOrBuilder() { public static final int ENCRYPTION_KEY_FIELD_NUMBER = 11; private com.google.cloud.gkebackup.v1.EncryptionKey encryptionKey_; /** - * - * *
    * Output only. The customer managed encryption key that was used to encrypt the Backup's
    * artifacts.  Inherited from the parent BackupPlan's
    * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
    * 
* - * - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the encryptionKey field is set. */ @java.lang.Override @@ -3095,38 +2801,27 @@ public boolean hasEncryptionKey() { return encryptionKey_ != null; } /** - * - * *
    * Output only. The customer managed encryption key that was used to encrypt the Backup's
    * artifacts.  Inherited from the parent BackupPlan's
    * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
    * 
* - * - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The encryptionKey. */ @java.lang.Override public com.google.cloud.gkebackup.v1.EncryptionKey getEncryptionKey() { - return encryptionKey_ == null - ? com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() - : encryptionKey_; + return encryptionKey_ == null ? com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() : encryptionKey_; } /** - * - * *
    * Output only. The customer managed encryption key that was used to encrypt the Backup's
    * artifacts.  Inherited from the parent BackupPlan's
    * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
    * 
* - * - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { @@ -3135,14 +2830,11 @@ public com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBu public static final int ALL_NAMESPACES_FIELD_NUMBER = 12; /** - * - * *
    * Output only. If True, all namespaces were included in the Backup.
    * 
* * bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the allNamespaces field is set. */ @java.lang.Override @@ -3150,14 +2842,11 @@ public boolean hasAllNamespaces() { return backupScopeCase_ == 12; } /** - * - * *
    * Output only. If True, all namespaces were included in the Backup.
    * 
* * bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The allNamespaces. */ @java.lang.Override @@ -3170,16 +2859,11 @@ public boolean getAllNamespaces() { public static final int SELECTED_NAMESPACES_FIELD_NUMBER = 13; /** - * - * *
    * Output only. If set, the list of namespaces that were included in the Backup.
    * 
* - * - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the selectedNamespaces field is set. */ @java.lang.Override @@ -3187,57 +2871,43 @@ public boolean hasSelectedNamespaces() { return backupScopeCase_ == 13; } /** - * - * *
    * Output only. If set, the list of namespaces that were included in the Backup.
    * 
* - * - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The selectedNamespaces. */ @java.lang.Override public com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces() { if (backupScopeCase_ == 13) { - return (com.google.cloud.gkebackup.v1.Namespaces) backupScope_; + return (com.google.cloud.gkebackup.v1.Namespaces) backupScope_; } return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); } /** - * - * *
    * Output only. If set, the list of namespaces that were included in the Backup.
    * 
* - * - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOrBuilder() { if (backupScopeCase_ == 13) { - return (com.google.cloud.gkebackup.v1.Namespaces) backupScope_; + return (com.google.cloud.gkebackup.v1.Namespaces) backupScope_; } return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); } public static final int SELECTED_APPLICATIONS_FIELD_NUMBER = 14; /** - * - * *
    * Output only. If set, the list of ProtectedApplications whose resources were included
    * in the Backup.
    * 
* - * - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the selectedApplications field is set. */ @java.lang.Override @@ -3245,42 +2915,33 @@ public boolean hasSelectedApplications() { return backupScopeCase_ == 14; } /** - * - * *
    * Output only. If set, the list of ProtectedApplications whose resources were included
    * in the Backup.
    * 
* - * - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The selectedApplications. */ @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications() { if (backupScopeCase_ == 14) { - return (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_; + return (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_; } return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); } /** - * - * *
    * Output only. If set, the list of ProtectedApplications whose resources were included
    * in the Backup.
    * 
* - * - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder() { if (backupScopeCase_ == 14) { - return (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_; + return (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_; } return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); } @@ -3288,8 +2949,6 @@ public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplica public static final int CONTAINS_VOLUME_DATA_FIELD_NUMBER = 15; private boolean containsVolumeData_; /** - * - * *
    * Output only. Whether or not the Backup contains volume data.  Controlled by the parent
    * BackupPlan's
@@ -3297,7 +2956,6 @@ public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplica
    * 
* * bool contains_volume_data = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The containsVolumeData. */ @java.lang.Override @@ -3308,8 +2966,6 @@ public boolean getContainsVolumeData() { public static final int CONTAINS_SECRETS_FIELD_NUMBER = 16; private boolean containsSecrets_; /** - * - * *
    * Output only. Whether or not the Backup contains Kubernetes Secrets.  Controlled by the
    * parent BackupPlan's
@@ -3317,7 +2973,6 @@ public boolean getContainsVolumeData() {
    * 
* * bool contains_secrets = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The containsSecrets. */ @java.lang.Override @@ -3328,16 +2983,11 @@ public boolean getContainsSecrets() { public static final int CLUSTER_METADATA_FIELD_NUMBER = 17; private com.google.cloud.gkebackup.v1.Backup.ClusterMetadata clusterMetadata_; /** - * - * *
    * Output only. Information about the GKE cluster from which this Backup was created.
    * 
* - * - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the clusterMetadata field is set. */ @java.lang.Override @@ -3345,92 +2995,64 @@ public boolean hasClusterMetadata() { return clusterMetadata_ != null; } /** - * - * *
    * Output only. Information about the GKE cluster from which this Backup was created.
    * 
* - * - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The clusterMetadata. */ @java.lang.Override public com.google.cloud.gkebackup.v1.Backup.ClusterMetadata getClusterMetadata() { - return clusterMetadata_ == null - ? com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.getDefaultInstance() - : clusterMetadata_; + return clusterMetadata_ == null ? com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.getDefaultInstance() : clusterMetadata_; } /** - * - * *
    * Output only. Information about the GKE cluster from which this Backup was created.
    * 
* - * - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder - getClusterMetadataOrBuilder() { + public com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder getClusterMetadataOrBuilder() { return getClusterMetadata(); } public static final int STATE_FIELD_NUMBER = 18; private int state_; /** - * - * *
    * Output only. Current state of the Backup
    * 
* - * - * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. Current state of the Backup
    * 
* - * - * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.gkebackup.v1.Backup.State getState() { + @java.lang.Override public com.google.cloud.gkebackup.v1.Backup.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.Backup.State result = - com.google.cloud.gkebackup.v1.Backup.State.valueOf(state_); + com.google.cloud.gkebackup.v1.Backup.State result = com.google.cloud.gkebackup.v1.Backup.State.valueOf(state_); return result == null ? com.google.cloud.gkebackup.v1.Backup.State.UNRECOGNIZED : result; } public static final int STATE_REASON_FIELD_NUMBER = 19; private volatile java.lang.Object stateReason_; /** - * - * *
    * Output only. Human-readable description of why the backup is in the current `state`.
    * 
* * string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stateReason. */ @java.lang.Override @@ -3439,29 +3061,29 @@ public java.lang.String getStateReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateReason_ = s; return s; } } /** - * - * *
    * Output only. Human-readable description of why the backup is in the current `state`.
    * 
* * string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stateReason. */ @java.lang.Override - public com.google.protobuf.ByteString getStateReasonBytes() { + public com.google.protobuf.ByteString + getStateReasonBytes() { java.lang.Object ref = stateReason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stateReason_ = b; return b; } else { @@ -3472,16 +3094,11 @@ public com.google.protobuf.ByteString getStateReasonBytes() { public static final int COMPLETE_TIME_FIELD_NUMBER = 20; private com.google.protobuf.Timestamp completeTime_; /** - * - * *
    * Output only. Completion time of the Backup
    * 
* - * - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the completeTime field is set. */ @java.lang.Override @@ -3489,34 +3106,23 @@ public boolean hasCompleteTime() { return completeTime_ != null; } /** - * - * *
    * Output only. Completion time of the Backup
    * 
* - * - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The completeTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCompleteTime() { - return completeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : completeTime_; + return completeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; } /** - * - * *
    * Output only. Completion time of the Backup
    * 
* - * - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { @@ -3526,14 +3132,11 @@ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { public static final int RESOURCE_COUNT_FIELD_NUMBER = 21; private int resourceCount_; /** - * - * *
    * Output only. The total number of Kubernetes resources included in the Backup.
    * 
* * int32 resource_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The resourceCount. */ @java.lang.Override @@ -3544,14 +3147,11 @@ public int getResourceCount() { public static final int VOLUME_COUNT_FIELD_NUMBER = 22; private int volumeCount_; /** - * - * *
    * Output only. The total number of volume backups contained in the Backup.
    * 
* * int32 volume_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The volumeCount. */ @java.lang.Override @@ -3562,15 +3162,12 @@ public int getVolumeCount() { public static final int SIZE_BYTES_FIELD_NUMBER = 23; private long sizeBytes_; /** - * - * *
    * Output only. The total size of the Backup in bytes = config backup size + sum(volume
    * backup sizes)
    * 
* * int64 size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The sizeBytes. */ @java.lang.Override @@ -3581,8 +3178,6 @@ public long getSizeBytes() { public static final int ETAG_FIELD_NUMBER = 24; private volatile java.lang.Object etag_; /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a backup from overwriting each other.
@@ -3595,7 +3190,6 @@ public long getSizeBytes() {
    * 
* * string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ @java.lang.Override @@ -3604,15 +3198,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; } } /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a backup from overwriting each other.
@@ -3625,15 +3218,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -3644,14 +3238,11 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 25; private volatile java.lang.Object description_; /** - * - * *
    * User specified descriptive string for this Backup.
    * 
* * string description = 25; - * * @return The description. */ @java.lang.Override @@ -3660,29 +3251,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * User specified descriptive string for this Backup.
    * 
* * string description = 25; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -3693,14 +3284,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int POD_COUNT_FIELD_NUMBER = 26; private int podCount_; /** - * - * *
    * Output only. The total number of Kubernetes Pods contained in the Backup.
    * 
* * int32 pod_count = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The podCount. */ @java.lang.Override @@ -3711,14 +3299,11 @@ public int getPodCount() { public static final int CONFIG_BACKUP_SIZE_BYTES_FIELD_NUMBER = 27; private long configBackupSizeBytes_; /** - * - * *
    * Output only. The size of the config backup in bytes.
    * 
* * int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The configBackupSizeBytes. */ @java.lang.Override @@ -3727,7 +3312,6 @@ public long getConfigBackupSizeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3739,7 +3323,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -3755,8 +3340,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (manual_ != false) { output.writeBool(5, manual_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 6); if (deleteLockDays_ != 0) { output.writeInt32(7, deleteLockDays_); } @@ -3773,7 +3362,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(11, getEncryptionKey()); } if (backupScopeCase_ == 12) { - output.writeBool(12, (boolean) ((java.lang.Boolean) backupScope_)); + output.writeBool( + 12, (boolean)((java.lang.Boolean) backupScope_)); } if (backupScopeCase_ == 13) { output.writeMessage(13, (com.google.cloud.gkebackup.v1.Namespaces) backupScope_); @@ -3836,81 +3426,94 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateTime()); } if (manual_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, manual_); - } - 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(6, labels__); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, manual_); + } + 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(6, labels__); } if (deleteLockDays_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, deleteLockDays_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, deleteLockDays_); } if (deleteLockExpireTime_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteLockExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteLockExpireTime()); } if (retainDays_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, retainDays_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, retainDays_); } if (retainExpireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getRetainExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getRetainExpireTime()); } if (encryptionKey_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getEncryptionKey()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getEncryptionKey()); } if (backupScopeCase_ == 12) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 12, (boolean) ((java.lang.Boolean) backupScope_)); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 12, (boolean)((java.lang.Boolean) backupScope_)); } if (backupScopeCase_ == 13) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 13, (com.google.cloud.gkebackup.v1.Namespaces) backupScope_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, (com.google.cloud.gkebackup.v1.Namespaces) backupScope_); } if (backupScopeCase_ == 14) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 14, (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_); } if (containsVolumeData_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, containsVolumeData_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, containsVolumeData_); } if (containsSecrets_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, containsSecrets_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(16, containsSecrets_); } if (clusterMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getClusterMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getClusterMetadata()); } if (state_ != com.google.cloud.gkebackup.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(18, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(18, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, stateReason_); } if (completeTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getCompleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getCompleteTime()); } if (resourceCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(21, resourceCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(21, resourceCount_); } if (volumeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(22, volumeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(22, volumeCount_); } if (sizeBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(23, sizeBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(23, sizeBytes_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, etag_); @@ -3919,10 +3522,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, description_); } if (podCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(26, podCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(26, podCount_); } if (configBackupSizeBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(27, configBackupSizeBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(27, configBackupSizeBytes_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3932,68 +3537,94 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.Backup)) { return super.equals(obj); } com.google.cloud.gkebackup.v1.Backup other = (com.google.cloud.gkebackup.v1.Backup) obj; - if (!getName().equals(other.getName())) return false; - if (!getUid().equals(other.getUid())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUid() + .equals(other.getUid())) 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 (getManual() != other.getManual()) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (getDeleteLockDays() != other.getDeleteLockDays()) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (getManual() + != other.getManual()) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (getDeleteLockDays() + != other.getDeleteLockDays()) return false; if (hasDeleteLockExpireTime() != other.hasDeleteLockExpireTime()) return false; if (hasDeleteLockExpireTime()) { - if (!getDeleteLockExpireTime().equals(other.getDeleteLockExpireTime())) return false; + if (!getDeleteLockExpireTime() + .equals(other.getDeleteLockExpireTime())) return false; } - if (getRetainDays() != other.getRetainDays()) return false; + if (getRetainDays() + != other.getRetainDays()) return false; if (hasRetainExpireTime() != other.hasRetainExpireTime()) return false; if (hasRetainExpireTime()) { - if (!getRetainExpireTime().equals(other.getRetainExpireTime())) return false; + if (!getRetainExpireTime() + .equals(other.getRetainExpireTime())) return false; } if (hasEncryptionKey() != other.hasEncryptionKey()) return false; if (hasEncryptionKey()) { - if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; + if (!getEncryptionKey() + .equals(other.getEncryptionKey())) return false; } - if (getContainsVolumeData() != other.getContainsVolumeData()) return false; - if (getContainsSecrets() != other.getContainsSecrets()) return false; + if (getContainsVolumeData() + != other.getContainsVolumeData()) return false; + if (getContainsSecrets() + != other.getContainsSecrets()) return false; if (hasClusterMetadata() != other.hasClusterMetadata()) return false; if (hasClusterMetadata()) { - if (!getClusterMetadata().equals(other.getClusterMetadata())) return false; + if (!getClusterMetadata() + .equals(other.getClusterMetadata())) return false; } if (state_ != other.state_) return false; - if (!getStateReason().equals(other.getStateReason())) return false; + if (!getStateReason() + .equals(other.getStateReason())) return false; if (hasCompleteTime() != other.hasCompleteTime()) return false; if (hasCompleteTime()) { - if (!getCompleteTime().equals(other.getCompleteTime())) return false; - } - if (getResourceCount() != other.getResourceCount()) return false; - if (getVolumeCount() != other.getVolumeCount()) return false; - if (getSizeBytes() != other.getSizeBytes()) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (getPodCount() != other.getPodCount()) return false; - if (getConfigBackupSizeBytes() != other.getConfigBackupSizeBytes()) return false; + if (!getCompleteTime() + .equals(other.getCompleteTime())) return false; + } + if (getResourceCount() + != other.getResourceCount()) return false; + if (getVolumeCount() + != other.getVolumeCount()) return false; + if (getSizeBytes() + != other.getSizeBytes()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (getPodCount() + != other.getPodCount()) return false; + if (getConfigBackupSizeBytes() + != other.getConfigBackupSizeBytes()) return false; if (!getBackupScopeCase().equals(other.getBackupScopeCase())) return false; switch (backupScopeCase_) { case 12: - if (getAllNamespaces() != other.getAllNamespaces()) return false; + if (getAllNamespaces() + != other.getAllNamespaces()) return false; break; case 13: - if (!getSelectedNamespaces().equals(other.getSelectedNamespaces())) return false; + if (!getSelectedNamespaces() + .equals(other.getSelectedNamespaces())) return false; break; case 14: - if (!getSelectedApplications().equals(other.getSelectedApplications())) return false; + if (!getSelectedApplications() + .equals(other.getSelectedApplications())) return false; break; case 0: default: @@ -4022,7 +3653,8 @@ public int hashCode() { hash = (53 * hash) + getUpdateTime().hashCode(); } hash = (37 * hash) + MANUAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getManual()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getManual()); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); @@ -4044,9 +3676,11 @@ public int hashCode() { hash = (53 * hash) + getEncryptionKey().hashCode(); } hash = (37 * hash) + CONTAINS_VOLUME_DATA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContainsVolumeData()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getContainsVolumeData()); hash = (37 * hash) + CONTAINS_SECRETS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContainsSecrets()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getContainsSecrets()); if (hasClusterMetadata()) { hash = (37 * hash) + CLUSTER_METADATA_FIELD_NUMBER; hash = (53 * hash) + getClusterMetadata().hashCode(); @@ -4064,7 +3698,8 @@ public int hashCode() { hash = (37 * hash) + VOLUME_COUNT_FIELD_NUMBER; hash = (53 * hash) + getVolumeCount(); hash = (37 * hash) + SIZE_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSizeBytes()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; @@ -4072,11 +3707,13 @@ public int hashCode() { hash = (37 * hash) + POD_COUNT_FIELD_NUMBER; hash = (53 * hash) + getPodCount(); hash = (37 * hash) + CONFIG_BACKUP_SIZE_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getConfigBackupSizeBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getConfigBackupSizeBytes()); switch (backupScopeCase_) { case 12: hash = (37 * hash) + ALL_NAMESPACES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllNamespaces()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllNamespaces()); break; case 13: hash = (37 * hash) + SELECTED_NAMESPACES_FIELD_NUMBER; @@ -4094,103 +3731,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.Backup parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.Backup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.Backup parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.Backup parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.gkebackup.v1.Backup parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.Backup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.Backup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.Backup parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.Backup parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.Backup parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.Backup 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.cloud.gkebackup.v1.Backup parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.Backup parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.Backup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.Backup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 a request to perform a single point-in-time capture of
    * some portion of the state of a GKE cluster, the record of the backup
@@ -4201,43 +3832,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.Backup}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.Backup)
       com.google.cloud.gkebackup.v1.BackupOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkebackup.v1.BackupProto
-          .internal_static_google_cloud_gkebackup_v1_Backup_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 6:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 6:
           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.cloud.gkebackup.v1.BackupProto
-          .internal_static_google_cloud_gkebackup_v1_Backup_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.Backup.class,
-              com.google.cloud.gkebackup.v1.Backup.Builder.class);
+              com.google.cloud.gkebackup.v1.Backup.class, com.google.cloud.gkebackup.v1.Backup.Builder.class);
     }
 
     // Construct using com.google.cloud.gkebackup.v1.Backup.newBuilder()
@@ -4245,15 +3876,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -4338,9 +3970,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkebackup.v1.BackupProto
-          .internal_static_google_cloud_gkebackup_v1_Backup_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_descriptor;
     }
 
     @java.lang.Override
@@ -4440,39 +4072,38 @@ public com.google.cloud.gkebackup.v1.Backup 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.cloud.gkebackup.v1.Backup) {
-        return mergeFrom((com.google.cloud.gkebackup.v1.Backup) other);
+        return mergeFrom((com.google.cloud.gkebackup.v1.Backup)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -4498,7 +4129,8 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.Backup other) {
       if (other.getManual() != false) {
         setManual(other.getManual());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (other.getDeleteLockDays() != 0) {
         setDeleteLockDays(other.getDeleteLockDays());
       }
@@ -4557,25 +4189,21 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.Backup other) {
         setConfigBackupSizeBytes(other.getConfigBackupSizeBytes());
       }
       switch (other.getBackupScopeCase()) {
-        case ALL_NAMESPACES:
-          {
-            setAllNamespaces(other.getAllNamespaces());
-            break;
-          }
-        case SELECTED_NAMESPACES:
-          {
-            mergeSelectedNamespaces(other.getSelectedNamespaces());
-            break;
-          }
-        case SELECTED_APPLICATIONS:
-          {
-            mergeSelectedApplications(other.getSelectedApplications());
-            break;
-          }
-        case BACKUPSCOPE_NOT_SET:
-          {
-            break;
-          }
+        case ALL_NAMESPACES: {
+          setAllNamespaces(other.getAllNamespaces());
+          break;
+        }
+        case SELECTED_NAMESPACES: {
+          mergeSelectedNamespaces(other.getSelectedNamespaces());
+          break;
+        }
+        case SELECTED_APPLICATIONS: {
+          mergeSelectedApplications(other.getSelectedApplications());
+          break;
+        }
+        case BACKUPSCOPE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -4605,12 +4233,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int backupScopeCase_ = 0;
     private java.lang.Object backupScope_;
-
-    public BackupScopeCase getBackupScopeCase() {
-      return BackupScopeCase.forNumber(backupScopeCase_);
+    public BackupScopeCase
+        getBackupScopeCase() {
+      return BackupScopeCase.forNumber(
+          backupScopeCase_);
     }
 
     public Builder clearBackupScope() {
@@ -4624,21 +4252,19 @@ public Builder clearBackupScope() {
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The fully qualified name of the Backup.
      * projects/*/locations/*/backupPlans/*/backups/*
      * 
* * 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; @@ -4647,87 +4273,79 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The fully qualified name of the Backup.
      * projects/*/locations/*/backupPlans/*/backups/*
      * 
* * 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 { return (com.google.protobuf.ByteString) ref; } } - /** - * - * + /** *
      * Output only. The fully qualified name of the Backup.
      * projects/*/locations/*/backupPlans/*/backups/*
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The fully qualified name of the Backup.
      * projects/*/locations/*/backupPlans/*/backups/*
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The fully qualified name of the Backup.
      * projects/*/locations/*/backupPlans/*/backups/*
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -4735,21 +4353,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -4758,22 +4374,21 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -4781,64 +4396,57 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { + public Builder setUid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { + public Builder setUidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); return this; @@ -4846,58 +4454,39 @@ public Builder setUidBytes(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 timestamp when this Backup resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The timestamp when this Backup resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when this Backup resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -4913,17 +4502,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this Backup resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -4934,21 +4520,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when this Backup resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -4960,15 +4542,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this Backup resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -4982,64 +4560,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp when this Backup resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when this Backup resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The timestamp when this Backup resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -5047,58 +4609,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 timestamp when this Backup resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The timestamp when this Backup resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this Backup resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -5114,17 +4657,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this Backup resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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(); onChanged(); @@ -5135,21 +4675,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when this Backup resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -5161,15 +4697,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this Backup resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -5183,73 +4715,55 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The timestamp when this Backup resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when this Backup resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this Backup resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp 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> 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 manual_; + private boolean manual_ ; /** - * - * *
      * Output only. This flag indicates whether this Backup resource was created manually
      * by a user or via a schedule in the BackupPlan. A value of True means that
@@ -5257,7 +4771,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * bool manual = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The manual. */ @java.lang.Override @@ -5265,8 +4778,6 @@ public boolean getManual() { return manual_; } /** - * - * *
      * Output only. This flag indicates whether this Backup resource was created manually
      * by a user or via a schedule in the BackupPlan. A value of True means that
@@ -5274,19 +4785,16 @@ public boolean getManual() {
      * 
* * bool manual = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The manual to set. * @return This builder for chaining. */ public Builder setManual(boolean value) { - + manual_ = value; onChanged(); return this; } /** - * - * *
      * Output only. This flag indicates whether this Backup resource was created manually
      * by a user or via a schedule in the BackupPlan. A value of True means that
@@ -5294,31 +4802,31 @@ public Builder setManual(boolean value) {
      * 
* * bool manual = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearManual() { - + manual_ = false; onChanged(); 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() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; 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(); @@ -5330,30 +4838,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 6; */ + @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(); } /** - * - * *
      * A set of custom labels supplied by user.
      * 
@@ -5361,12 +4867,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 6; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * A set of custom labels supplied by user.
      * 
@@ -5374,17 +4879,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + 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; } /** - * - * *
      * A set of custom labels supplied by user.
      * 
@@ -5392,11 +4896,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 6; */ @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(); } @@ -5404,68 +4909,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 6; */ - 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() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 6; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + 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"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 6; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - private int deleteLockDays_; + private int deleteLockDays_ ; /** - * - * *
      * Minimum age for this Backup (in days). If this field is set to a non-zero
      * value, the Backup will be "locked" against deletion (either manual or
@@ -5479,7 +4985,6 @@ public Builder putAllLabels(java.util.Map va
      * 
* * int32 delete_lock_days = 7; - * * @return The deleteLockDays. */ @java.lang.Override @@ -5487,8 +4992,6 @@ public int getDeleteLockDays() { return deleteLockDays_; } /** - * - * *
      * Minimum age for this Backup (in days). If this field is set to a non-zero
      * value, the Backup will be "locked" against deletion (either manual or
@@ -5502,19 +5005,16 @@ public int getDeleteLockDays() {
      * 
* * int32 delete_lock_days = 7; - * * @param value The deleteLockDays to set. * @return This builder for chaining. */ public Builder setDeleteLockDays(int value) { - + deleteLockDays_ = value; onChanged(); return this; } /** - * - * *
      * Minimum age for this Backup (in days). If this field is set to a non-zero
      * value, the Backup will be "locked" against deletion (either manual or
@@ -5528,11 +5028,10 @@ public Builder setDeleteLockDays(int value) {
      * 
* * int32 delete_lock_days = 7; - * * @return This builder for chaining. */ public Builder clearDeleteLockDays() { - + deleteLockDays_ = 0; onChanged(); return this; @@ -5540,61 +5039,42 @@ public Builder clearDeleteLockDays() { private com.google.protobuf.Timestamp deleteLockExpireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteLockExpireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteLockExpireTimeBuilder_; /** - * - * *
      * Output only. The time at which an existing delete lock will expire for this backup
      * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
      * 
* - * - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteLockExpireTime field is set. */ public boolean hasDeleteLockExpireTime() { return deleteLockExpireTimeBuilder_ != null || deleteLockExpireTime_ != null; } /** - * - * *
      * Output only. The time at which an existing delete lock will expire for this backup
      * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
      * 
* - * - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteLockExpireTime. */ public com.google.protobuf.Timestamp getDeleteLockExpireTime() { if (deleteLockExpireTimeBuilder_ == null) { - return deleteLockExpireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteLockExpireTime_; + return deleteLockExpireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteLockExpireTime_; } else { return deleteLockExpireTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which an existing delete lock will expire for this backup
      * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
      * 
* - * - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteLockExpireTime(com.google.protobuf.Timestamp value) { if (deleteLockExpireTimeBuilder_ == null) { @@ -5610,18 +5090,15 @@ public Builder setDeleteLockExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which an existing delete lock will expire for this backup
      * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
      * 
* - * - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteLockExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteLockExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteLockExpireTimeBuilder_ == null) { deleteLockExpireTime_ = builderForValue.build(); onChanged(); @@ -5632,24 +5109,18 @@ public Builder setDeleteLockExpireTime(com.google.protobuf.Timestamp.Builder bui return this; } /** - * - * *
      * Output only. The time at which an existing delete lock will expire for this backup
      * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
      * 
* - * - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteLockExpireTime(com.google.protobuf.Timestamp value) { if (deleteLockExpireTimeBuilder_ == null) { if (deleteLockExpireTime_ != null) { deleteLockExpireTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteLockExpireTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteLockExpireTime_).mergeFrom(value).buildPartial(); } else { deleteLockExpireTime_ = value; } @@ -5661,16 +5132,12 @@ public Builder mergeDeleteLockExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which an existing delete lock will expire for this backup
      * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
      * 
* - * - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteLockExpireTime() { if (deleteLockExpireTimeBuilder_ == null) { @@ -5684,76 +5151,58 @@ public Builder clearDeleteLockExpireTime() { return this; } /** - * - * *
      * Output only. The time at which an existing delete lock will expire for this backup
      * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
      * 
* - * - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteLockExpireTimeBuilder() { - + onChanged(); return getDeleteLockExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which an existing delete lock will expire for this backup
      * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
      * 
* - * - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteLockExpireTimeOrBuilder() { if (deleteLockExpireTimeBuilder_ != null) { return deleteLockExpireTimeBuilder_.getMessageOrBuilder(); } else { - return deleteLockExpireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteLockExpireTime_; + return deleteLockExpireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteLockExpireTime_; } } /** - * - * *
      * Output only. The time at which an existing delete lock will expire for this backup
      * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
      * 
* - * - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.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> getDeleteLockExpireTimeFieldBuilder() { if (deleteLockExpireTimeBuilder_ == null) { - deleteLockExpireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteLockExpireTime(), getParentForChildren(), isClean()); + deleteLockExpireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteLockExpireTime(), + getParentForChildren(), + isClean()); deleteLockExpireTime_ = null; } return deleteLockExpireTimeBuilder_; } - private int retainDays_; + private int retainDays_ ; /** - * - * *
      * The age (in days) after which this Backup will be automatically deleted.
      * Must be an integer value >= 0:
@@ -5765,7 +5214,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteLockExpireTimeOrBuilder()
      * 
* * int32 retain_days = 9; - * * @return The retainDays. */ @java.lang.Override @@ -5773,8 +5221,6 @@ public int getRetainDays() { return retainDays_; } /** - * - * *
      * The age (in days) after which this Backup will be automatically deleted.
      * Must be an integer value >= 0:
@@ -5786,19 +5232,16 @@ public int getRetainDays() {
      * 
* * int32 retain_days = 9; - * * @param value The retainDays to set. * @return This builder for chaining. */ public Builder setRetainDays(int value) { - + retainDays_ = value; onChanged(); return this; } /** - * - * *
      * The age (in days) after which this Backup will be automatically deleted.
      * Must be an integer value >= 0:
@@ -5810,11 +5253,10 @@ public Builder setRetainDays(int value) {
      * 
* * int32 retain_days = 9; - * * @return This builder for chaining. */ public Builder clearRetainDays() { - + retainDays_ = 0; onChanged(); return this; @@ -5822,61 +5264,42 @@ public Builder clearRetainDays() { private com.google.protobuf.Timestamp retainExpireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - retainExpireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> retainExpireTimeBuilder_; /** - * - * *
      * Output only. The time at which this Backup will be automatically deleted (calculated
      * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
      * 
* - * - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the retainExpireTime field is set. */ public boolean hasRetainExpireTime() { return retainExpireTimeBuilder_ != null || retainExpireTime_ != null; } /** - * - * *
      * Output only. The time at which this Backup will be automatically deleted (calculated
      * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
      * 
* - * - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The retainExpireTime. */ public com.google.protobuf.Timestamp getRetainExpireTime() { if (retainExpireTimeBuilder_ == null) { - return retainExpireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : retainExpireTime_; + return retainExpireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : retainExpireTime_; } else { return retainExpireTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this Backup will be automatically deleted (calculated
      * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
      * 
* - * - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRetainExpireTime(com.google.protobuf.Timestamp value) { if (retainExpireTimeBuilder_ == null) { @@ -5892,18 +5315,15 @@ public Builder setRetainExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this Backup will be automatically deleted (calculated
      * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
      * 
* - * - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setRetainExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setRetainExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (retainExpireTimeBuilder_ == null) { retainExpireTime_ = builderForValue.build(); onChanged(); @@ -5914,24 +5334,18 @@ public Builder setRetainExpireTime(com.google.protobuf.Timestamp.Builder builder return this; } /** - * - * *
      * Output only. The time at which this Backup will be automatically deleted (calculated
      * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
      * 
* - * - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeRetainExpireTime(com.google.protobuf.Timestamp value) { if (retainExpireTimeBuilder_ == null) { if (retainExpireTime_ != null) { retainExpireTime_ = - com.google.protobuf.Timestamp.newBuilder(retainExpireTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(retainExpireTime_).mergeFrom(value).buildPartial(); } else { retainExpireTime_ = value; } @@ -5943,16 +5357,12 @@ public Builder mergeRetainExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this Backup will be automatically deleted (calculated
      * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
      * 
* - * - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRetainExpireTime() { if (retainExpireTimeBuilder_ == null) { @@ -5966,67 +5376,51 @@ public Builder clearRetainExpireTime() { return this; } /** - * - * *
      * Output only. The time at which this Backup will be automatically deleted (calculated
      * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
      * 
* - * - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getRetainExpireTimeBuilder() { - + onChanged(); return getRetainExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this Backup will be automatically deleted (calculated
      * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
      * 
* - * - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getRetainExpireTimeOrBuilder() { if (retainExpireTimeBuilder_ != null) { return retainExpireTimeBuilder_.getMessageOrBuilder(); } else { - return retainExpireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : retainExpireTime_; + return retainExpireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : retainExpireTime_; } } /** - * - * *
      * Output only. The time at which this Backup will be automatically deleted (calculated
      * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
      * 
* - * - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.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> getRetainExpireTimeFieldBuilder() { if (retainExpireTimeBuilder_ == null) { - retainExpireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getRetainExpireTime(), getParentForChildren(), isClean()); + retainExpireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getRetainExpireTime(), + getParentForChildren(), + isClean()); retainExpireTime_ = null; } return retainExpireTimeBuilder_; @@ -6034,64 +5428,45 @@ public com.google.protobuf.TimestampOrBuilder getRetainExpireTimeOrBuilder() { private com.google.cloud.gkebackup.v1.EncryptionKey encryptionKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.EncryptionKey, - com.google.cloud.gkebackup.v1.EncryptionKey.Builder, - com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder> - encryptionKeyBuilder_; + com.google.cloud.gkebackup.v1.EncryptionKey, com.google.cloud.gkebackup.v1.EncryptionKey.Builder, com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder> encryptionKeyBuilder_; /** - * - * *
      * Output only. The customer managed encryption key that was used to encrypt the Backup's
      * artifacts.  Inherited from the parent BackupPlan's
      * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
      * 
* - * - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the encryptionKey field is set. */ public boolean hasEncryptionKey() { return encryptionKeyBuilder_ != null || encryptionKey_ != null; } /** - * - * *
      * Output only. The customer managed encryption key that was used to encrypt the Backup's
      * artifacts.  Inherited from the parent BackupPlan's
      * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
      * 
* - * - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The encryptionKey. */ public com.google.cloud.gkebackup.v1.EncryptionKey getEncryptionKey() { if (encryptionKeyBuilder_ == null) { - return encryptionKey_ == null - ? com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() - : encryptionKey_; + return encryptionKey_ == null ? com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() : encryptionKey_; } else { return encryptionKeyBuilder_.getMessage(); } } /** - * - * *
      * Output only. The customer managed encryption key that was used to encrypt the Backup's
      * artifacts.  Inherited from the parent BackupPlan's
      * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
      * 
* - * - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEncryptionKey(com.google.cloud.gkebackup.v1.EncryptionKey value) { if (encryptionKeyBuilder_ == null) { @@ -6107,17 +5482,13 @@ public Builder setEncryptionKey(com.google.cloud.gkebackup.v1.EncryptionKey valu return this; } /** - * - * *
      * Output only. The customer managed encryption key that was used to encrypt the Backup's
      * artifacts.  Inherited from the parent BackupPlan's
      * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
      * 
* - * - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEncryptionKey( com.google.cloud.gkebackup.v1.EncryptionKey.Builder builderForValue) { @@ -6131,25 +5502,19 @@ public Builder setEncryptionKey( return this; } /** - * - * *
      * Output only. The customer managed encryption key that was used to encrypt the Backup's
      * artifacts.  Inherited from the parent BackupPlan's
      * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
      * 
* - * - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEncryptionKey(com.google.cloud.gkebackup.v1.EncryptionKey value) { if (encryptionKeyBuilder_ == null) { if (encryptionKey_ != null) { encryptionKey_ = - com.google.cloud.gkebackup.v1.EncryptionKey.newBuilder(encryptionKey_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkebackup.v1.EncryptionKey.newBuilder(encryptionKey_).mergeFrom(value).buildPartial(); } else { encryptionKey_ = value; } @@ -6161,17 +5526,13 @@ public Builder mergeEncryptionKey(com.google.cloud.gkebackup.v1.EncryptionKey va return this; } /** - * - * *
      * Output only. The customer managed encryption key that was used to encrypt the Backup's
      * artifacts.  Inherited from the parent BackupPlan's
      * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
      * 
* - * - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEncryptionKey() { if (encryptionKeyBuilder_ == null) { @@ -6185,98 +5546,76 @@ public Builder clearEncryptionKey() { return this; } /** - * - * *
      * Output only. The customer managed encryption key that was used to encrypt the Backup's
      * artifacts.  Inherited from the parent BackupPlan's
      * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
      * 
* - * - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkebackup.v1.EncryptionKey.Builder getEncryptionKeyBuilder() { - + onChanged(); return getEncryptionKeyFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The customer managed encryption key that was used to encrypt the Backup's
      * artifacts.  Inherited from the parent BackupPlan's
      * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
      * 
* - * - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { if (encryptionKeyBuilder_ != null) { return encryptionKeyBuilder_.getMessageOrBuilder(); } else { - return encryptionKey_ == null - ? com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() - : encryptionKey_; + return encryptionKey_ == null ? + com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() : encryptionKey_; } } /** - * - * *
      * Output only. The customer managed encryption key that was used to encrypt the Backup's
      * artifacts.  Inherited from the parent BackupPlan's
      * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
      * 
* - * - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.EncryptionKey, - com.google.cloud.gkebackup.v1.EncryptionKey.Builder, - com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder> + com.google.cloud.gkebackup.v1.EncryptionKey, com.google.cloud.gkebackup.v1.EncryptionKey.Builder, com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder> getEncryptionKeyFieldBuilder() { if (encryptionKeyBuilder_ == null) { - encryptionKeyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.EncryptionKey, - com.google.cloud.gkebackup.v1.EncryptionKey.Builder, - com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder>( - getEncryptionKey(), getParentForChildren(), isClean()); + encryptionKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.EncryptionKey, com.google.cloud.gkebackup.v1.EncryptionKey.Builder, com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder>( + getEncryptionKey(), + getParentForChildren(), + isClean()); encryptionKey_ = null; } return encryptionKeyBuilder_; } /** - * - * *
      * Output only. If True, all namespaces were included in the Backup.
      * 
* * bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the allNamespaces field is set. */ public boolean hasAllNamespaces() { return backupScopeCase_ == 12; } /** - * - * *
      * Output only. If True, all namespaces were included in the Backup.
      * 
* * bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The allNamespaces. */ public boolean getAllNamespaces() { @@ -6286,14 +5625,11 @@ public boolean getAllNamespaces() { return false; } /** - * - * *
      * Output only. If True, all namespaces were included in the Backup.
      * 
* * bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The allNamespaces to set. * @return This builder for chaining. */ @@ -6304,14 +5640,11 @@ public Builder setAllNamespaces(boolean value) { return this; } /** - * - * *
      * Output only. If True, all namespaces were included in the Backup.
      * 
* * bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearAllNamespaces() { @@ -6324,21 +5657,13 @@ public Builder clearAllNamespaces() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Namespaces, - com.google.cloud.gkebackup.v1.Namespaces.Builder, - com.google.cloud.gkebackup.v1.NamespacesOrBuilder> - selectedNamespacesBuilder_; + com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, com.google.cloud.gkebackup.v1.NamespacesOrBuilder> selectedNamespacesBuilder_; /** - * - * *
      * Output only. If set, the list of namespaces that were included in the Backup.
      * 
* - * - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the selectedNamespaces field is set. */ @java.lang.Override @@ -6346,16 +5671,11 @@ public boolean hasSelectedNamespaces() { return backupScopeCase_ == 13; } /** - * - * *
      * Output only. If set, the list of namespaces that were included in the Backup.
      * 
* - * - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The selectedNamespaces. */ @java.lang.Override @@ -6373,15 +5693,11 @@ public com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces() { } } /** - * - * *
      * Output only. If set, the list of namespaces that were included in the Backup.
      * 
* - * - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces value) { if (selectedNamespacesBuilder_ == null) { @@ -6397,15 +5713,11 @@ public Builder setSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces va return this; } /** - * - * *
      * Output only. If set, the list of namespaces that were included in the Backup.
      * 
* - * - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSelectedNamespaces( com.google.cloud.gkebackup.v1.Namespaces.Builder builderForValue) { @@ -6419,25 +5731,18 @@ public Builder setSelectedNamespaces( return this; } /** - * - * *
      * Output only. If set, the list of namespaces that were included in the Backup.
      * 
* - * - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces value) { if (selectedNamespacesBuilder_ == null) { - if (backupScopeCase_ == 13 - && backupScope_ != com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance()) { - backupScope_ = - com.google.cloud.gkebackup.v1.Namespaces.newBuilder( - (com.google.cloud.gkebackup.v1.Namespaces) backupScope_) - .mergeFrom(value) - .buildPartial(); + if (backupScopeCase_ == 13 && + backupScope_ != com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance()) { + backupScope_ = com.google.cloud.gkebackup.v1.Namespaces.newBuilder((com.google.cloud.gkebackup.v1.Namespaces) backupScope_) + .mergeFrom(value).buildPartial(); } else { backupScope_ = value; } @@ -6452,16 +5757,12 @@ public Builder mergeSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces backupScopeCase_ = 13; return this; } - /** - * - * + /** *
      * Output only. If set, the list of namespaces that were included in the Backup.
      * 
* - * - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSelectedNamespaces() { if (selectedNamespacesBuilder_ == null) { @@ -6480,29 +5781,21 @@ public Builder clearSelectedNamespaces() { return this; } /** - * - * *
      * Output only. If set, the list of namespaces that were included in the Backup.
      * 
* - * - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkebackup.v1.Namespaces.Builder getSelectedNamespacesBuilder() { return getSelectedNamespacesFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. If set, the list of namespaces that were included in the Backup.
      * 
* - * - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOrBuilder() { @@ -6516,58 +5809,40 @@ public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOr } } /** - * - * *
      * Output only. If set, the list of namespaces that were included in the Backup.
      * 
* - * - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Namespaces, - com.google.cloud.gkebackup.v1.Namespaces.Builder, - com.google.cloud.gkebackup.v1.NamespacesOrBuilder> + com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, com.google.cloud.gkebackup.v1.NamespacesOrBuilder> getSelectedNamespacesFieldBuilder() { if (selectedNamespacesBuilder_ == null) { if (!(backupScopeCase_ == 13)) { backupScope_ = com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); } - selectedNamespacesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Namespaces, - com.google.cloud.gkebackup.v1.Namespaces.Builder, - com.google.cloud.gkebackup.v1.NamespacesOrBuilder>( + selectedNamespacesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, com.google.cloud.gkebackup.v1.NamespacesOrBuilder>( (com.google.cloud.gkebackup.v1.Namespaces) backupScope_, getParentForChildren(), isClean()); backupScope_ = null; } backupScopeCase_ = 13; - onChanged(); - ; + onChanged();; return selectedNamespacesBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedNames, - com.google.cloud.gkebackup.v1.NamespacedNames.Builder, - com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> - selectedApplicationsBuilder_; + com.google.cloud.gkebackup.v1.NamespacedNames, com.google.cloud.gkebackup.v1.NamespacedNames.Builder, com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> selectedApplicationsBuilder_; /** - * - * *
      * Output only. If set, the list of ProtectedApplications whose resources were included
      * in the Backup.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the selectedApplications field is set. */ @java.lang.Override @@ -6575,17 +5850,12 @@ public boolean hasSelectedApplications() { return backupScopeCase_ == 14; } /** - * - * *
      * Output only. If set, the list of ProtectedApplications whose resources were included
      * in the Backup.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The selectedApplications. */ @java.lang.Override @@ -6603,16 +5873,12 @@ public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications() { } } /** - * - * *
      * Output only. If set, the list of ProtectedApplications whose resources were included
      * in the Backup.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSelectedApplications(com.google.cloud.gkebackup.v1.NamespacedNames value) { if (selectedApplicationsBuilder_ == null) { @@ -6628,16 +5894,12 @@ public Builder setSelectedApplications(com.google.cloud.gkebackup.v1.NamespacedN return this; } /** - * - * *
      * Output only. If set, the list of ProtectedApplications whose resources were included
      * in the Backup.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSelectedApplications( com.google.cloud.gkebackup.v1.NamespacedNames.Builder builderForValue) { @@ -6651,26 +5913,19 @@ public Builder setSelectedApplications( return this; } /** - * - * *
      * Output only. If set, the list of ProtectedApplications whose resources were included
      * in the Backup.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSelectedApplications(com.google.cloud.gkebackup.v1.NamespacedNames value) { if (selectedApplicationsBuilder_ == null) { - if (backupScopeCase_ == 14 - && backupScope_ != com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance()) { - backupScope_ = - com.google.cloud.gkebackup.v1.NamespacedNames.newBuilder( - (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_) - .mergeFrom(value) - .buildPartial(); + if (backupScopeCase_ == 14 && + backupScope_ != com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance()) { + backupScope_ = com.google.cloud.gkebackup.v1.NamespacedNames.newBuilder((com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_) + .mergeFrom(value).buildPartial(); } else { backupScope_ = value; } @@ -6686,16 +5941,12 @@ public Builder mergeSelectedApplications(com.google.cloud.gkebackup.v1.Namespace return this; } /** - * - * *
      * Output only. If set, the list of ProtectedApplications whose resources were included
      * in the Backup.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSelectedApplications() { if (selectedApplicationsBuilder_ == null) { @@ -6714,35 +5965,26 @@ public Builder clearSelectedApplications() { return this; } /** - * - * *
      * Output only. If set, the list of ProtectedApplications whose resources were included
      * in the Backup.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkebackup.v1.NamespacedNames.Builder getSelectedApplicationsBuilder() { return getSelectedApplicationsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. If set, the list of ProtectedApplications whose resources were included
      * in the Backup.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder - getSelectedApplicationsOrBuilder() { + public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder() { if ((backupScopeCase_ == 14) && (selectedApplicationsBuilder_ != null)) { return selectedApplicationsBuilder_.getMessageOrBuilder(); } else { @@ -6753,46 +5995,34 @@ public com.google.cloud.gkebackup.v1.NamespacedNames.Builder getSelectedApplicat } } /** - * - * *
      * Output only. If set, the list of ProtectedApplications whose resources were included
      * in the Backup.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedNames, - com.google.cloud.gkebackup.v1.NamespacedNames.Builder, - com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> + com.google.cloud.gkebackup.v1.NamespacedNames, com.google.cloud.gkebackup.v1.NamespacedNames.Builder, com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> getSelectedApplicationsFieldBuilder() { if (selectedApplicationsBuilder_ == null) { if (!(backupScopeCase_ == 14)) { backupScope_ = com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); } - selectedApplicationsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedNames, - com.google.cloud.gkebackup.v1.NamespacedNames.Builder, - com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>( + selectedApplicationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.NamespacedNames, com.google.cloud.gkebackup.v1.NamespacedNames.Builder, com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>( (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_, getParentForChildren(), isClean()); backupScope_ = null; } backupScopeCase_ = 14; - onChanged(); - ; + onChanged();; return selectedApplicationsBuilder_; } - private boolean containsVolumeData_; + private boolean containsVolumeData_ ; /** - * - * *
      * Output only. Whether or not the Backup contains volume data.  Controlled by the parent
      * BackupPlan's
@@ -6800,7 +6030,6 @@ public com.google.cloud.gkebackup.v1.NamespacedNames.Builder getSelectedApplicat
      * 
* * bool contains_volume_data = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The containsVolumeData. */ @java.lang.Override @@ -6808,8 +6037,6 @@ public boolean getContainsVolumeData() { return containsVolumeData_; } /** - * - * *
      * Output only. Whether or not the Backup contains volume data.  Controlled by the parent
      * BackupPlan's
@@ -6817,19 +6044,16 @@ public boolean getContainsVolumeData() {
      * 
* * bool contains_volume_data = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The containsVolumeData to set. * @return This builder for chaining. */ public Builder setContainsVolumeData(boolean value) { - + containsVolumeData_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Whether or not the Backup contains volume data.  Controlled by the parent
      * BackupPlan's
@@ -6837,20 +6061,17 @@ public Builder setContainsVolumeData(boolean value) {
      * 
* * bool contains_volume_data = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearContainsVolumeData() { - + containsVolumeData_ = false; onChanged(); return this; } - private boolean containsSecrets_; + private boolean containsSecrets_ ; /** - * - * *
      * Output only. Whether or not the Backup contains Kubernetes Secrets.  Controlled by the
      * parent BackupPlan's
@@ -6858,7 +6079,6 @@ public Builder clearContainsVolumeData() {
      * 
* * bool contains_secrets = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The containsSecrets. */ @java.lang.Override @@ -6866,8 +6086,6 @@ public boolean getContainsSecrets() { return containsSecrets_; } /** - * - * *
      * Output only. Whether or not the Backup contains Kubernetes Secrets.  Controlled by the
      * parent BackupPlan's
@@ -6875,19 +6093,16 @@ public boolean getContainsSecrets() {
      * 
* * bool contains_secrets = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The containsSecrets to set. * @return This builder for chaining. */ public Builder setContainsSecrets(boolean value) { - + containsSecrets_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Whether or not the Backup contains Kubernetes Secrets.  Controlled by the
      * parent BackupPlan's
@@ -6895,11 +6110,10 @@ public Builder setContainsSecrets(boolean value) {
      * 
* * bool contains_secrets = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearContainsSecrets() { - + containsSecrets_ = false; onChanged(); return this; @@ -6907,58 +6121,39 @@ public Builder clearContainsSecrets() { private com.google.cloud.gkebackup.v1.Backup.ClusterMetadata clusterMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata, - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder, - com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder> - clusterMetadataBuilder_; + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata, com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder, com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder> clusterMetadataBuilder_; /** - * - * *
      * Output only. Information about the GKE cluster from which this Backup was created.
      * 
* - * - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the clusterMetadata field is set. */ public boolean hasClusterMetadata() { return clusterMetadataBuilder_ != null || clusterMetadata_ != null; } /** - * - * *
      * Output only. Information about the GKE cluster from which this Backup was created.
      * 
* - * - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The clusterMetadata. */ public com.google.cloud.gkebackup.v1.Backup.ClusterMetadata getClusterMetadata() { if (clusterMetadataBuilder_ == null) { - return clusterMetadata_ == null - ? com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.getDefaultInstance() - : clusterMetadata_; + return clusterMetadata_ == null ? com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.getDefaultInstance() : clusterMetadata_; } else { return clusterMetadataBuilder_.getMessage(); } } /** - * - * *
      * Output only. Information about the GKE cluster from which this Backup was created.
      * 
* - * - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setClusterMetadata(com.google.cloud.gkebackup.v1.Backup.ClusterMetadata value) { if (clusterMetadataBuilder_ == null) { @@ -6974,15 +6169,11 @@ public Builder setClusterMetadata(com.google.cloud.gkebackup.v1.Backup.ClusterMe return this; } /** - * - * *
      * Output only. Information about the GKE cluster from which this Backup was created.
      * 
* - * - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setClusterMetadata( com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder builderForValue) { @@ -6996,24 +6187,17 @@ public Builder setClusterMetadata( return this; } /** - * - * *
      * Output only. Information about the GKE cluster from which this Backup was created.
      * 
* - * - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeClusterMetadata( - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata value) { + public Builder mergeClusterMetadata(com.google.cloud.gkebackup.v1.Backup.ClusterMetadata value) { if (clusterMetadataBuilder_ == null) { if (clusterMetadata_ != null) { clusterMetadata_ = - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.newBuilder(clusterMetadata_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.newBuilder(clusterMetadata_).mergeFrom(value).buildPartial(); } else { clusterMetadata_ = value; } @@ -7025,15 +6209,11 @@ public Builder mergeClusterMetadata( return this; } /** - * - * *
      * Output only. Information about the GKE cluster from which this Backup was created.
      * 
* - * - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearClusterMetadata() { if (clusterMetadataBuilder_ == null) { @@ -7047,66 +6227,48 @@ public Builder clearClusterMetadata() { return this; } /** - * - * *
      * Output only. Information about the GKE cluster from which this Backup was created.
      * 
* - * - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder - getClusterMetadataBuilder() { - + public com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder getClusterMetadataBuilder() { + onChanged(); return getClusterMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Information about the GKE cluster from which this Backup was created.
      * 
* - * - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder - getClusterMetadataOrBuilder() { + public com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder getClusterMetadataOrBuilder() { if (clusterMetadataBuilder_ != null) { return clusterMetadataBuilder_.getMessageOrBuilder(); } else { - return clusterMetadata_ == null - ? com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.getDefaultInstance() - : clusterMetadata_; + return clusterMetadata_ == null ? + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.getDefaultInstance() : clusterMetadata_; } } /** - * - * *
      * Output only. Information about the GKE cluster from which this Backup was created.
      * 
* - * - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata, - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder, - com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder> + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata, com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder, com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder> getClusterMetadataFieldBuilder() { if (clusterMetadataBuilder_ == null) { - clusterMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata, - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder, - com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder>( - getClusterMetadata(), getParentForChildren(), isClean()); + clusterMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata, com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder, com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder>( + getClusterMetadata(), + getParentForChildren(), + isClean()); clusterMetadata_ = null; } return clusterMetadataBuilder_; @@ -7114,73 +6276,51 @@ public Builder clearClusterMetadata() { private int state_ = 0; /** - * - * *
      * Output only. Current state of the Backup
      * 
* - * - * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. Current state of the Backup
      * 
* - * - * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Current state of the Backup
      * 
* - * - * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.gkebackup.v1.Backup.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.Backup.State result = - com.google.cloud.gkebackup.v1.Backup.State.valueOf(state_); + com.google.cloud.gkebackup.v1.Backup.State result = com.google.cloud.gkebackup.v1.Backup.State.valueOf(state_); return result == null ? com.google.cloud.gkebackup.v1.Backup.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Current state of the Backup
      * 
* - * - * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -7188,26 +6328,21 @@ public Builder setState(com.google.cloud.gkebackup.v1.Backup.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. Current state of the Backup
      * 
* - * - * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -7215,20 +6350,18 @@ public Builder clearState() { private java.lang.Object stateReason_ = ""; /** - * - * *
      * Output only. Human-readable description of why the backup is in the current `state`.
      * 
* * string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stateReason. */ public java.lang.String getStateReason() { java.lang.Object ref = stateReason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateReason_ = s; return s; @@ -7237,21 +6370,20 @@ public java.lang.String getStateReason() { } } /** - * - * *
      * Output only. Human-readable description of why the backup is in the current `state`.
      * 
* * string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stateReason. */ - public com.google.protobuf.ByteString getStateReasonBytes() { + public com.google.protobuf.ByteString + getStateReasonBytes() { java.lang.Object ref = stateReason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stateReason_ = b; return b; } else { @@ -7259,61 +6391,54 @@ public com.google.protobuf.ByteString getStateReasonBytes() { } } /** - * - * *
      * Output only. Human-readable description of why the backup is in the current `state`.
      * 
* * string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The stateReason to set. * @return This builder for chaining. */ - public Builder setStateReason(java.lang.String value) { + public Builder setStateReason( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stateReason_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable description of why the backup is in the current `state`.
      * 
* * string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStateReason() { - + stateReason_ = getDefaultInstance().getStateReason(); onChanged(); return this; } /** - * - * *
      * Output only. Human-readable description of why the backup is in the current `state`.
      * 
* * string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for stateReason to set. * @return This builder for chaining. */ - public Builder setStateReasonBytes(com.google.protobuf.ByteString value) { + public Builder setStateReasonBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stateReason_ = value; onChanged(); return this; @@ -7321,58 +6446,39 @@ public Builder setStateReasonBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp completeTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - completeTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completeTimeBuilder_; /** - * - * *
      * Output only. Completion time of the Backup
      * 
* - * - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the completeTime field is set. */ public boolean hasCompleteTime() { return completeTimeBuilder_ != null || completeTime_ != null; } /** - * - * *
      * Output only. Completion time of the Backup
      * 
* - * - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The completeTime. */ public com.google.protobuf.Timestamp getCompleteTime() { if (completeTimeBuilder_ == null) { - return completeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : completeTime_; + return completeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; } else { return completeTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Completion time of the Backup
      * 
* - * - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCompleteTime(com.google.protobuf.Timestamp value) { if (completeTimeBuilder_ == null) { @@ -7388,17 +6494,14 @@ public Builder setCompleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Completion time of the Backup
      * 
* - * - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCompleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (completeTimeBuilder_ == null) { completeTime_ = builderForValue.build(); onChanged(); @@ -7409,23 +6512,17 @@ public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForV return this; } /** - * - * *
      * Output only. Completion time of the Backup
      * 
* - * - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { if (completeTimeBuilder_ == null) { if (completeTime_ != null) { completeTime_ = - com.google.protobuf.Timestamp.newBuilder(completeTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(completeTime_).mergeFrom(value).buildPartial(); } else { completeTime_ = value; } @@ -7437,15 +6534,11 @@ public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Completion time of the Backup
      * 
* - * - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCompleteTime() { if (completeTimeBuilder_ == null) { @@ -7459,79 +6552,60 @@ public Builder clearCompleteTime() { return this; } /** - * - * *
      * Output only. Completion time of the Backup
      * 
* - * - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { - + onChanged(); return getCompleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Completion time of the Backup
      * 
* - * - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { if (completeTimeBuilder_ != null) { return completeTimeBuilder_.getMessageOrBuilder(); } else { - return completeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : completeTime_; + return completeTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; } } /** - * - * *
      * Output only. Completion time of the Backup
      * 
* - * - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 20 [(.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> getCompleteTimeFieldBuilder() { if (completeTimeBuilder_ == null) { - completeTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCompleteTime(), getParentForChildren(), isClean()); + completeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCompleteTime(), + getParentForChildren(), + isClean()); completeTime_ = null; } return completeTimeBuilder_; } - private int resourceCount_; + private int resourceCount_ ; /** - * - * *
      * Output only. The total number of Kubernetes resources included in the Backup.
      * 
* * int32 resource_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The resourceCount. */ @java.lang.Override @@ -7539,51 +6613,42 @@ public int getResourceCount() { return resourceCount_; } /** - * - * *
      * Output only. The total number of Kubernetes resources included in the Backup.
      * 
* * int32 resource_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The resourceCount to set. * @return This builder for chaining. */ public Builder setResourceCount(int value) { - + resourceCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The total number of Kubernetes resources included in the Backup.
      * 
* * int32 resource_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearResourceCount() { - + resourceCount_ = 0; onChanged(); return this; } - private int volumeCount_; + private int volumeCount_ ; /** - * - * *
      * Output only. The total number of volume backups contained in the Backup.
      * 
* * int32 volume_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The volumeCount. */ @java.lang.Override @@ -7591,52 +6656,43 @@ public int getVolumeCount() { return volumeCount_; } /** - * - * *
      * Output only. The total number of volume backups contained in the Backup.
      * 
* * int32 volume_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The volumeCount to set. * @return This builder for chaining. */ public Builder setVolumeCount(int value) { - + volumeCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The total number of volume backups contained in the Backup.
      * 
* * int32 volume_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVolumeCount() { - + volumeCount_ = 0; onChanged(); return this; } - private long sizeBytes_; + private long sizeBytes_ ; /** - * - * *
      * Output only. The total size of the Backup in bytes = config backup size + sum(volume
      * backup sizes)
      * 
* * int64 size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The sizeBytes. */ @java.lang.Override @@ -7644,38 +6700,32 @@ public long getSizeBytes() { return sizeBytes_; } /** - * - * *
      * Output only. The total size of the Backup in bytes = config backup size + sum(volume
      * backup sizes)
      * 
* * int64 size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The sizeBytes to set. * @return This builder for chaining. */ public Builder setSizeBytes(long value) { - + sizeBytes_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The total size of the Backup in bytes = config backup size + sum(volume
      * backup sizes)
      * 
* * int64 size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSizeBytes() { - + sizeBytes_ = 0L; onChanged(); return this; @@ -7683,8 +6733,6 @@ public Builder clearSizeBytes() { private java.lang.Object etag_ = ""; /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a backup from overwriting each other.
@@ -7697,13 +6745,13 @@ public Builder clearSizeBytes() {
      * 
* * string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -7712,8 +6760,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a backup from overwriting each other.
@@ -7726,14 +6772,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -7741,8 +6788,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a backup from overwriting each other.
@@ -7755,22 +6800,20 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a backup from overwriting each other.
@@ -7783,18 +6826,15 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a backup from overwriting each other.
@@ -7807,16 +6847,16 @@ public Builder clearEtag() {
      * 
* * string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; @@ -7824,20 +6864,18 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * User specified descriptive string for this Backup.
      * 
* * string description = 25; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -7846,21 +6884,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * User specified descriptive string for this Backup.
      * 
* * string description = 25; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -7868,76 +6905,66 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * User specified descriptive string for this Backup.
      * 
* * string description = 25; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * User specified descriptive string for this Backup.
      * 
* * string description = 25; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * User specified descriptive string for this Backup.
      * 
* * string description = 25; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private int podCount_; + private int podCount_ ; /** - * - * *
      * Output only. The total number of Kubernetes Pods contained in the Backup.
      * 
* * int32 pod_count = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The podCount. */ @java.lang.Override @@ -7945,52 +6972,42 @@ public int getPodCount() { return podCount_; } /** - * - * *
      * Output only. The total number of Kubernetes Pods contained in the Backup.
      * 
* * int32 pod_count = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The podCount to set. * @return This builder for chaining. */ public Builder setPodCount(int value) { - + podCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The total number of Kubernetes Pods contained in the Backup.
      * 
* * int32 pod_count = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPodCount() { - + podCount_ = 0; onChanged(); return this; } - private long configBackupSizeBytes_; + private long configBackupSizeBytes_ ; /** - * - * *
      * Output only. The size of the config backup in bytes.
      * 
* - * int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The configBackupSizeBytes. */ @java.lang.Override @@ -7998,45 +7015,37 @@ public long getConfigBackupSizeBytes() { return configBackupSizeBytes_; } /** - * - * *
      * Output only. The size of the config backup in bytes.
      * 
* - * int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The configBackupSizeBytes to set. * @return This builder for chaining. */ public Builder setConfigBackupSizeBytes(long value) { - + configBackupSizeBytes_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The size of the config backup in bytes.
      * 
* - * int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearConfigBackupSizeBytes() { - + configBackupSizeBytes_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -8046,12 +7055,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.Backup) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.Backup) private static final com.google.cloud.gkebackup.v1.Backup DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.Backup(); } @@ -8060,16 +7069,16 @@ public static com.google.cloud.gkebackup.v1.Backup getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Backup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Backup(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Backup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Backup(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8084,4 +7093,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.Backup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupName.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupName.java similarity index 100% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupName.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupName.java diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupOrBuilder.java similarity index 75% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupOrBuilder.java index 4d95377..a7c284a 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupOrBuilder.java @@ -1,161 +1,111 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/backup.proto package com.google.cloud.gkebackup.v1; -public interface BackupOrBuilder - extends +public interface BackupOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.Backup) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The fully qualified name of the Backup.
    * projects/*/locations/*/backupPlans/*/backups/*
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The fully qualified name of the Backup.
    * projects/*/locations/*/backupPlans/*/backups/*
    * 
* * 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. Server generated global unique identifier of
    * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. Server generated global unique identifier of
    * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. The timestamp when this Backup resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The timestamp when this Backup resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The timestamp when this Backup resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The timestamp when this Backup resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The timestamp when this Backup resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The timestamp when this Backup resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. This flag indicates whether this Backup resource was created manually
    * by a user or via a schedule in the BackupPlan. A value of True means that
@@ -163,14 +113,11 @@ public interface BackupOrBuilder
    * 
* * bool manual = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The manual. */ boolean getManual(); /** - * - * *
    * A set of custom labels supplied by user.
    * 
@@ -179,31 +126,30 @@ public interface BackupOrBuilder */ int getLabelsCount(); /** - * - * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 6; */ - 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(); /** - * - * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 6; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * A set of custom labels supplied by user.
    * 
@@ -212,24 +158,22 @@ public interface BackupOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 6; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Minimum age for this Backup (in days). If this field is set to a non-zero
    * value, the Backup will be "locked" against deletion (either manual or
@@ -243,58 +187,41 @@ java.lang.String getLabelsOrDefault(
    * 
* * int32 delete_lock_days = 7; - * * @return The deleteLockDays. */ int getDeleteLockDays(); /** - * - * *
    * Output only. The time at which an existing delete lock will expire for this backup
    * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
    * 
* - * - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteLockExpireTime field is set. */ boolean hasDeleteLockExpireTime(); /** - * - * *
    * Output only. The time at which an existing delete lock will expire for this backup
    * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
    * 
* - * - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteLockExpireTime. */ com.google.protobuf.Timestamp getDeleteLockExpireTime(); /** - * - * *
    * Output only. The time at which an existing delete lock will expire for this backup
    * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
    * 
* - * - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteLockExpireTimeOrBuilder(); /** - * - * *
    * The age (in days) after which this Backup will be automatically deleted.
    * Must be an integer value >= 0:
@@ -306,215 +233,150 @@ java.lang.String getLabelsOrDefault(
    * 
* * int32 retain_days = 9; - * * @return The retainDays. */ int getRetainDays(); /** - * - * *
    * Output only. The time at which this Backup will be automatically deleted (calculated
    * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
    * 
* - * - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the retainExpireTime field is set. */ boolean hasRetainExpireTime(); /** - * - * *
    * Output only. The time at which this Backup will be automatically deleted (calculated
    * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
    * 
* - * - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The retainExpireTime. */ com.google.protobuf.Timestamp getRetainExpireTime(); /** - * - * *
    * Output only. The time at which this Backup will be automatically deleted (calculated
    * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
    * 
* - * - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getRetainExpireTimeOrBuilder(); /** - * - * *
    * Output only. The customer managed encryption key that was used to encrypt the Backup's
    * artifacts.  Inherited from the parent BackupPlan's
    * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
    * 
* - * - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the encryptionKey field is set. */ boolean hasEncryptionKey(); /** - * - * *
    * Output only. The customer managed encryption key that was used to encrypt the Backup's
    * artifacts.  Inherited from the parent BackupPlan's
    * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
    * 
* - * - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The encryptionKey. */ com.google.cloud.gkebackup.v1.EncryptionKey getEncryptionKey(); /** - * - * *
    * Output only. The customer managed encryption key that was used to encrypt the Backup's
    * artifacts.  Inherited from the parent BackupPlan's
    * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
    * 
* - * - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBuilder(); /** - * - * *
    * Output only. If True, all namespaces were included in the Backup.
    * 
* * bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the allNamespaces field is set. */ boolean hasAllNamespaces(); /** - * - * *
    * Output only. If True, all namespaces were included in the Backup.
    * 
* * bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The allNamespaces. */ boolean getAllNamespaces(); /** - * - * *
    * Output only. If set, the list of namespaces that were included in the Backup.
    * 
* - * - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the selectedNamespaces field is set. */ boolean hasSelectedNamespaces(); /** - * - * *
    * Output only. If set, the list of namespaces that were included in the Backup.
    * 
* - * - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The selectedNamespaces. */ com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces(); /** - * - * *
    * Output only. If set, the list of namespaces that were included in the Backup.
    * 
* - * - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOrBuilder(); /** - * - * *
    * Output only. If set, the list of ProtectedApplications whose resources were included
    * in the Backup.
    * 
* - * - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the selectedApplications field is set. */ boolean hasSelectedApplications(); /** - * - * *
    * Output only. If set, the list of ProtectedApplications whose resources were included
    * in the Backup.
    * 
* - * - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The selectedApplications. */ com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications(); /** - * - * *
    * Output only. If set, the list of ProtectedApplications whose resources were included
    * in the Backup.
    * 
* - * - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder(); /** - * - * *
    * Output only. Whether or not the Backup contains volume data.  Controlled by the parent
    * BackupPlan's
@@ -522,14 +384,11 @@ java.lang.String getLabelsOrDefault(
    * 
* * bool contains_volume_data = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The containsVolumeData. */ boolean getContainsVolumeData(); /** - * - * *
    * Output only. Whether or not the Backup contains Kubernetes Secrets.  Controlled by the
    * parent BackupPlan's
@@ -537,190 +396,135 @@ java.lang.String getLabelsOrDefault(
    * 
* * bool contains_secrets = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The containsSecrets. */ boolean getContainsSecrets(); /** - * - * *
    * Output only. Information about the GKE cluster from which this Backup was created.
    * 
* - * - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the clusterMetadata field is set. */ boolean hasClusterMetadata(); /** - * - * *
    * Output only. Information about the GKE cluster from which this Backup was created.
    * 
* - * - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The clusterMetadata. */ com.google.cloud.gkebackup.v1.Backup.ClusterMetadata getClusterMetadata(); /** - * - * *
    * Output only. Information about the GKE cluster from which this Backup was created.
    * 
* - * - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder getClusterMetadataOrBuilder(); /** - * - * *
    * Output only. Current state of the Backup
    * 
* - * - * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. Current state of the Backup
    * 
* - * - * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.gkebackup.v1.Backup.State getState(); /** - * - * *
    * Output only. Human-readable description of why the backup is in the current `state`.
    * 
* * string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stateReason. */ java.lang.String getStateReason(); /** - * - * *
    * Output only. Human-readable description of why the backup is in the current `state`.
    * 
* * string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stateReason. */ - com.google.protobuf.ByteString getStateReasonBytes(); + com.google.protobuf.ByteString + getStateReasonBytes(); /** - * - * *
    * Output only. Completion time of the Backup
    * 
* - * - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the completeTime field is set. */ boolean hasCompleteTime(); /** - * - * *
    * Output only. Completion time of the Backup
    * 
* - * - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The completeTime. */ com.google.protobuf.Timestamp getCompleteTime(); /** - * - * *
    * Output only. Completion time of the Backup
    * 
* - * - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder(); /** - * - * *
    * Output only. The total number of Kubernetes resources included in the Backup.
    * 
* * int32 resource_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The resourceCount. */ int getResourceCount(); /** - * - * *
    * Output only. The total number of volume backups contained in the Backup.
    * 
* * int32 volume_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The volumeCount. */ int getVolumeCount(); /** - * - * *
    * Output only. The total size of the Backup in bytes = config backup size + sum(volume
    * backup sizes)
    * 
* * int64 size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The sizeBytes. */ long getSizeBytes(); /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a backup from overwriting each other.
@@ -733,13 +537,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a backup from overwriting each other.
@@ -752,58 +553,47 @@ java.lang.String getLabelsOrDefault(
    * 
* * string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * User specified descriptive string for this Backup.
    * 
* * string description = 25; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * User specified descriptive string for this Backup.
    * 
* * string description = 25; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The total number of Kubernetes Pods contained in the Backup.
    * 
* * int32 pod_count = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The podCount. */ int getPodCount(); /** - * - * *
    * Output only. The size of the config backup in bytes.
    * 
* * int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The configBackupSizeBytes. */ long getConfigBackupSizeBytes(); diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlan.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlan.java similarity index 74% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlan.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlan.java index ef1f9bd..c18d155 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlan.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlan.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/backup_plan.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Defines the configuration and scheduling for a "line" of Backups.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.BackupPlan} */ -public final class BackupPlan extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BackupPlan extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.BackupPlan) BackupPlanOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BackupPlan.newBuilder() to construct. private BackupPlan(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BackupPlan() { name_ = ""; uid_ = ""; @@ -47,15 +29,16 @@ private BackupPlan() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BackupPlan(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BackupPlan( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,152 +58,131 @@ private BackupPlan( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - uid_ = s; - break; + uid_ = s; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - break; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - cluster_ = s; - break; - } - case 58: - { - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder subBuilder = null; - if (retentionPolicy_ != null) { - subBuilder = retentionPolicy_.toBuilder(); - } - retentionPolicy_ = - input.readMessage( - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(retentionPolicy_); - retentionPolicy_ = subBuilder.buildPartial(); - } + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - break; + description_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + cluster_ = s; + break; + } + case 58: { + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder subBuilder = null; + if (retentionPolicy_ != null) { + subBuilder = retentionPolicy_.toBuilder(); } - case 66: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + retentionPolicy_ = input.readMessage(com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(retentionPolicy_); + retentionPolicy_ = subBuilder.buildPartial(); } - case 74: - { - com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder subBuilder = null; - if (backupSchedule_ != null) { - subBuilder = backupSchedule_.toBuilder(); - } - backupSchedule_ = - input.readMessage( - com.google.cloud.gkebackup.v1.BackupPlan.Schedule.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(backupSchedule_); - backupSchedule_ = subBuilder.buildPartial(); - } - break; + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - - etag_ = s; - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 74: { + com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder subBuilder = null; + if (backupSchedule_ != null) { + subBuilder = backupSchedule_.toBuilder(); } - case 88: - { - deactivated_ = input.readBool(); - break; + backupSchedule_ = input.readMessage(com.google.cloud.gkebackup.v1.BackupPlan.Schedule.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(backupSchedule_); + backupSchedule_ = subBuilder.buildPartial(); } - case 98: - { - com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder subBuilder = null; - if (backupConfig_ != null) { - subBuilder = backupConfig_.toBuilder(); - } - backupConfig_ = - input.readMessage( - com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(backupConfig_); - backupConfig_ = subBuilder.buildPartial(); - } - break; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 88: { + + deactivated_ = input.readBool(); + break; + } + case 98: { + com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder subBuilder = null; + if (backupConfig_ != null) { + subBuilder = backupConfig_.toBuilder(); } - case 104: - { - protectedPodCount_ = input.readInt32(); - break; + backupConfig_ = input.readMessage(com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(backupConfig_); + backupConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 104: { + + protectedPodCount_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -228,47 +190,43 @@ private BackupPlan( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.BackupPlanProto - .internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: 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.cloud.gkebackup.v1.BackupPlanProto - .internal_static_google_cloud_gkebackup_v1_BackupPlan_fieldAccessorTable + return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.BackupPlan.class, - com.google.cloud.gkebackup.v1.BackupPlan.Builder.class); + com.google.cloud.gkebackup.v1.BackupPlan.class, com.google.cloud.gkebackup.v1.BackupPlan.Builder.class); } - public interface RetentionPolicyOrBuilder - extends + public interface RetentionPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Minimum age for Backups created via this BackupPlan (in days).
      * This field MUST be an integer value between 0-90 (inclusive).
@@ -281,14 +239,11 @@ public interface RetentionPolicyOrBuilder
      * 
* * int32 backup_delete_lock_days = 1; - * * @return The backupDeleteLockDays. */ int getBackupDeleteLockDays(); /** - * - * *
      * The default maximum age of a Backup created via this BackupPlan.
      * This field MUST be an integer value >= 0.
@@ -305,14 +260,11 @@ public interface RetentionPolicyOrBuilder
      * 
* * int32 backup_retain_days = 2; - * * @return The backupRetainDays. */ int getBackupRetainDays(); /** - * - * *
      * This flag denotes whether the retention policy of this BackupPlan is
      * locked.  If set to True, no further update is allowed on this policy,
@@ -321,43 +273,41 @@ public interface RetentionPolicyOrBuilder
      * 
* * bool locked = 3; - * * @return The locked. */ boolean getLocked(); } /** - * - * *
    * RetentionPolicy defines a Backup retention policy for a BackupPlan.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.BackupPlan.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.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) RetentionPolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RetentionPolicy.newBuilder() to construct. private RetentionPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private RetentionPolicy() {} + private RetentionPolicy() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RetentionPolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RetentionPolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -376,28 +326,28 @@ private RetentionPolicy( case 0: done = true; break; - case 8: - { - backupDeleteLockDays_ = input.readInt32(); - break; - } - case 16: - { - backupRetainDays_ = input.readInt32(); - break; - } - case 24: - { - locked_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + backupDeleteLockDays_ = input.readInt32(); + break; + } + case 16: { + + backupRetainDays_ = input.readInt32(); + break; + } + case 24: { + + locked_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -405,33 +355,29 @@ private RetentionPolicy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.BackupPlanProto - .internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.BackupPlanProto - .internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_fieldAccessorTable + return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.class, - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder.class); + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.class, com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder.class); } public static final int BACKUP_DELETE_LOCK_DAYS_FIELD_NUMBER = 1; private int backupDeleteLockDays_; /** - * - * *
      * Minimum age for Backups created via this BackupPlan (in days).
      * This field MUST be an integer value between 0-90 (inclusive).
@@ -444,7 +390,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * int32 backup_delete_lock_days = 1; - * * @return The backupDeleteLockDays. */ @java.lang.Override @@ -455,8 +400,6 @@ public int getBackupDeleteLockDays() { public static final int BACKUP_RETAIN_DAYS_FIELD_NUMBER = 2; private int backupRetainDays_; /** - * - * *
      * The default maximum age of a Backup created via this BackupPlan.
      * This field MUST be an integer value >= 0.
@@ -473,7 +416,6 @@ public int getBackupDeleteLockDays() {
      * 
* * int32 backup_retain_days = 2; - * * @return The backupRetainDays. */ @java.lang.Override @@ -484,8 +426,6 @@ public int getBackupRetainDays() { public static final int LOCKED_FIELD_NUMBER = 3; private boolean locked_; /** - * - * *
      * This flag denotes whether the retention policy of this BackupPlan is
      * locked.  If set to True, no further update is allowed on this policy,
@@ -494,7 +434,6 @@ public int getBackupRetainDays() {
      * 
* * bool locked = 3; - * * @return The locked. */ @java.lang.Override @@ -503,7 +442,6 @@ public boolean getLocked() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -515,7 +453,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (backupDeleteLockDays_ != 0) { output.writeInt32(1, backupDeleteLockDays_); } @@ -535,13 +474,16 @@ public int getSerializedSize() { size = 0; if (backupDeleteLockDays_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, backupDeleteLockDays_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, backupDeleteLockDays_); } if (backupRetainDays_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, backupRetainDays_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, backupRetainDays_); } if (locked_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, locked_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, locked_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -551,17 +493,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy other = - (com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) obj; + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy other = (com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) obj; - if (getBackupDeleteLockDays() != other.getBackupDeleteLockDays()) return false; - if (getBackupRetainDays() != other.getBackupRetainDays()) return false; - if (getLocked() != other.getLocked()) return false; + if (getBackupDeleteLockDays() + != other.getBackupDeleteLockDays()) return false; + if (getBackupRetainDays() + != other.getBackupRetainDays()) return false; + if (getLocked() + != other.getLocked()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -578,101 +522,95 @@ public int hashCode() { hash = (37 * hash) + BACKUP_RETAIN_DAYS_FIELD_NUMBER; hash = (53 * hash) + getBackupRetainDays(); hash = (37 * hash) + LOCKED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocked()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getLocked()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.BackupPlan.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.cloud.gkebackup.v1.BackupPlan.RetentionPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.BackupPlan.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.cloud.gkebackup.v1.BackupPlan.RetentionPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.BackupPlan.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.cloud.gkebackup.v1.BackupPlan.RetentionPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.BackupPlan.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.cloud.gkebackup.v1.BackupPlan.RetentionPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.BackupPlan.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.cloud.gkebackup.v1.BackupPlan.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.cloud.gkebackup.v1.BackupPlan.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.cloud.gkebackup.v1.BackupPlan.RetentionPolicy prototype) { + public static Builder newBuilder(com.google.cloud.gkebackup.v1.BackupPlan.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 @@ -682,32 +620,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * RetentionPolicy defines a Backup retention policy for a BackupPlan.
      * 
* * Protobuf type {@code google.cloud.gkebackup.v1.BackupPlan.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.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.BackupPlanProto - .internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.BackupPlanProto - .internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_fieldAccessorTable + return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.class, - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder.class); + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.class, com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.newBuilder() @@ -715,15 +648,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -737,9 +671,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.BackupPlanProto - .internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor; } @java.lang.Override @@ -758,8 +692,7 @@ public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy build() { @java.lang.Override public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy buildPartial() { - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy result = - new com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy(this); + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy result = new com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy(this); result.backupDeleteLockDays_ = backupDeleteLockDays_; result.backupRetainDays_ = backupRetainDays_; result.locked_ = locked_; @@ -771,41 +704,38 @@ public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy 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) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) { - return mergeFrom((com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) other); + return mergeFrom((com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy)other); } else { super.mergeFrom(other); return this; @@ -813,8 +743,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy other) { - if (other == com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.getDefaultInstance()) return this; if (other.getBackupDeleteLockDays() != 0) { setBackupDeleteLockDays(other.getBackupDeleteLockDays()); } @@ -843,8 +772,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -854,10 +782,8 @@ public Builder mergeFrom( return this; } - private int backupDeleteLockDays_; + private int backupDeleteLockDays_ ; /** - * - * *
        * Minimum age for Backups created via this BackupPlan (in days).
        * This field MUST be an integer value between 0-90 (inclusive).
@@ -870,7 +796,6 @@ public Builder mergeFrom(
        * 
* * int32 backup_delete_lock_days = 1; - * * @return The backupDeleteLockDays. */ @java.lang.Override @@ -878,8 +803,6 @@ public int getBackupDeleteLockDays() { return backupDeleteLockDays_; } /** - * - * *
        * Minimum age for Backups created via this BackupPlan (in days).
        * This field MUST be an integer value between 0-90 (inclusive).
@@ -892,19 +815,16 @@ public int getBackupDeleteLockDays() {
        * 
* * int32 backup_delete_lock_days = 1; - * * @param value The backupDeleteLockDays to set. * @return This builder for chaining. */ public Builder setBackupDeleteLockDays(int value) { - + backupDeleteLockDays_ = value; onChanged(); return this; } /** - * - * *
        * Minimum age for Backups created via this BackupPlan (in days).
        * This field MUST be an integer value between 0-90 (inclusive).
@@ -917,20 +837,17 @@ public Builder setBackupDeleteLockDays(int value) {
        * 
* * int32 backup_delete_lock_days = 1; - * * @return This builder for chaining. */ public Builder clearBackupDeleteLockDays() { - + backupDeleteLockDays_ = 0; onChanged(); return this; } - private int backupRetainDays_; + private int backupRetainDays_ ; /** - * - * *
        * The default maximum age of a Backup created via this BackupPlan.
        * This field MUST be an integer value >= 0.
@@ -947,7 +864,6 @@ public Builder clearBackupDeleteLockDays() {
        * 
* * int32 backup_retain_days = 2; - * * @return The backupRetainDays. */ @java.lang.Override @@ -955,8 +871,6 @@ public int getBackupRetainDays() { return backupRetainDays_; } /** - * - * *
        * The default maximum age of a Backup created via this BackupPlan.
        * This field MUST be an integer value >= 0.
@@ -973,19 +887,16 @@ public int getBackupRetainDays() {
        * 
* * int32 backup_retain_days = 2; - * * @param value The backupRetainDays to set. * @return This builder for chaining. */ public Builder setBackupRetainDays(int value) { - + backupRetainDays_ = value; onChanged(); return this; } /** - * - * *
        * The default maximum age of a Backup created via this BackupPlan.
        * This field MUST be an integer value >= 0.
@@ -1002,20 +913,17 @@ public Builder setBackupRetainDays(int value) {
        * 
* * int32 backup_retain_days = 2; - * * @return This builder for chaining. */ public Builder clearBackupRetainDays() { - + backupRetainDays_ = 0; onChanged(); return this; } - private boolean locked_; + private boolean locked_ ; /** - * - * *
        * This flag denotes whether the retention policy of this BackupPlan is
        * locked.  If set to True, no further update is allowed on this policy,
@@ -1024,7 +932,6 @@ public Builder clearBackupRetainDays() {
        * 
* * bool locked = 3; - * * @return The locked. */ @java.lang.Override @@ -1032,8 +939,6 @@ public boolean getLocked() { return locked_; } /** - * - * *
        * This flag denotes whether the retention policy of this BackupPlan is
        * locked.  If set to True, no further update is allowed on this policy,
@@ -1042,19 +947,16 @@ public boolean getLocked() {
        * 
* * bool locked = 3; - * * @param value The locked to set. * @return This builder for chaining. */ public Builder setLocked(boolean value) { - + locked_ = value; onChanged(); return this; } /** - * - * *
        * This flag denotes whether the retention policy of this BackupPlan is
        * locked.  If set to True, no further update is allowed on this policy,
@@ -1063,16 +965,14 @@ public Builder setLocked(boolean value) {
        * 
* * bool locked = 3; - * * @return This builder for chaining. */ public Builder clearLocked() { - + locked_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1085,12 +985,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) private static final com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy(); } @@ -1099,16 +999,16 @@ public static com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy getDefaul 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 { - return new RetentionPolicy(input, extensionRegistry); - } - }; + 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 { + return new RetentionPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1123,16 +1023,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ScheduleOrBuilder - extends + public interface ScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.BackupPlan.Schedule) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A standard [cron](https://wikipedia.com/wiki/cron) string that defines a
      * repeating schedule for creating Backups via this BackupPlan.
@@ -1140,13 +1038,10 @@ public interface ScheduleOrBuilder
      * 
* * string cron_schedule = 1; - * * @return The cronSchedule. */ java.lang.String getCronSchedule(); /** - * - * *
      * A standard [cron](https://wikipedia.com/wiki/cron) string that defines a
      * repeating schedule for creating Backups via this BackupPlan.
@@ -1154,14 +1049,12 @@ public interface ScheduleOrBuilder
      * 
* * string cron_schedule = 1; - * * @return The bytes for cronSchedule. */ - com.google.protobuf.ByteString getCronScheduleBytes(); + com.google.protobuf.ByteString + getCronScheduleBytes(); /** - * - * *
      * This flag denotes whether automatic Backup creation is paused for this
      * BackupPlan.
@@ -1169,14 +1062,11 @@ public interface ScheduleOrBuilder
      * 
* * bool paused = 2; - * * @return The paused. */ boolean getPaused(); } /** - * - * *
    * Schedule defines scheduling parameters for automatically creating Backups
    * via this BackupPlan.
@@ -1184,31 +1074,31 @@ public interface ScheduleOrBuilder
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.BackupPlan.Schedule}
    */
-  public static final class Schedule extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Schedule extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.BackupPlan.Schedule)
       ScheduleOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Schedule.newBuilder() to construct.
     private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Schedule() {
       cronSchedule_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Schedule();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private Schedule(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1227,25 +1117,24 @@ private Schedule(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                cronSchedule_ = s;
-                break;
-              }
-            case 16:
-              {
-                paused_ = input.readBool();
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              cronSchedule_ = s;
+              break;
+            }
+            case 16: {
+
+              paused_ = input.readBool();
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1253,33 +1142,29 @@ private Schedule(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkebackup.v1.BackupPlanProto
-          .internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkebackup.v1.BackupPlanProto
-          .internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.BackupPlan.Schedule.class,
-              com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder.class);
+              com.google.cloud.gkebackup.v1.BackupPlan.Schedule.class, com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder.class);
     }
 
     public static final int CRON_SCHEDULE_FIELD_NUMBER = 1;
     private volatile java.lang.Object cronSchedule_;
     /**
-     *
-     *
      * 
      * A standard [cron](https://wikipedia.com/wiki/cron) string that defines a
      * repeating schedule for creating Backups via this BackupPlan.
@@ -1287,7 +1172,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string cron_schedule = 1; - * * @return The cronSchedule. */ @java.lang.Override @@ -1296,15 +1180,14 @@ public java.lang.String getCronSchedule() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cronSchedule_ = s; return s; } } /** - * - * *
      * A standard [cron](https://wikipedia.com/wiki/cron) string that defines a
      * repeating schedule for creating Backups via this BackupPlan.
@@ -1312,15 +1195,16 @@ public java.lang.String getCronSchedule() {
      * 
* * string cron_schedule = 1; - * * @return The bytes for cronSchedule. */ @java.lang.Override - public com.google.protobuf.ByteString getCronScheduleBytes() { + public com.google.protobuf.ByteString + getCronScheduleBytes() { java.lang.Object ref = cronSchedule_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cronSchedule_ = b; return b; } else { @@ -1331,8 +1215,6 @@ public com.google.protobuf.ByteString getCronScheduleBytes() { public static final int PAUSED_FIELD_NUMBER = 2; private boolean paused_; /** - * - * *
      * This flag denotes whether automatic Backup creation is paused for this
      * BackupPlan.
@@ -1340,7 +1222,6 @@ public com.google.protobuf.ByteString getCronScheduleBytes() {
      * 
* * bool paused = 2; - * * @return The paused. */ @java.lang.Override @@ -1349,7 +1230,6 @@ public boolean getPaused() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1361,7 +1241,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cronSchedule_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cronSchedule_); } @@ -1381,7 +1262,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cronSchedule_); } if (paused_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, paused_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, paused_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1391,16 +1273,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.BackupPlan.Schedule)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.BackupPlan.Schedule other = - (com.google.cloud.gkebackup.v1.BackupPlan.Schedule) obj; + com.google.cloud.gkebackup.v1.BackupPlan.Schedule other = (com.google.cloud.gkebackup.v1.BackupPlan.Schedule) obj; - if (!getCronSchedule().equals(other.getCronSchedule())) return false; - if (getPaused() != other.getPaused()) return false; + if (!getCronSchedule() + .equals(other.getCronSchedule())) return false; + if (getPaused() + != other.getPaused()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1415,100 +1298,95 @@ public int hashCode() { hash = (37 * hash) + CRON_SCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getCronSchedule().hashCode(); hash = (37 * hash) + PAUSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPaused()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPaused()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.BackupPlan.Schedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1518,8 +1396,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Schedule defines scheduling parameters for automatically creating Backups
      * via this BackupPlan.
@@ -1527,24 +1403,21 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.gkebackup.v1.BackupPlan.Schedule}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.BackupPlan.Schedule)
         com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.gkebackup.v1.BackupPlanProto
-            .internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.gkebackup.v1.BackupPlanProto
-            .internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_fieldAccessorTable
+        return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.gkebackup.v1.BackupPlan.Schedule.class,
-                com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder.class);
+                com.google.cloud.gkebackup.v1.BackupPlan.Schedule.class, com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder.class);
       }
 
       // Construct using com.google.cloud.gkebackup.v1.BackupPlan.Schedule.newBuilder()
@@ -1552,15 +1425,16 @@ 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) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1572,9 +1446,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.gkebackup.v1.BackupPlanProto
-            .internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor;
       }
 
       @java.lang.Override
@@ -1593,8 +1467,7 @@ public com.google.cloud.gkebackup.v1.BackupPlan.Schedule build() {
 
       @java.lang.Override
       public com.google.cloud.gkebackup.v1.BackupPlan.Schedule buildPartial() {
-        com.google.cloud.gkebackup.v1.BackupPlan.Schedule result =
-            new com.google.cloud.gkebackup.v1.BackupPlan.Schedule(this);
+        com.google.cloud.gkebackup.v1.BackupPlan.Schedule result = new com.google.cloud.gkebackup.v1.BackupPlan.Schedule(this);
         result.cronSchedule_ = cronSchedule_;
         result.paused_ = paused_;
         onBuilt();
@@ -1605,41 +1478,38 @@ public com.google.cloud.gkebackup.v1.BackupPlan.Schedule 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) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.gkebackup.v1.BackupPlan.Schedule) {
-          return mergeFrom((com.google.cloud.gkebackup.v1.BackupPlan.Schedule) other);
+          return mergeFrom((com.google.cloud.gkebackup.v1.BackupPlan.Schedule)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -1647,8 +1517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.gkebackup.v1.BackupPlan.Schedule other) {
-        if (other == com.google.cloud.gkebackup.v1.BackupPlan.Schedule.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.gkebackup.v1.BackupPlan.Schedule.getDefaultInstance()) return this;
         if (!other.getCronSchedule().isEmpty()) {
           cronSchedule_ = other.cronSchedule_;
           onChanged();
@@ -1675,8 +1544,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.gkebackup.v1.BackupPlan.Schedule) e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.gkebackup.v1.BackupPlan.Schedule) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1688,8 +1556,6 @@ public Builder mergeFrom(
 
       private java.lang.Object cronSchedule_ = "";
       /**
-       *
-       *
        * 
        * A standard [cron](https://wikipedia.com/wiki/cron) string that defines a
        * repeating schedule for creating Backups via this BackupPlan.
@@ -1697,13 +1563,13 @@ public Builder mergeFrom(
        * 
* * string cron_schedule = 1; - * * @return The cronSchedule. */ public java.lang.String getCronSchedule() { java.lang.Object ref = cronSchedule_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cronSchedule_ = s; return s; @@ -1712,8 +1578,6 @@ public java.lang.String getCronSchedule() { } } /** - * - * *
        * A standard [cron](https://wikipedia.com/wiki/cron) string that defines a
        * repeating schedule for creating Backups via this BackupPlan.
@@ -1721,14 +1585,15 @@ public java.lang.String getCronSchedule() {
        * 
* * string cron_schedule = 1; - * * @return The bytes for cronSchedule. */ - public com.google.protobuf.ByteString getCronScheduleBytes() { + public com.google.protobuf.ByteString + getCronScheduleBytes() { java.lang.Object ref = cronSchedule_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cronSchedule_ = b; return b; } else { @@ -1736,8 +1601,6 @@ public com.google.protobuf.ByteString getCronScheduleBytes() { } } /** - * - * *
        * A standard [cron](https://wikipedia.com/wiki/cron) string that defines a
        * repeating schedule for creating Backups via this BackupPlan.
@@ -1745,22 +1608,20 @@ public com.google.protobuf.ByteString getCronScheduleBytes() {
        * 
* * string cron_schedule = 1; - * * @param value The cronSchedule to set. * @return This builder for chaining. */ - public Builder setCronSchedule(java.lang.String value) { + public Builder setCronSchedule( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cronSchedule_ = value; onChanged(); return this; } /** - * - * *
        * A standard [cron](https://wikipedia.com/wiki/cron) string that defines a
        * repeating schedule for creating Backups via this BackupPlan.
@@ -1768,18 +1629,15 @@ public Builder setCronSchedule(java.lang.String value) {
        * 
* * string cron_schedule = 1; - * * @return This builder for chaining. */ public Builder clearCronSchedule() { - + cronSchedule_ = getDefaultInstance().getCronSchedule(); onChanged(); return this; } /** - * - * *
        * A standard [cron](https://wikipedia.com/wiki/cron) string that defines a
        * repeating schedule for creating Backups via this BackupPlan.
@@ -1787,25 +1645,23 @@ public Builder clearCronSchedule() {
        * 
* * string cron_schedule = 1; - * * @param value The bytes for cronSchedule to set. * @return This builder for chaining. */ - public Builder setCronScheduleBytes(com.google.protobuf.ByteString value) { + public Builder setCronScheduleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cronSchedule_ = value; onChanged(); return this; } - private boolean paused_; + private boolean paused_ ; /** - * - * *
        * This flag denotes whether automatic Backup creation is paused for this
        * BackupPlan.
@@ -1813,7 +1669,6 @@ public Builder setCronScheduleBytes(com.google.protobuf.ByteString value) {
        * 
* * bool paused = 2; - * * @return The paused. */ @java.lang.Override @@ -1821,8 +1676,6 @@ public boolean getPaused() { return paused_; } /** - * - * *
        * This flag denotes whether automatic Backup creation is paused for this
        * BackupPlan.
@@ -1830,19 +1683,16 @@ public boolean getPaused() {
        * 
* * bool paused = 2; - * * @param value The paused to set. * @return This builder for chaining. */ public Builder setPaused(boolean value) { - + paused_ = value; onChanged(); return this; } /** - * - * *
        * This flag denotes whether automatic Backup creation is paused for this
        * BackupPlan.
@@ -1850,16 +1700,14 @@ public Builder setPaused(boolean value) {
        * 
* * bool paused = 2; - * * @return This builder for chaining. */ public Builder clearPaused() { - + paused_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1872,12 +1720,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.BackupPlan.Schedule) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.BackupPlan.Schedule) private static final com.google.cloud.gkebackup.v1.BackupPlan.Schedule DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.BackupPlan.Schedule(); } @@ -1886,16 +1734,16 @@ public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Schedule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schedule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1910,65 +1758,51 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.BackupPlan.Schedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface BackupConfigOrBuilder - extends + public interface BackupConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.BackupPlan.BackupConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * If True, include all namespaced resources
      * 
* * bool all_namespaces = 1; - * * @return Whether the allNamespaces field is set. */ boolean hasAllNamespaces(); /** - * - * *
      * If True, include all namespaced resources
      * 
* * bool all_namespaces = 1; - * * @return The allNamespaces. */ boolean getAllNamespaces(); /** - * - * *
      * If set, include just the resources in the listed namespaces.
      * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2; - * * @return Whether the selectedNamespaces field is set. */ boolean hasSelectedNamespaces(); /** - * - * *
      * If set, include just the resources in the listed namespaces.
      * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2; - * * @return The selectedNamespaces. */ com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces(); /** - * - * *
      * If set, include just the resources in the listed namespaces.
      * 
@@ -1978,34 +1812,26 @@ public interface BackupConfigOrBuilder com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOrBuilder(); /** - * - * *
      * If set, include just the resources referenced by the listed
      * ProtectedApplications.
      * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3; - * * @return Whether the selectedApplications field is set. */ boolean hasSelectedApplications(); /** - * - * *
      * If set, include just the resources referenced by the listed
      * ProtectedApplications.
      * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3; - * * @return The selectedApplications. */ com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications(); /** - * - * *
      * If set, include just the resources referenced by the listed
      * ProtectedApplications.
@@ -2016,8 +1842,6 @@ public interface BackupConfigOrBuilder
     com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder();
 
     /**
-     *
-     *
      * 
      * This flag specifies whether volume data should be backed up when
      * PVCs are included in the scope of a Backup.
@@ -2025,14 +1849,11 @@ public interface BackupConfigOrBuilder
      * 
* * bool include_volume_data = 4; - * * @return The includeVolumeData. */ boolean getIncludeVolumeData(); /** - * - * *
      * This flag specifies whether Kubernetes Secret resources should be
      * included when they fall into the scope of Backups.
@@ -2040,14 +1861,11 @@ public interface BackupConfigOrBuilder
      * 
* * bool include_secrets = 5; - * * @return The includeSecrets. */ boolean getIncludeSecrets(); /** - * - * *
      * This defines a customer managed encryption key that will be used to
      * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -2056,13 +1874,10 @@ public interface BackupConfigOrBuilder
      * 
* * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6; - * * @return Whether the encryptionKey field is set. */ boolean hasEncryptionKey(); /** - * - * *
      * This defines a customer managed encryption key that will be used to
      * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -2071,13 +1886,10 @@ public interface BackupConfigOrBuilder
      * 
* * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6; - * * @return The encryptionKey. */ com.google.cloud.gkebackup.v1.EncryptionKey getEncryptionKey(); /** - * - * *
      * This defines a customer managed encryption key that will be used to
      * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -2089,12 +1901,9 @@ public interface BackupConfigOrBuilder
      */
     com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBuilder();
 
-    public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.BackupScopeCase
-        getBackupScopeCase();
+    public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.BackupScopeCase getBackupScopeCase();
   }
   /**
-   *
-   *
    * 
    * BackupConfig defines the configuration of Backups created via this
    * BackupPlan.
@@ -2102,29 +1911,30 @@ public interface BackupConfigOrBuilder
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.BackupPlan.BackupConfig}
    */
-  public static final class BackupConfig extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class BackupConfig extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.BackupPlan.BackupConfig)
       BackupConfigOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use BackupConfig.newBuilder() to construct.
     private BackupConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private BackupConfig() {}
+    private BackupConfig() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new BackupConfig();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private BackupConfig(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -2143,80 +1953,69 @@ private BackupConfig(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                backupScope_ = input.readBool();
-                backupScopeCase_ = 1;
-                break;
+            case 8: {
+              backupScope_ = input.readBool();
+              backupScopeCase_ = 1;
+              break;
+            }
+            case 18: {
+              com.google.cloud.gkebackup.v1.Namespaces.Builder subBuilder = null;
+              if (backupScopeCase_ == 2) {
+                subBuilder = ((com.google.cloud.gkebackup.v1.Namespaces) backupScope_).toBuilder();
               }
-            case 18:
-              {
-                com.google.cloud.gkebackup.v1.Namespaces.Builder subBuilder = null;
-                if (backupScopeCase_ == 2) {
-                  subBuilder =
-                      ((com.google.cloud.gkebackup.v1.Namespaces) backupScope_).toBuilder();
-                }
-                backupScope_ =
-                    input.readMessage(
-                        com.google.cloud.gkebackup.v1.Namespaces.parser(), extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom((com.google.cloud.gkebackup.v1.Namespaces) backupScope_);
-                  backupScope_ = subBuilder.buildPartial();
-                }
-                backupScopeCase_ = 2;
-                break;
+              backupScope_ =
+                  input.readMessage(com.google.cloud.gkebackup.v1.Namespaces.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.gkebackup.v1.Namespaces) backupScope_);
+                backupScope_ = subBuilder.buildPartial();
               }
-            case 26:
-              {
-                com.google.cloud.gkebackup.v1.NamespacedNames.Builder subBuilder = null;
-                if (backupScopeCase_ == 3) {
-                  subBuilder =
-                      ((com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_).toBuilder();
-                }
-                backupScope_ =
-                    input.readMessage(
-                        com.google.cloud.gkebackup.v1.NamespacedNames.parser(), extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(
-                      (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_);
-                  backupScope_ = subBuilder.buildPartial();
-                }
-                backupScopeCase_ = 3;
-                break;
+              backupScopeCase_ = 2;
+              break;
+            }
+            case 26: {
+              com.google.cloud.gkebackup.v1.NamespacedNames.Builder subBuilder = null;
+              if (backupScopeCase_ == 3) {
+                subBuilder = ((com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_).toBuilder();
               }
-            case 32:
-              {
-                includeVolumeData_ = input.readBool();
-                break;
+              backupScope_ =
+                  input.readMessage(com.google.cloud.gkebackup.v1.NamespacedNames.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_);
+                backupScope_ = subBuilder.buildPartial();
               }
-            case 40:
-              {
-                includeSecrets_ = input.readBool();
-                break;
+              backupScopeCase_ = 3;
+              break;
+            }
+            case 32: {
+
+              includeVolumeData_ = input.readBool();
+              break;
+            }
+            case 40: {
+
+              includeSecrets_ = input.readBool();
+              break;
+            }
+            case 50: {
+              com.google.cloud.gkebackup.v1.EncryptionKey.Builder subBuilder = null;
+              if (encryptionKey_ != null) {
+                subBuilder = encryptionKey_.toBuilder();
               }
-            case 50:
-              {
-                com.google.cloud.gkebackup.v1.EncryptionKey.Builder subBuilder = null;
-                if (encryptionKey_ != null) {
-                  subBuilder = encryptionKey_.toBuilder();
-                }
-                encryptionKey_ =
-                    input.readMessage(
-                        com.google.cloud.gkebackup.v1.EncryptionKey.parser(), extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(encryptionKey_);
-                  encryptionKey_ = subBuilder.buildPartial();
-                }
-
-                break;
+              encryptionKey_ = input.readMessage(com.google.cloud.gkebackup.v1.EncryptionKey.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(encryptionKey_);
+                encryptionKey_ = subBuilder.buildPartial();
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2224,41 +2023,36 @@ private BackupConfig(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkebackup.v1.BackupPlanProto
-          .internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkebackup.v1.BackupPlanProto
-          .internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.class,
-              com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder.class);
+              com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.class, com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder.class);
     }
 
     private int backupScopeCase_ = 0;
     private java.lang.Object backupScope_;
-
     public enum BackupScopeCase
-        implements
-            com.google.protobuf.Internal.EnumLite,
+        implements com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       ALL_NAMESPACES(1),
       SELECTED_NAMESPACES(2),
       SELECTED_APPLICATIONS(3),
       BACKUPSCOPE_NOT_SET(0);
       private final int value;
-
       private BackupScopeCase(int value) {
         this.value = value;
       }
@@ -2274,38 +2068,31 @@ public static BackupScopeCase valueOf(int value) {
 
       public static BackupScopeCase forNumber(int value) {
         switch (value) {
-          case 1:
-            return ALL_NAMESPACES;
-          case 2:
-            return SELECTED_NAMESPACES;
-          case 3:
-            return SELECTED_APPLICATIONS;
-          case 0:
-            return BACKUPSCOPE_NOT_SET;
-          default:
-            return null;
+          case 1: return ALL_NAMESPACES;
+          case 2: return SELECTED_NAMESPACES;
+          case 3: return SELECTED_APPLICATIONS;
+          case 0: return BACKUPSCOPE_NOT_SET;
+          default: return null;
         }
       }
-
       public int getNumber() {
         return this.value;
       }
     };
 
-    public BackupScopeCase getBackupScopeCase() {
-      return BackupScopeCase.forNumber(backupScopeCase_);
+    public BackupScopeCase
+    getBackupScopeCase() {
+      return BackupScopeCase.forNumber(
+          backupScopeCase_);
     }
 
     public static final int ALL_NAMESPACES_FIELD_NUMBER = 1;
     /**
-     *
-     *
      * 
      * If True, include all namespaced resources
      * 
* * bool all_namespaces = 1; - * * @return Whether the allNamespaces field is set. */ @java.lang.Override @@ -2313,14 +2100,11 @@ public boolean hasAllNamespaces() { return backupScopeCase_ == 1; } /** - * - * *
      * If True, include all namespaced resources
      * 
* * bool all_namespaces = 1; - * * @return The allNamespaces. */ @java.lang.Override @@ -2333,14 +2117,11 @@ public boolean getAllNamespaces() { public static final int SELECTED_NAMESPACES_FIELD_NUMBER = 2; /** - * - * *
      * If set, include just the resources in the listed namespaces.
      * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2; - * * @return Whether the selectedNamespaces field is set. */ @java.lang.Override @@ -2348,26 +2129,21 @@ public boolean hasSelectedNamespaces() { return backupScopeCase_ == 2; } /** - * - * *
      * If set, include just the resources in the listed namespaces.
      * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2; - * * @return The selectedNamespaces. */ @java.lang.Override public com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces() { if (backupScopeCase_ == 2) { - return (com.google.cloud.gkebackup.v1.Namespaces) backupScope_; + return (com.google.cloud.gkebackup.v1.Namespaces) backupScope_; } return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); } /** - * - * *
      * If set, include just the resources in the listed namespaces.
      * 
@@ -2377,22 +2153,19 @@ public com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces() { @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOrBuilder() { if (backupScopeCase_ == 2) { - return (com.google.cloud.gkebackup.v1.Namespaces) backupScope_; + return (com.google.cloud.gkebackup.v1.Namespaces) backupScope_; } return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); } public static final int SELECTED_APPLICATIONS_FIELD_NUMBER = 3; /** - * - * *
      * If set, include just the resources referenced by the listed
      * ProtectedApplications.
      * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3; - * * @return Whether the selectedApplications field is set. */ @java.lang.Override @@ -2400,27 +2173,22 @@ public boolean hasSelectedApplications() { return backupScopeCase_ == 3; } /** - * - * *
      * If set, include just the resources referenced by the listed
      * ProtectedApplications.
      * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3; - * * @return The selectedApplications. */ @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications() { if (backupScopeCase_ == 3) { - return (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_; + return (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_; } return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); } /** - * - * *
      * If set, include just the resources referenced by the listed
      * ProtectedApplications.
@@ -2429,10 +2197,9 @@ public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications() {
      * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
      */
     @java.lang.Override
-    public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder
-        getSelectedApplicationsOrBuilder() {
+    public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder() {
       if (backupScopeCase_ == 3) {
-        return (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_;
+         return (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_;
       }
       return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance();
     }
@@ -2440,8 +2207,6 @@ public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications() {
     public static final int INCLUDE_VOLUME_DATA_FIELD_NUMBER = 4;
     private boolean includeVolumeData_;
     /**
-     *
-     *
      * 
      * This flag specifies whether volume data should be backed up when
      * PVCs are included in the scope of a Backup.
@@ -2449,7 +2214,6 @@ public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications() {
      * 
* * bool include_volume_data = 4; - * * @return The includeVolumeData. */ @java.lang.Override @@ -2460,8 +2224,6 @@ public boolean getIncludeVolumeData() { public static final int INCLUDE_SECRETS_FIELD_NUMBER = 5; private boolean includeSecrets_; /** - * - * *
      * This flag specifies whether Kubernetes Secret resources should be
      * included when they fall into the scope of Backups.
@@ -2469,7 +2231,6 @@ public boolean getIncludeVolumeData() {
      * 
* * bool include_secrets = 5; - * * @return The includeSecrets. */ @java.lang.Override @@ -2480,8 +2241,6 @@ public boolean getIncludeSecrets() { public static final int ENCRYPTION_KEY_FIELD_NUMBER = 6; private com.google.cloud.gkebackup.v1.EncryptionKey encryptionKey_; /** - * - * *
      * This defines a customer managed encryption key that will be used to
      * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -2490,7 +2249,6 @@ public boolean getIncludeSecrets() {
      * 
* * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6; - * * @return Whether the encryptionKey field is set. */ @java.lang.Override @@ -2498,8 +2256,6 @@ public boolean hasEncryptionKey() { return encryptionKey_ != null; } /** - * - * *
      * This defines a customer managed encryption key that will be used to
      * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -2508,18 +2264,13 @@ public boolean hasEncryptionKey() {
      * 
* * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6; - * * @return The encryptionKey. */ @java.lang.Override public com.google.cloud.gkebackup.v1.EncryptionKey getEncryptionKey() { - return encryptionKey_ == null - ? com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() - : encryptionKey_; + return encryptionKey_ == null ? com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() : encryptionKey_; } /** - * - * *
      * This defines a customer managed encryption key that will be used to
      * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -2535,7 +2286,6 @@ public com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBu
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -2547,9 +2297,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 (backupScopeCase_ == 1) {
-        output.writeBool(1, (boolean) ((java.lang.Boolean) backupScope_));
+        output.writeBool(
+            1, (boolean)((java.lang.Boolean) backupScope_));
       }
       if (backupScopeCase_ == 2) {
         output.writeMessage(2, (com.google.cloud.gkebackup.v1.Namespaces) backupScope_);
@@ -2576,28 +2328,29 @@ public int getSerializedSize() {
 
       size = 0;
       if (backupScopeCase_ == 1) {
-        size +=
-            com.google.protobuf.CodedOutputStream.computeBoolSize(
-                1, (boolean) ((java.lang.Boolean) backupScope_));
+        size += com.google.protobuf.CodedOutputStream
+          .computeBoolSize(
+              1, (boolean)((java.lang.Boolean) backupScope_));
       }
       if (backupScopeCase_ == 2) {
-        size +=
-            com.google.protobuf.CodedOutputStream.computeMessageSize(
-                2, (com.google.cloud.gkebackup.v1.Namespaces) backupScope_);
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, (com.google.cloud.gkebackup.v1.Namespaces) backupScope_);
       }
       if (backupScopeCase_ == 3) {
-        size +=
-            com.google.protobuf.CodedOutputStream.computeMessageSize(
-                3, (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_);
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(3, (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_);
       }
       if (includeVolumeData_ != false) {
-        size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, includeVolumeData_);
+        size += com.google.protobuf.CodedOutputStream
+          .computeBoolSize(4, includeVolumeData_);
       }
       if (includeSecrets_ != false) {
-        size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, includeSecrets_);
+        size += com.google.protobuf.CodedOutputStream
+          .computeBoolSize(5, includeSecrets_);
       }
       if (encryptionKey_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEncryptionKey());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(6, getEncryptionKey());
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -2607,30 +2360,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.cloud.gkebackup.v1.BackupPlan.BackupConfig)) {
         return super.equals(obj);
       }
-      com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig other =
-          (com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig) obj;
+      com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig other = (com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig) obj;
 
-      if (getIncludeVolumeData() != other.getIncludeVolumeData()) return false;
-      if (getIncludeSecrets() != other.getIncludeSecrets()) return false;
+      if (getIncludeVolumeData()
+          != other.getIncludeVolumeData()) return false;
+      if (getIncludeSecrets()
+          != other.getIncludeSecrets()) return false;
       if (hasEncryptionKey() != other.hasEncryptionKey()) return false;
       if (hasEncryptionKey()) {
-        if (!getEncryptionKey().equals(other.getEncryptionKey())) return false;
+        if (!getEncryptionKey()
+            .equals(other.getEncryptionKey())) return false;
       }
       if (!getBackupScopeCase().equals(other.getBackupScopeCase())) return false;
       switch (backupScopeCase_) {
         case 1:
-          if (getAllNamespaces() != other.getAllNamespaces()) return false;
+          if (getAllNamespaces()
+              != other.getAllNamespaces()) return false;
           break;
         case 2:
-          if (!getSelectedNamespaces().equals(other.getSelectedNamespaces())) return false;
+          if (!getSelectedNamespaces()
+              .equals(other.getSelectedNamespaces())) return false;
           break;
         case 3:
-          if (!getSelectedApplications().equals(other.getSelectedApplications())) return false;
+          if (!getSelectedApplications()
+              .equals(other.getSelectedApplications())) return false;
           break;
         case 0:
         default:
@@ -2647,9 +2405,11 @@ public int hashCode() {
       int hash = 41;
       hash = (19 * hash) + getDescriptor().hashCode();
       hash = (37 * hash) + INCLUDE_VOLUME_DATA_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeVolumeData());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+          getIncludeVolumeData());
       hash = (37 * hash) + INCLUDE_SECRETS_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeSecrets());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+          getIncludeSecrets());
       if (hasEncryptionKey()) {
         hash = (37 * hash) + ENCRYPTION_KEY_FIELD_NUMBER;
         hash = (53 * hash) + getEncryptionKey().hashCode();
@@ -2657,7 +2417,8 @@ public int hashCode() {
       switch (backupScopeCase_) {
         case 1:
           hash = (37 * hash) + ALL_NAMESPACES_FIELD_NUMBER;
-          hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllNamespaces());
+          hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+              getAllNamespaces());
           break;
         case 2:
           hash = (37 * hash) + SELECTED_NAMESPACES_FIELD_NUMBER;
@@ -2676,94 +2437,87 @@ public int hashCode() {
     }
 
     public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(
-        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(
-        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(
-        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
-
-    public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseDelimitedFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseDelimitedFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
     public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(
-        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
-    public static Builder newBuilder(
-        com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig prototype) {
+    public static Builder newBuilder(com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -2773,8 +2527,6 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * BackupConfig defines the configuration of Backups created via this
      * BackupPlan.
@@ -2782,24 +2534,21 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.gkebackup.v1.BackupPlan.BackupConfig}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.BackupPlan.BackupConfig)
         com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.gkebackup.v1.BackupPlanProto
-            .internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.gkebackup.v1.BackupPlanProto
-            .internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_fieldAccessorTable
+        return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.class,
-                com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder.class);
+                com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.class, com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder.class);
       }
 
       // Construct using com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.newBuilder()
@@ -2807,15 +2556,16 @@ 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) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2835,9 +2585,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.gkebackup.v1.BackupPlanProto
-            .internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor;
       }
 
       @java.lang.Override
@@ -2856,8 +2606,7 @@ public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig build() {
 
       @java.lang.Override
       public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig buildPartial() {
-        com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig result =
-            new com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig(this);
+        com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig result = new com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig(this);
         if (backupScopeCase_ == 1) {
           result.backupScope_ = backupScope_;
         }
@@ -2891,41 +2640,38 @@ public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig 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) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig) {
-          return mergeFrom((com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig) other);
+          return mergeFrom((com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -2933,8 +2679,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig other) {
-        if (other == com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.getDefaultInstance()) return this;
         if (other.getIncludeVolumeData() != false) {
           setIncludeVolumeData(other.getIncludeVolumeData());
         }
@@ -2945,25 +2690,21 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig o
           mergeEncryptionKey(other.getEncryptionKey());
         }
         switch (other.getBackupScopeCase()) {
-          case ALL_NAMESPACES:
-            {
-              setAllNamespaces(other.getAllNamespaces());
-              break;
-            }
-          case SELECTED_NAMESPACES:
-            {
-              mergeSelectedNamespaces(other.getSelectedNamespaces());
-              break;
-            }
-          case SELECTED_APPLICATIONS:
-            {
-              mergeSelectedApplications(other.getSelectedApplications());
-              break;
-            }
-          case BACKUPSCOPE_NOT_SET:
-            {
-              break;
-            }
+          case ALL_NAMESPACES: {
+            setAllNamespaces(other.getAllNamespaces());
+            break;
+          }
+          case SELECTED_NAMESPACES: {
+            mergeSelectedNamespaces(other.getSelectedNamespaces());
+            break;
+          }
+          case SELECTED_APPLICATIONS: {
+            mergeSelectedApplications(other.getSelectedApplications());
+            break;
+          }
+          case BACKUPSCOPE_NOT_SET: {
+            break;
+          }
         }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
@@ -2984,8 +2725,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig) e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -2994,12 +2734,12 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int backupScopeCase_ = 0;
       private java.lang.Object backupScope_;
-
-      public BackupScopeCase getBackupScopeCase() {
-        return BackupScopeCase.forNumber(backupScopeCase_);
+      public BackupScopeCase
+          getBackupScopeCase() {
+        return BackupScopeCase.forNumber(
+            backupScopeCase_);
       }
 
       public Builder clearBackupScope() {
@@ -3009,29 +2749,24 @@ public Builder clearBackupScope() {
         return this;
       }
 
+
       /**
-       *
-       *
        * 
        * If True, include all namespaced resources
        * 
* * bool all_namespaces = 1; - * * @return Whether the allNamespaces field is set. */ public boolean hasAllNamespaces() { return backupScopeCase_ == 1; } /** - * - * *
        * If True, include all namespaced resources
        * 
* * bool all_namespaces = 1; - * * @return The allNamespaces. */ public boolean getAllNamespaces() { @@ -3041,14 +2776,11 @@ public boolean getAllNamespaces() { return false; } /** - * - * *
        * If True, include all namespaced resources
        * 
* * bool all_namespaces = 1; - * * @param value The allNamespaces to set. * @return This builder for chaining. */ @@ -3059,14 +2791,11 @@ public Builder setAllNamespaces(boolean value) { return this; } /** - * - * *
        * If True, include all namespaced resources
        * 
* * bool all_namespaces = 1; - * * @return This builder for chaining. */ public Builder clearAllNamespaces() { @@ -3079,19 +2808,13 @@ public Builder clearAllNamespaces() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Namespaces, - com.google.cloud.gkebackup.v1.Namespaces.Builder, - com.google.cloud.gkebackup.v1.NamespacesOrBuilder> - selectedNamespacesBuilder_; + com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, com.google.cloud.gkebackup.v1.NamespacesOrBuilder> selectedNamespacesBuilder_; /** - * - * *
        * If set, include just the resources in the listed namespaces.
        * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2; - * * @return Whether the selectedNamespaces field is set. */ @java.lang.Override @@ -3099,14 +2822,11 @@ public boolean hasSelectedNamespaces() { return backupScopeCase_ == 2; } /** - * - * *
        * If set, include just the resources in the listed namespaces.
        * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2; - * * @return The selectedNamespaces. */ @java.lang.Override @@ -3124,8 +2844,6 @@ public com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces() { } } /** - * - * *
        * If set, include just the resources in the listed namespaces.
        * 
@@ -3146,8 +2864,6 @@ public Builder setSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces va return this; } /** - * - * *
        * If set, include just the resources in the listed namespaces.
        * 
@@ -3166,8 +2882,6 @@ public Builder setSelectedNamespaces( return this; } /** - * - * *
        * If set, include just the resources in the listed namespaces.
        * 
@@ -3176,13 +2890,10 @@ public Builder setSelectedNamespaces( */ public Builder mergeSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces value) { if (selectedNamespacesBuilder_ == null) { - if (backupScopeCase_ == 2 - && backupScope_ != com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance()) { - backupScope_ = - com.google.cloud.gkebackup.v1.Namespaces.newBuilder( - (com.google.cloud.gkebackup.v1.Namespaces) backupScope_) - .mergeFrom(value) - .buildPartial(); + if (backupScopeCase_ == 2 && + backupScope_ != com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance()) { + backupScope_ = com.google.cloud.gkebackup.v1.Namespaces.newBuilder((com.google.cloud.gkebackup.v1.Namespaces) backupScope_) + .mergeFrom(value).buildPartial(); } else { backupScope_ = value; } @@ -3198,8 +2909,6 @@ public Builder mergeSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces return this; } /** - * - * *
        * If set, include just the resources in the listed namespaces.
        * 
@@ -3223,8 +2932,6 @@ public Builder clearSelectedNamespaces() { return this; } /** - * - * *
        * If set, include just the resources in the listed namespaces.
        * 
@@ -3235,8 +2942,6 @@ public com.google.cloud.gkebackup.v1.Namespaces.Builder getSelectedNamespacesBui return getSelectedNamespacesFieldBuilder().getBuilder(); } /** - * - * *
        * If set, include just the resources in the listed namespaces.
        * 
@@ -3255,8 +2960,6 @@ public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOr } } /** - * - * *
        * If set, include just the resources in the listed namespaces.
        * 
@@ -3264,45 +2967,33 @@ public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOr * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Namespaces, - com.google.cloud.gkebackup.v1.Namespaces.Builder, - com.google.cloud.gkebackup.v1.NamespacesOrBuilder> + com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, com.google.cloud.gkebackup.v1.NamespacesOrBuilder> getSelectedNamespacesFieldBuilder() { if (selectedNamespacesBuilder_ == null) { if (!(backupScopeCase_ == 2)) { backupScope_ = com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); } - selectedNamespacesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Namespaces, - com.google.cloud.gkebackup.v1.Namespaces.Builder, - com.google.cloud.gkebackup.v1.NamespacesOrBuilder>( + selectedNamespacesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, com.google.cloud.gkebackup.v1.NamespacesOrBuilder>( (com.google.cloud.gkebackup.v1.Namespaces) backupScope_, getParentForChildren(), isClean()); backupScope_ = null; } backupScopeCase_ = 2; - onChanged(); - ; + onChanged();; return selectedNamespacesBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedNames, - com.google.cloud.gkebackup.v1.NamespacedNames.Builder, - com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> - selectedApplicationsBuilder_; + com.google.cloud.gkebackup.v1.NamespacedNames, com.google.cloud.gkebackup.v1.NamespacedNames.Builder, com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> selectedApplicationsBuilder_; /** - * - * *
        * If set, include just the resources referenced by the listed
        * ProtectedApplications.
        * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3; - * * @return Whether the selectedApplications field is set. */ @java.lang.Override @@ -3310,15 +3001,12 @@ public boolean hasSelectedApplications() { return backupScopeCase_ == 3; } /** - * - * *
        * If set, include just the resources referenced by the listed
        * ProtectedApplications.
        * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3; - * * @return The selectedApplications. */ @java.lang.Override @@ -3336,8 +3024,6 @@ public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications() { } } /** - * - * *
        * If set, include just the resources referenced by the listed
        * ProtectedApplications.
@@ -3359,8 +3045,6 @@ public Builder setSelectedApplications(com.google.cloud.gkebackup.v1.NamespacedN
         return this;
       }
       /**
-       *
-       *
        * 
        * If set, include just the resources referenced by the listed
        * ProtectedApplications.
@@ -3380,8 +3064,6 @@ public Builder setSelectedApplications(
         return this;
       }
       /**
-       *
-       *
        * 
        * If set, include just the resources referenced by the listed
        * ProtectedApplications.
@@ -3389,17 +3071,12 @@ public Builder setSelectedApplications(
        *
        * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
        */
-      public Builder mergeSelectedApplications(
-          com.google.cloud.gkebackup.v1.NamespacedNames value) {
+      public Builder mergeSelectedApplications(com.google.cloud.gkebackup.v1.NamespacedNames value) {
         if (selectedApplicationsBuilder_ == null) {
-          if (backupScopeCase_ == 3
-              && backupScope_
-                  != com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance()) {
-            backupScope_ =
-                com.google.cloud.gkebackup.v1.NamespacedNames.newBuilder(
-                        (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_)
-                    .mergeFrom(value)
-                    .buildPartial();
+          if (backupScopeCase_ == 3 &&
+              backupScope_ != com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance()) {
+            backupScope_ = com.google.cloud.gkebackup.v1.NamespacedNames.newBuilder((com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_)
+                .mergeFrom(value).buildPartial();
           } else {
             backupScope_ = value;
           }
@@ -3415,8 +3092,6 @@ public Builder mergeSelectedApplications(
         return this;
       }
       /**
-       *
-       *
        * 
        * If set, include just the resources referenced by the listed
        * ProtectedApplications.
@@ -3441,8 +3116,6 @@ public Builder clearSelectedApplications() {
         return this;
       }
       /**
-       *
-       *
        * 
        * If set, include just the resources referenced by the listed
        * ProtectedApplications.
@@ -3450,13 +3123,10 @@ public Builder clearSelectedApplications() {
        *
        * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
        */
-      public com.google.cloud.gkebackup.v1.NamespacedNames.Builder
-          getSelectedApplicationsBuilder() {
+      public com.google.cloud.gkebackup.v1.NamespacedNames.Builder getSelectedApplicationsBuilder() {
         return getSelectedApplicationsFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * If set, include just the resources referenced by the listed
        * ProtectedApplications.
@@ -3465,8 +3135,7 @@ public Builder clearSelectedApplications() {
        * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
        */
       @java.lang.Override
-      public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder
-          getSelectedApplicationsOrBuilder() {
+      public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder() {
         if ((backupScopeCase_ == 3) && (selectedApplicationsBuilder_ != null)) {
           return selectedApplicationsBuilder_.getMessageOrBuilder();
         } else {
@@ -3477,8 +3146,6 @@ public Builder clearSelectedApplications() {
         }
       }
       /**
-       *
-       *
        * 
        * If set, include just the resources referenced by the listed
        * ProtectedApplications.
@@ -3487,34 +3154,26 @@ public Builder clearSelectedApplications() {
        * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.gkebackup.v1.NamespacedNames,
-              com.google.cloud.gkebackup.v1.NamespacedNames.Builder,
-              com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>
+          com.google.cloud.gkebackup.v1.NamespacedNames, com.google.cloud.gkebackup.v1.NamespacedNames.Builder, com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> 
           getSelectedApplicationsFieldBuilder() {
         if (selectedApplicationsBuilder_ == null) {
           if (!(backupScopeCase_ == 3)) {
             backupScope_ = com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance();
           }
-          selectedApplicationsBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.gkebackup.v1.NamespacedNames,
-                  com.google.cloud.gkebackup.v1.NamespacedNames.Builder,
-                  com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>(
+          selectedApplicationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.gkebackup.v1.NamespacedNames, com.google.cloud.gkebackup.v1.NamespacedNames.Builder, com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>(
                   (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_,
                   getParentForChildren(),
                   isClean());
           backupScope_ = null;
         }
         backupScopeCase_ = 3;
-        onChanged();
-        ;
+        onChanged();;
         return selectedApplicationsBuilder_;
       }
 
-      private boolean includeVolumeData_;
+      private boolean includeVolumeData_ ;
       /**
-       *
-       *
        * 
        * This flag specifies whether volume data should be backed up when
        * PVCs are included in the scope of a Backup.
@@ -3522,7 +3181,6 @@ public Builder clearSelectedApplications() {
        * 
* * bool include_volume_data = 4; - * * @return The includeVolumeData. */ @java.lang.Override @@ -3530,8 +3188,6 @@ public boolean getIncludeVolumeData() { return includeVolumeData_; } /** - * - * *
        * This flag specifies whether volume data should be backed up when
        * PVCs are included in the scope of a Backup.
@@ -3539,19 +3195,16 @@ public boolean getIncludeVolumeData() {
        * 
* * bool include_volume_data = 4; - * * @param value The includeVolumeData to set. * @return This builder for chaining. */ public Builder setIncludeVolumeData(boolean value) { - + includeVolumeData_ = value; onChanged(); return this; } /** - * - * *
        * This flag specifies whether volume data should be backed up when
        * PVCs are included in the scope of a Backup.
@@ -3559,20 +3212,17 @@ public Builder setIncludeVolumeData(boolean value) {
        * 
* * bool include_volume_data = 4; - * * @return This builder for chaining. */ public Builder clearIncludeVolumeData() { - + includeVolumeData_ = false; onChanged(); return this; } - private boolean includeSecrets_; + private boolean includeSecrets_ ; /** - * - * *
        * This flag specifies whether Kubernetes Secret resources should be
        * included when they fall into the scope of Backups.
@@ -3580,7 +3230,6 @@ public Builder clearIncludeVolumeData() {
        * 
* * bool include_secrets = 5; - * * @return The includeSecrets. */ @java.lang.Override @@ -3588,8 +3237,6 @@ public boolean getIncludeSecrets() { return includeSecrets_; } /** - * - * *
        * This flag specifies whether Kubernetes Secret resources should be
        * included when they fall into the scope of Backups.
@@ -3597,19 +3244,16 @@ public boolean getIncludeSecrets() {
        * 
* * bool include_secrets = 5; - * * @param value The includeSecrets to set. * @return This builder for chaining. */ public Builder setIncludeSecrets(boolean value) { - + includeSecrets_ = value; onChanged(); return this; } /** - * - * *
        * This flag specifies whether Kubernetes Secret resources should be
        * included when they fall into the scope of Backups.
@@ -3617,11 +3261,10 @@ public Builder setIncludeSecrets(boolean value) {
        * 
* * bool include_secrets = 5; - * * @return This builder for chaining. */ public Builder clearIncludeSecrets() { - + includeSecrets_ = false; onChanged(); return this; @@ -3629,13 +3272,8 @@ public Builder clearIncludeSecrets() { private com.google.cloud.gkebackup.v1.EncryptionKey encryptionKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.EncryptionKey, - com.google.cloud.gkebackup.v1.EncryptionKey.Builder, - com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder> - encryptionKeyBuilder_; + com.google.cloud.gkebackup.v1.EncryptionKey, com.google.cloud.gkebackup.v1.EncryptionKey.Builder, com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder> encryptionKeyBuilder_; /** - * - * *
        * This defines a customer managed encryption key that will be used to
        * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -3644,15 +3282,12 @@ public Builder clearIncludeSecrets() {
        * 
* * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6; - * * @return Whether the encryptionKey field is set. */ public boolean hasEncryptionKey() { return encryptionKeyBuilder_ != null || encryptionKey_ != null; } /** - * - * *
        * This defines a customer managed encryption key that will be used to
        * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -3661,21 +3296,16 @@ public boolean hasEncryptionKey() {
        * 
* * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6; - * * @return The encryptionKey. */ public com.google.cloud.gkebackup.v1.EncryptionKey getEncryptionKey() { if (encryptionKeyBuilder_ == null) { - return encryptionKey_ == null - ? com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() - : encryptionKey_; + return encryptionKey_ == null ? com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() : encryptionKey_; } else { return encryptionKeyBuilder_.getMessage(); } } /** - * - * *
        * This defines a customer managed encryption key that will be used to
        * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -3699,8 +3329,6 @@ public Builder setEncryptionKey(com.google.cloud.gkebackup.v1.EncryptionKey valu
         return this;
       }
       /**
-       *
-       *
        * 
        * This defines a customer managed encryption key that will be used to
        * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -3722,8 +3350,6 @@ public Builder setEncryptionKey(
         return this;
       }
       /**
-       *
-       *
        * 
        * This defines a customer managed encryption key that will be used to
        * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -3737,9 +3363,7 @@ public Builder mergeEncryptionKey(com.google.cloud.gkebackup.v1.EncryptionKey va
         if (encryptionKeyBuilder_ == null) {
           if (encryptionKey_ != null) {
             encryptionKey_ =
-                com.google.cloud.gkebackup.v1.EncryptionKey.newBuilder(encryptionKey_)
-                    .mergeFrom(value)
-                    .buildPartial();
+              com.google.cloud.gkebackup.v1.EncryptionKey.newBuilder(encryptionKey_).mergeFrom(value).buildPartial();
           } else {
             encryptionKey_ = value;
           }
@@ -3751,8 +3375,6 @@ public Builder mergeEncryptionKey(com.google.cloud.gkebackup.v1.EncryptionKey va
         return this;
       }
       /**
-       *
-       *
        * 
        * This defines a customer managed encryption key that will be used to
        * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -3774,8 +3396,6 @@ public Builder clearEncryptionKey() {
         return this;
       }
       /**
-       *
-       *
        * 
        * This defines a customer managed encryption key that will be used to
        * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -3786,13 +3406,11 @@ public Builder clearEncryptionKey() {
        * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6;
        */
       public com.google.cloud.gkebackup.v1.EncryptionKey.Builder getEncryptionKeyBuilder() {
-
+        
         onChanged();
         return getEncryptionKeyFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * This defines a customer managed encryption key that will be used to
        * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -3806,14 +3424,11 @@ public com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBu
         if (encryptionKeyBuilder_ != null) {
           return encryptionKeyBuilder_.getMessageOrBuilder();
         } else {
-          return encryptionKey_ == null
-              ? com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance()
-              : encryptionKey_;
+          return encryptionKey_ == null ?
+              com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() : encryptionKey_;
         }
       }
       /**
-       *
-       *
        * 
        * This defines a customer managed encryption key that will be used to
        * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -3824,22 +3439,18 @@ public com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBu
        * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.gkebackup.v1.EncryptionKey,
-              com.google.cloud.gkebackup.v1.EncryptionKey.Builder,
-              com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder>
+          com.google.cloud.gkebackup.v1.EncryptionKey, com.google.cloud.gkebackup.v1.EncryptionKey.Builder, com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder> 
           getEncryptionKeyFieldBuilder() {
         if (encryptionKeyBuilder_ == null) {
-          encryptionKeyBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.gkebackup.v1.EncryptionKey,
-                  com.google.cloud.gkebackup.v1.EncryptionKey.Builder,
-                  com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder>(
-                  getEncryptionKey(), getParentForChildren(), isClean());
+          encryptionKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.gkebackup.v1.EncryptionKey, com.google.cloud.gkebackup.v1.EncryptionKey.Builder, com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder>(
+                  getEncryptionKey(),
+                  getParentForChildren(),
+                  isClean());
           encryptionKey_ = null;
         }
         return encryptionKeyBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -3852,12 +3463,12 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.BackupPlan.BackupConfig)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.BackupPlan.BackupConfig)
     private static final com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig DEFAULT_INSTANCE;
-
     static {
       DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig();
     }
@@ -3866,16 +3477,16 @@ public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig getDefaultIn
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public BackupConfig parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            return new BackupConfig(input, extensionRegistry);
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public BackupConfig parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        return new BackupConfig(input, extensionRegistry);
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -3890,20 +3501,18 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. The full name of the BackupPlan resource.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -3912,30 +3521,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 full name of the BackupPlan resource.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* * 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 { @@ -3946,15 +3555,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int UID_FIELD_NUMBER = 2; private volatile java.lang.Object uid_; /** - * - * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -3963,30 +3569,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** - * - * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -3997,15 +3603,11 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The timestamp when this BackupPlan resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -4013,15 +3615,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The timestamp when this BackupPlan resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -4029,14 +3627,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The timestamp when this BackupPlan resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -4046,16 +3641,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The timestamp when this BackupPlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -4063,16 +3654,12 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The timestamp when this BackupPlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -4080,15 +3667,12 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The timestamp when this BackupPlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -4098,14 +3682,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** - * - * *
    * User specified descriptive string for this BackupPlan.
    * 
* * string description = 5; - * * @return The description. */ @java.lang.Override @@ -4114,29 +3695,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * User specified descriptive string for this BackupPlan.
    * 
* * string description = 5; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -4147,8 +3728,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CLUSTER_FIELD_NUMBER = 6; private volatile java.lang.Object cluster_; /** - * - * *
    * Required. Immutable. The source cluster from which Backups will be created via
    * this BackupPlan.
@@ -4157,10 +3736,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * - projects/*/zones/*/clusters/*
    * 
* - * - * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The cluster. */ @java.lang.Override @@ -4169,15 +3745,14 @@ public java.lang.String getCluster() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; } } /** - * - * *
    * Required. Immutable. The source cluster from which Backups will be created via
    * this BackupPlan.
@@ -4186,18 +3761,17 @@ public java.lang.String getCluster() {
    * - projects/*/zones/*/clusters/*
    * 
* - * - * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for cluster. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterBytes() { + public com.google.protobuf.ByteString + getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cluster_ = b; return b; } else { @@ -4208,14 +3782,11 @@ public com.google.protobuf.ByteString getClusterBytes() { public static final int RETENTION_POLICY_FIELD_NUMBER = 7; private com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retentionPolicy_; /** - * - * *
    * RetentionPolicy governs lifecycle of Backups created under this plan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; - * * @return Whether the retentionPolicy field is set. */ @java.lang.Override @@ -4223,25 +3794,18 @@ public boolean hasRetentionPolicy() { return retentionPolicy_ != null; } /** - * - * *
    * RetentionPolicy governs lifecycle of Backups created under this plan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; - * * @return The retentionPolicy. */ @java.lang.Override public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy getRetentionPolicy() { - return retentionPolicy_ == null - ? com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.getDefaultInstance() - : retentionPolicy_; + return retentionPolicy_ == null ? com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.getDefaultInstance() : retentionPolicy_; } /** - * - * *
    * RetentionPolicy governs lifecycle of Backups created under this plan.
    * 
@@ -4249,29 +3813,29 @@ public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy getRetentionPoli * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; */ @java.lang.Override - public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder - getRetentionPolicyOrBuilder() { + public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder getRetentionPolicyOrBuilder() { return getRetentionPolicy(); } public static final int LABELS_FIELD_NUMBER = 8; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.gkebackup.v1.BackupPlanProto - .internal_static_google_cloud_gkebackup_v1_BackupPlan_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.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - 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_; } @@ -4280,30 +3844,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 8; */ + @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(); } /** - * - * *
    * A set of custom labels supplied by user.
    * 
@@ -4311,12 +3873,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * A set of custom labels supplied by user.
    * 
@@ -4324,16 +3885,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + 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; } /** - * - * *
    * A set of custom labels supplied by user.
    * 
@@ -4341,11 +3902,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 8; */ @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(); } @@ -4355,14 +3917,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int BACKUP_SCHEDULE_FIELD_NUMBER = 9; private com.google.cloud.gkebackup.v1.BackupPlan.Schedule backupSchedule_; /** - * - * *
    * Defines a schedule for automatic Backup creation via this BackupPlan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9; - * * @return Whether the backupSchedule field is set. */ @java.lang.Override @@ -4370,25 +3929,18 @@ public boolean hasBackupSchedule() { return backupSchedule_ != null; } /** - * - * *
    * Defines a schedule for automatic Backup creation via this BackupPlan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9; - * * @return The backupSchedule. */ @java.lang.Override public com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule() { - return backupSchedule_ == null - ? com.google.cloud.gkebackup.v1.BackupPlan.Schedule.getDefaultInstance() - : backupSchedule_; + return backupSchedule_ == null ? com.google.cloud.gkebackup.v1.BackupPlan.Schedule.getDefaultInstance() : backupSchedule_; } /** - * - * *
    * Defines a schedule for automatic Backup creation via this BackupPlan.
    * 
@@ -4403,8 +3955,6 @@ public com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder getBackupSched public static final int ETAG_FIELD_NUMBER = 10; private volatile java.lang.Object etag_; /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a backup plan from overwriting each other.
@@ -4417,7 +3967,6 @@ public com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder getBackupSched
    * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ @java.lang.Override @@ -4426,15 +3975,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; } } /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a backup plan from overwriting each other.
@@ -4447,15 +3995,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -4466,8 +4015,6 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int DEACTIVATED_FIELD_NUMBER = 11; private boolean deactivated_; /** - * - * *
    * This flag indicates whether this BackupPlan has been deactivated.
    * Setting this field to True locks the BackupPlan such that no further
@@ -4478,7 +4025,6 @@ public com.google.protobuf.ByteString getEtagBytes() {
    * 
* * bool deactivated = 11; - * * @return The deactivated. */ @java.lang.Override @@ -4489,14 +4035,11 @@ public boolean getDeactivated() { public static final int BACKUP_CONFIG_FIELD_NUMBER = 12; private com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig backupConfig_; /** - * - * *
    * Defines the configuration of Backups created via this BackupPlan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12; - * * @return Whether the backupConfig field is set. */ @java.lang.Override @@ -4504,25 +4047,18 @@ public boolean hasBackupConfig() { return backupConfig_ != null; } /** - * - * *
    * Defines the configuration of Backups created via this BackupPlan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12; - * * @return The backupConfig. */ @java.lang.Override public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig getBackupConfig() { - return backupConfig_ == null - ? com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.getDefaultInstance() - : backupConfig_; + return backupConfig_ == null ? com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.getDefaultInstance() : backupConfig_; } /** - * - * *
    * Defines the configuration of Backups created via this BackupPlan.
    * 
@@ -4537,15 +4073,12 @@ public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder getBackupC public static final int PROTECTED_POD_COUNT_FIELD_NUMBER = 13; private int protectedPodCount_; /** - * - * *
    * Output only. The number of Kubernetes Pods backed up in the
    * last successful Backup created via this BackupPlan.
    * 
* * int32 protected_pod_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The protectedPodCount. */ @java.lang.Override @@ -4554,7 +4087,6 @@ public int getProtectedPodCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4566,7 +4098,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -4588,8 +4121,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (retentionPolicy_ != null) { output.writeMessage(7, getRetentionPolicy()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 8); if (backupSchedule_ != null) { output.writeMessage(9, getBackupSchedule()); } @@ -4621,10 +4158,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -4633,32 +4172,37 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, cluster_); } if (retentionPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getRetentionPolicy()); - } - 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(8, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getRetentionPolicy()); + } + 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(8, labels__); } if (backupSchedule_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getBackupSchedule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getBackupSchedule()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, etag_); } if (deactivated_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, deactivated_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(11, deactivated_); } if (backupConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getBackupConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getBackupConfig()); } if (protectedPodCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, protectedPodCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(13, protectedPodCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4668,41 +4212,54 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.BackupPlan)) { return super.equals(obj); } com.google.cloud.gkebackup.v1.BackupPlan other = (com.google.cloud.gkebackup.v1.BackupPlan) obj; - if (!getName().equals(other.getName())) return false; - if (!getUid().equals(other.getUid())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUid() + .equals(other.getUid())) 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 (!getDescription().equals(other.getDescription())) return false; - if (!getCluster().equals(other.getCluster())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getCluster() + .equals(other.getCluster())) 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 (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (hasBackupSchedule() != other.hasBackupSchedule()) return false; if (hasBackupSchedule()) { - if (!getBackupSchedule().equals(other.getBackupSchedule())) return false; + if (!getBackupSchedule() + .equals(other.getBackupSchedule())) return false; } - if (!getEtag().equals(other.getEtag())) return false; - if (getDeactivated() != other.getDeactivated()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (getDeactivated() + != other.getDeactivated()) return false; if (hasBackupConfig() != other.hasBackupConfig()) return false; if (hasBackupConfig()) { - if (!getBackupConfig().equals(other.getBackupConfig())) return false; + if (!getBackupConfig() + .equals(other.getBackupConfig())) return false; } - if (getProtectedPodCount() != other.getProtectedPodCount()) return false; + if (getProtectedPodCount() + != other.getProtectedPodCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4745,7 +4302,8 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + DEACTIVATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeactivated()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDeactivated()); if (hasBackupConfig()) { hash = (37 * hash) + BACKUP_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getBackupConfig().hashCode(); @@ -4757,147 +4315,140 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.BackupPlan parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.BackupPlan parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.BackupPlan parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.BackupPlan prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Defines the configuration and scheduling for a "line" of Backups.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.BackupPlan} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.BackupPlan) com.google.cloud.gkebackup.v1.BackupPlanOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.BackupPlanProto - .internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 8: 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.cloud.gkebackup.v1.BackupPlanProto - .internal_static_google_cloud_gkebackup_v1_BackupPlan_fieldAccessorTable + return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.BackupPlan.class, - com.google.cloud.gkebackup.v1.BackupPlan.Builder.class); + com.google.cloud.gkebackup.v1.BackupPlan.class, com.google.cloud.gkebackup.v1.BackupPlan.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.BackupPlan.newBuilder() @@ -4905,15 +4456,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4966,9 +4518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.BackupPlanProto - .internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor; } @java.lang.Override @@ -4987,8 +4539,7 @@ public com.google.cloud.gkebackup.v1.BackupPlan build() { @java.lang.Override public com.google.cloud.gkebackup.v1.BackupPlan buildPartial() { - com.google.cloud.gkebackup.v1.BackupPlan result = - new com.google.cloud.gkebackup.v1.BackupPlan(this); + com.google.cloud.gkebackup.v1.BackupPlan result = new com.google.cloud.gkebackup.v1.BackupPlan(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.uid_ = uid_; @@ -5032,39 +4583,38 @@ public com.google.cloud.gkebackup.v1.BackupPlan 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.cloud.gkebackup.v1.BackupPlan) { - return mergeFrom((com.google.cloud.gkebackup.v1.BackupPlan) other); + return mergeFrom((com.google.cloud.gkebackup.v1.BackupPlan)other); } else { super.mergeFrom(other); return this; @@ -5098,7 +4648,8 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.BackupPlan other) { if (other.hasRetentionPolicy()) { mergeRetentionPolicy(other.getRetentionPolicy()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.hasBackupSchedule()) { mergeBackupSchedule(other.getBackupSchedule()); } @@ -5143,26 +4694,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The full name of the BackupPlan resource.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* * 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; @@ -5171,22 +4719,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The full name of the BackupPlan resource.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* * 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 { @@ -5194,64 +4741,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The full name of the BackupPlan resource.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The full name of the BackupPlan resource.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The full name of the BackupPlan resource.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -5259,21 +4799,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -5282,87 +4820,79 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** - * - * + /** *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { + public Builder setUid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { + public Builder setUidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); return this; @@ -5370,58 +4900,39 @@ public Builder setUidBytes(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 timestamp when this BackupPlan resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The timestamp when this BackupPlan resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when this BackupPlan resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -5437,17 +4948,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this BackupPlan resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -5458,21 +4966,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when this BackupPlan resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -5484,15 +4988,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this BackupPlan resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -5506,64 +5006,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp when this BackupPlan resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when this BackupPlan resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The timestamp when this BackupPlan resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -5571,61 +5055,42 @@ 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 timestamp when this BackupPlan resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The timestamp when this BackupPlan resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this BackupPlan resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -5641,18 +5106,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this BackupPlan resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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(); onChanged(); @@ -5663,22 +5125,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when this BackupPlan resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -5690,16 +5148,12 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this BackupPlan resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -5713,67 +5167,51 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The timestamp when this BackupPlan resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when this BackupPlan resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this BackupPlan resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp 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> 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_; @@ -5781,20 +5219,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object description_ = ""; /** - * - * *
      * User specified descriptive string for this BackupPlan.
      * 
* * string description = 5; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -5803,21 +5239,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * User specified descriptive string for this BackupPlan.
      * 
* * string description = 5; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -5825,61 +5260,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * User specified descriptive string for this BackupPlan.
      * 
* * string description = 5; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * User specified descriptive string for this BackupPlan.
      * 
* * string description = 5; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * User specified descriptive string for this BackupPlan.
      * 
* * string description = 5; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -5887,8 +5315,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object cluster_ = ""; /** - * - * *
      * Required. Immutable. The source cluster from which Backups will be created via
      * this BackupPlan.
@@ -5897,16 +5323,14 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      * - projects/*/zones/*/clusters/*
      * 
* - * - * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The cluster. */ public java.lang.String getCluster() { java.lang.Object ref = cluster_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; @@ -5915,8 +5339,6 @@ public java.lang.String getCluster() { } } /** - * - * *
      * Required. Immutable. The source cluster from which Backups will be created via
      * this BackupPlan.
@@ -5925,17 +5347,16 @@ public java.lang.String getCluster() {
      * - projects/*/zones/*/clusters/*
      * 
* - * - * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for cluster. */ - public com.google.protobuf.ByteString getClusterBytes() { + public com.google.protobuf.ByteString + getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cluster_ = b; return b; } else { @@ -5943,8 +5364,6 @@ public com.google.protobuf.ByteString getClusterBytes() { } } /** - * - * *
      * Required. Immutable. The source cluster from which Backups will be created via
      * this BackupPlan.
@@ -5953,25 +5372,21 @@ public com.google.protobuf.ByteString getClusterBytes() {
      * - projects/*/zones/*/clusters/*
      * 
* - * - * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The cluster to set. * @return This builder for chaining. */ - public Builder setCluster(java.lang.String value) { + public Builder setCluster( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cluster_ = value; onChanged(); return this; } /** - * - * *
      * Required. Immutable. The source cluster from which Backups will be created via
      * this BackupPlan.
@@ -5980,21 +5395,16 @@ public Builder setCluster(java.lang.String value) {
      * - projects/*/zones/*/clusters/*
      * 
* - * - * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearCluster() { - + cluster_ = getDefaultInstance().getCluster(); onChanged(); return this; } /** - * - * *
      * Required. Immutable. The source cluster from which Backups will be created via
      * this BackupPlan.
@@ -6003,19 +5413,17 @@ public Builder clearCluster() {
      * - projects/*/zones/*/clusters/*
      * 
* - * - * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for cluster to set. * @return This builder for chaining. */ - public Builder setClusterBytes(com.google.protobuf.ByteString value) { + public Builder setClusterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cluster_ = value; onChanged(); return this; @@ -6023,55 +5431,41 @@ public Builder setClusterBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retentionPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy, - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder, - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder> - retentionPolicyBuilder_; + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy, com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder, com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder> retentionPolicyBuilder_; /** - * - * *
      * RetentionPolicy governs lifecycle of Backups created under this plan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; - * * @return Whether the retentionPolicy field is set. */ public boolean hasRetentionPolicy() { return retentionPolicyBuilder_ != null || retentionPolicy_ != null; } /** - * - * *
      * RetentionPolicy governs lifecycle of Backups created under this plan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; - * * @return The retentionPolicy. */ public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy getRetentionPolicy() { if (retentionPolicyBuilder_ == null) { - return retentionPolicy_ == null - ? com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.getDefaultInstance() - : retentionPolicy_; + return retentionPolicy_ == null ? com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.getDefaultInstance() : retentionPolicy_; } else { return retentionPolicyBuilder_.getMessage(); } } /** - * - * *
      * RetentionPolicy governs lifecycle of Backups created under this plan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; */ - public Builder setRetentionPolicy( - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy value) { + public Builder setRetentionPolicy(com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy value) { if (retentionPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6085,8 +5479,6 @@ public Builder setRetentionPolicy( return this; } /** - * - * *
      * RetentionPolicy governs lifecycle of Backups created under this plan.
      * 
@@ -6105,22 +5497,17 @@ public Builder setRetentionPolicy( return this; } /** - * - * *
      * RetentionPolicy governs lifecycle of Backups created under this plan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; */ - public Builder mergeRetentionPolicy( - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy value) { + public Builder mergeRetentionPolicy(com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy value) { if (retentionPolicyBuilder_ == null) { if (retentionPolicy_ != null) { retentionPolicy_ = - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.newBuilder(retentionPolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.newBuilder(retentionPolicy_).mergeFrom(value).buildPartial(); } else { retentionPolicy_ = value; } @@ -6132,8 +5519,6 @@ public Builder mergeRetentionPolicy( return this; } /** - * - * *
      * RetentionPolicy governs lifecycle of Backups created under this plan.
      * 
@@ -6152,42 +5537,33 @@ public Builder clearRetentionPolicy() { return this; } /** - * - * *
      * RetentionPolicy governs lifecycle of Backups created under this plan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; */ - public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder - getRetentionPolicyBuilder() { - + public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder getRetentionPolicyBuilder() { + onChanged(); return getRetentionPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * RetentionPolicy governs lifecycle of Backups created under this plan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; */ - public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder - getRetentionPolicyOrBuilder() { + public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder getRetentionPolicyOrBuilder() { if (retentionPolicyBuilder_ != null) { return retentionPolicyBuilder_.getMessageOrBuilder(); } else { - return retentionPolicy_ == null - ? com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.getDefaultInstance() - : retentionPolicy_; + return retentionPolicy_ == null ? + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.getDefaultInstance() : retentionPolicy_; } } /** - * - * *
      * RetentionPolicy governs lifecycle of Backups created under this plan.
      * 
@@ -6195,37 +5571,35 @@ public Builder clearRetentionPolicy() { * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy, - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder, - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder> + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy, com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder, com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder> getRetentionPolicyFieldBuilder() { if (retentionPolicyBuilder_ == null) { - retentionPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy, - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder, - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder>( - getRetentionPolicy(), getParentForChildren(), isClean()); + retentionPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy, com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder, com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder>( + getRetentionPolicy(), + getParentForChildren(), + isClean()); retentionPolicy_ = null; } return retentionPolicyBuilder_; } - 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() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; 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(); @@ -6237,30 +5611,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 8; */ + @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(); } /** - * - * *
      * A set of custom labels supplied by user.
      * 
@@ -6268,12 +5640,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * A set of custom labels supplied by user.
      * 
@@ -6281,17 +5652,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + 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; } /** - * - * *
      * A set of custom labels supplied by user.
      * 
@@ -6299,11 +5669,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 8; */ @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(); } @@ -6311,107 +5682,97 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 8; */ - 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() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 8; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + 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"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 8; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private com.google.cloud.gkebackup.v1.BackupPlan.Schedule backupSchedule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan.Schedule, - com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder, - com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder> - backupScheduleBuilder_; + com.google.cloud.gkebackup.v1.BackupPlan.Schedule, com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder, com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder> backupScheduleBuilder_; /** - * - * *
      * Defines a schedule for automatic Backup creation via this BackupPlan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9; - * * @return Whether the backupSchedule field is set. */ public boolean hasBackupSchedule() { return backupScheduleBuilder_ != null || backupSchedule_ != null; } /** - * - * *
      * Defines a schedule for automatic Backup creation via this BackupPlan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9; - * * @return The backupSchedule. */ public com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule() { if (backupScheduleBuilder_ == null) { - return backupSchedule_ == null - ? com.google.cloud.gkebackup.v1.BackupPlan.Schedule.getDefaultInstance() - : backupSchedule_; + return backupSchedule_ == null ? com.google.cloud.gkebackup.v1.BackupPlan.Schedule.getDefaultInstance() : backupSchedule_; } else { return backupScheduleBuilder_.getMessage(); } } /** - * - * *
      * Defines a schedule for automatic Backup creation via this BackupPlan.
      * 
@@ -6432,8 +5793,6 @@ public Builder setBackupSchedule(com.google.cloud.gkebackup.v1.BackupPlan.Schedu return this; } /** - * - * *
      * Defines a schedule for automatic Backup creation via this BackupPlan.
      * 
@@ -6452,8 +5811,6 @@ public Builder setBackupSchedule( return this; } /** - * - * *
      * Defines a schedule for automatic Backup creation via this BackupPlan.
      * 
@@ -6464,9 +5821,7 @@ public Builder mergeBackupSchedule(com.google.cloud.gkebackup.v1.BackupPlan.Sche if (backupScheduleBuilder_ == null) { if (backupSchedule_ != null) { backupSchedule_ = - com.google.cloud.gkebackup.v1.BackupPlan.Schedule.newBuilder(backupSchedule_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkebackup.v1.BackupPlan.Schedule.newBuilder(backupSchedule_).mergeFrom(value).buildPartial(); } else { backupSchedule_ = value; } @@ -6478,8 +5833,6 @@ public Builder mergeBackupSchedule(com.google.cloud.gkebackup.v1.BackupPlan.Sche return this; } /** - * - * *
      * Defines a schedule for automatic Backup creation via this BackupPlan.
      * 
@@ -6498,8 +5851,6 @@ public Builder clearBackupSchedule() { return this; } /** - * - * *
      * Defines a schedule for automatic Backup creation via this BackupPlan.
      * 
@@ -6507,13 +5858,11 @@ public Builder clearBackupSchedule() { * .google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9; */ public com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder getBackupScheduleBuilder() { - + onChanged(); return getBackupScheduleFieldBuilder().getBuilder(); } /** - * - * *
      * Defines a schedule for automatic Backup creation via this BackupPlan.
      * 
@@ -6524,14 +5873,11 @@ public com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder getBackupSched if (backupScheduleBuilder_ != null) { return backupScheduleBuilder_.getMessageOrBuilder(); } else { - return backupSchedule_ == null - ? com.google.cloud.gkebackup.v1.BackupPlan.Schedule.getDefaultInstance() - : backupSchedule_; + return backupSchedule_ == null ? + com.google.cloud.gkebackup.v1.BackupPlan.Schedule.getDefaultInstance() : backupSchedule_; } } /** - * - * *
      * Defines a schedule for automatic Backup creation via this BackupPlan.
      * 
@@ -6539,17 +5885,14 @@ public com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder getBackupSched * .google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan.Schedule, - com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder, - com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder> + com.google.cloud.gkebackup.v1.BackupPlan.Schedule, com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder, com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder> getBackupScheduleFieldBuilder() { if (backupScheduleBuilder_ == null) { - backupScheduleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan.Schedule, - com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder, - com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder>( - getBackupSchedule(), getParentForChildren(), isClean()); + backupScheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.BackupPlan.Schedule, com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder, com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder>( + getBackupSchedule(), + getParentForChildren(), + isClean()); backupSchedule_ = null; } return backupScheduleBuilder_; @@ -6557,8 +5900,6 @@ public com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder getBackupSched private java.lang.Object etag_ = ""; /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a backup plan from overwriting each other.
@@ -6571,13 +5912,13 @@ public com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder getBackupSched
      * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -6586,8 +5927,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a backup plan from overwriting each other.
@@ -6600,14 +5939,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -6615,8 +5955,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a backup plan from overwriting each other.
@@ -6629,22 +5967,20 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a backup plan from overwriting each other.
@@ -6657,18 +5993,15 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a backup plan from overwriting each other.
@@ -6681,25 +6014,23 @@ public Builder clearEtag() {
      * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - private boolean deactivated_; + private boolean deactivated_ ; /** - * - * *
      * This flag indicates whether this BackupPlan has been deactivated.
      * Setting this field to True locks the BackupPlan such that no further
@@ -6710,7 +6041,6 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
      * 
* * bool deactivated = 11; - * * @return The deactivated. */ @java.lang.Override @@ -6718,8 +6048,6 @@ public boolean getDeactivated() { return deactivated_; } /** - * - * *
      * This flag indicates whether this BackupPlan has been deactivated.
      * Setting this field to True locks the BackupPlan such that no further
@@ -6730,19 +6058,16 @@ public boolean getDeactivated() {
      * 
* * bool deactivated = 11; - * * @param value The deactivated to set. * @return This builder for chaining. */ public Builder setDeactivated(boolean value) { - + deactivated_ = value; onChanged(); return this; } /** - * - * *
      * This flag indicates whether this BackupPlan has been deactivated.
      * Setting this field to True locks the BackupPlan such that no further
@@ -6753,11 +6078,10 @@ public Builder setDeactivated(boolean value) {
      * 
* * bool deactivated = 11; - * * @return This builder for chaining. */ public Builder clearDeactivated() { - + deactivated_ = false; onChanged(); return this; @@ -6765,47 +6089,34 @@ public Builder clearDeactivated() { private com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig backupConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig, - com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder, - com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder> - backupConfigBuilder_; + com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig, com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder, com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder> backupConfigBuilder_; /** - * - * *
      * Defines the configuration of Backups created via this BackupPlan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12; - * * @return Whether the backupConfig field is set. */ public boolean hasBackupConfig() { return backupConfigBuilder_ != null || backupConfig_ != null; } /** - * - * *
      * Defines the configuration of Backups created via this BackupPlan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12; - * * @return The backupConfig. */ public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig getBackupConfig() { if (backupConfigBuilder_ == null) { - return backupConfig_ == null - ? com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.getDefaultInstance() - : backupConfig_; + return backupConfig_ == null ? com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.getDefaultInstance() : backupConfig_; } else { return backupConfigBuilder_.getMessage(); } } /** - * - * *
      * Defines the configuration of Backups created via this BackupPlan.
      * 
@@ -6826,8 +6137,6 @@ public Builder setBackupConfig(com.google.cloud.gkebackup.v1.BackupPlan.BackupCo return this; } /** - * - * *
      * Defines the configuration of Backups created via this BackupPlan.
      * 
@@ -6846,8 +6155,6 @@ public Builder setBackupConfig( return this; } /** - * - * *
      * Defines the configuration of Backups created via this BackupPlan.
      * 
@@ -6858,9 +6165,7 @@ public Builder mergeBackupConfig(com.google.cloud.gkebackup.v1.BackupPlan.Backup if (backupConfigBuilder_ == null) { if (backupConfig_ != null) { backupConfig_ = - com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.newBuilder(backupConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.newBuilder(backupConfig_).mergeFrom(value).buildPartial(); } else { backupConfig_ = value; } @@ -6872,8 +6177,6 @@ public Builder mergeBackupConfig(com.google.cloud.gkebackup.v1.BackupPlan.Backup return this; } /** - * - * *
      * Defines the configuration of Backups created via this BackupPlan.
      * 
@@ -6892,8 +6195,6 @@ public Builder clearBackupConfig() { return this; } /** - * - * *
      * Defines the configuration of Backups created via this BackupPlan.
      * 
@@ -6901,32 +6202,26 @@ public Builder clearBackupConfig() { * .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12; */ public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder getBackupConfigBuilder() { - + onChanged(); return getBackupConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Defines the configuration of Backups created via this BackupPlan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12; */ - public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder - getBackupConfigOrBuilder() { + public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder getBackupConfigOrBuilder() { if (backupConfigBuilder_ != null) { return backupConfigBuilder_.getMessageOrBuilder(); } else { - return backupConfig_ == null - ? com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.getDefaultInstance() - : backupConfig_; + return backupConfig_ == null ? + com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.getDefaultInstance() : backupConfig_; } } /** - * - * *
      * Defines the configuration of Backups created via this BackupPlan.
      * 
@@ -6934,33 +6229,27 @@ public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder getBackupCo * .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig, - com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder, - com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder> + com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig, com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder, com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder> getBackupConfigFieldBuilder() { if (backupConfigBuilder_ == null) { - backupConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig, - com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder, - com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder>( - getBackupConfig(), getParentForChildren(), isClean()); + backupConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig, com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder, com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder>( + getBackupConfig(), + getParentForChildren(), + isClean()); backupConfig_ = null; } return backupConfigBuilder_; } - private int protectedPodCount_; + private int protectedPodCount_ ; /** - * - * *
      * Output only. The number of Kubernetes Pods backed up in the
      * last successful Backup created via this BackupPlan.
      * 
* * int32 protected_pod_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The protectedPodCount. */ @java.lang.Override @@ -6968,45 +6257,39 @@ public int getProtectedPodCount() { return protectedPodCount_; } /** - * - * *
      * Output only. The number of Kubernetes Pods backed up in the
      * last successful Backup created via this BackupPlan.
      * 
* * int32 protected_pod_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The protectedPodCount to set. * @return This builder for chaining. */ public Builder setProtectedPodCount(int value) { - + protectedPodCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The number of Kubernetes Pods backed up in the
      * last successful Backup created via this BackupPlan.
      * 
* * int32 protected_pod_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearProtectedPodCount() { - + protectedPodCount_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -7016,12 +6299,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.BackupPlan) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.BackupPlan) private static final com.google.cloud.gkebackup.v1.BackupPlan DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.BackupPlan(); } @@ -7030,16 +6313,16 @@ public static com.google.cloud.gkebackup.v1.BackupPlan getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BackupPlan parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BackupPlan(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackupPlan parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BackupPlan(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7054,4 +6337,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.BackupPlan getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanName.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanName.java similarity index 100% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanName.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanName.java diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanOrBuilder.java similarity index 80% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanOrBuilder.java index 6dc8d46..4573421 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanOrBuilder.java @@ -1,189 +1,134 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/backup_plan.proto package com.google.cloud.gkebackup.v1; -public interface BackupPlanOrBuilder - extends +public interface BackupPlanOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.BackupPlan) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The full name of the BackupPlan resource.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The full name of the BackupPlan resource.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* * 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. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. The timestamp when this BackupPlan resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The timestamp when this BackupPlan resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The timestamp when this BackupPlan resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The timestamp when this BackupPlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The timestamp when this BackupPlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The timestamp when this BackupPlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * User specified descriptive string for this BackupPlan.
    * 
* * string description = 5; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * User specified descriptive string for this BackupPlan.
    * 
* * string description = 5; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Required. Immutable. The source cluster from which Backups will be created via
    * this BackupPlan.
@@ -192,16 +137,11 @@ public interface BackupPlanOrBuilder
    * - projects/*/zones/*/clusters/*
    * 
* - * - * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The cluster. */ java.lang.String getCluster(); /** - * - * *
    * Required. Immutable. The source cluster from which Backups will be created via
    * this BackupPlan.
@@ -210,41 +150,31 @@ public interface BackupPlanOrBuilder
    * - projects/*/zones/*/clusters/*
    * 
* - * - * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for cluster. */ - com.google.protobuf.ByteString getClusterBytes(); + com.google.protobuf.ByteString + getClusterBytes(); /** - * - * *
    * RetentionPolicy governs lifecycle of Backups created under this plan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; - * * @return Whether the retentionPolicy field is set. */ boolean hasRetentionPolicy(); /** - * - * *
    * RetentionPolicy governs lifecycle of Backups created under this plan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; - * * @return The retentionPolicy. */ com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy getRetentionPolicy(); /** - * - * *
    * RetentionPolicy governs lifecycle of Backups created under this plan.
    * 
@@ -254,8 +184,6 @@ public interface BackupPlanOrBuilder com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder getRetentionPolicyOrBuilder(); /** - * - * *
    * A set of custom labels supplied by user.
    * 
@@ -264,31 +192,30 @@ public interface BackupPlanOrBuilder */ int getLabelsCount(); /** - * - * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 8; */ - 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(); /** - * - * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 8; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * A set of custom labels supplied by user.
    * 
@@ -297,48 +224,40 @@ public interface BackupPlanOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 8; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Defines a schedule for automatic Backup creation via this BackupPlan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9; - * * @return Whether the backupSchedule field is set. */ boolean hasBackupSchedule(); /** - * - * *
    * Defines a schedule for automatic Backup creation via this BackupPlan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9; - * * @return The backupSchedule. */ com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule(); /** - * - * *
    * Defines a schedule for automatic Backup creation via this BackupPlan.
    * 
@@ -348,8 +267,6 @@ java.lang.String getLabelsOrDefault( com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder getBackupScheduleOrBuilder(); /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a backup plan from overwriting each other.
@@ -362,13 +279,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a backup plan from overwriting each other.
@@ -381,14 +295,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * This flag indicates whether this BackupPlan has been deactivated.
    * Setting this field to True locks the BackupPlan such that no further
@@ -399,38 +311,29 @@ java.lang.String getLabelsOrDefault(
    * 
* * bool deactivated = 11; - * * @return The deactivated. */ boolean getDeactivated(); /** - * - * *
    * Defines the configuration of Backups created via this BackupPlan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12; - * * @return Whether the backupConfig field is set. */ boolean hasBackupConfig(); /** - * - * *
    * Defines the configuration of Backups created via this BackupPlan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12; - * * @return The backupConfig. */ com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig getBackupConfig(); /** - * - * *
    * Defines the configuration of Backups created via this BackupPlan.
    * 
@@ -440,15 +343,12 @@ java.lang.String getLabelsOrDefault( com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder getBackupConfigOrBuilder(); /** - * - * *
    * Output only. The number of Kubernetes Pods backed up in the
    * last successful Backup created via this BackupPlan.
    * 
* * int32 protected_pod_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The protectedPodCount. */ int getProtectedPodCount(); diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanProto.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanProto.java new file mode 100644 index 0000000..0994ff3 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanProto.java @@ -0,0 +1,146 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/backup_plan.proto + +package com.google.cloud.gkebackup.v1; + +public final class BackupPlanProto { + private BackupPlanProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_BackupPlan_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/gkebackup/v1/backup_plan." + + "proto\022\031google.cloud.gkebackup.v1\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\032&google/cloud/gkebackup/v1/" + + "common.proto\032\037google/protobuf/timestamp." + + "proto\"\327\t\n\nBackupPlan\022\021\n\004name\030\001 \001(\tB\003\340A\003\022" + + "\020\n\003uid\030\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022\023\n\013description\030\005 \001(\t\022<\n\007cluster\030\006 " + + "\001(\tB+\340A\005\340A\002\372A\"\n container.googleapis.com" + + "/Cluster\022O\n\020retention_policy\030\007 \001(\01325.goo" + + "gle.cloud.gkebackup.v1.BackupPlan.Retent" + + "ionPolicy\022A\n\006labels\030\010 \003(\01321.google.cloud" + + ".gkebackup.v1.BackupPlan.LabelsEntry\022G\n\017" + + "backup_schedule\030\t \001(\0132..google.cloud.gke" + + "backup.v1.BackupPlan.Schedule\022\021\n\004etag\030\n " + + "\001(\tB\003\340A\003\022\023\n\013deactivated\030\013 \001(\010\022I\n\rbackup_" + + "config\030\014 \001(\01322.google.cloud.gkebackup.v1" + + ".BackupPlan.BackupConfig\022 \n\023protected_po" + + "d_count\030\r \001(\005B\003\340A\003\032^\n\017RetentionPolicy\022\037\n" + + "\027backup_delete_lock_days\030\001 \001(\005\022\032\n\022backup" + + "_retain_days\030\002 \001(\005\022\016\n\006locked\030\003 \001(\010\0321\n\010Sc" + + "hedule\022\025\n\rcron_schedule\030\001 \001(\t\022\016\n\006paused\030" + + "\002 \001(\010\032\303\002\n\014BackupConfig\022\030\n\016all_namespaces" + + "\030\001 \001(\010H\000\022D\n\023selected_namespaces\030\002 \001(\0132%." + + "google.cloud.gkebackup.v1.NamespacesH\000\022K" + + "\n\025selected_applications\030\003 \001(\0132*.google.c" + + "loud.gkebackup.v1.NamespacedNamesH\000\022\033\n\023i" + + "nclude_volume_data\030\004 \001(\010\022\027\n\017include_secr" + + "ets\030\005 \001(\010\022@\n\016encryption_key\030\006 \001(\0132(.goog" + + "le.cloud.gkebackup.v1.EncryptionKeyB\016\n\014b" + + "ackup_scope\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001:k\352Ah\n#gkebackup.googl" + + "eapis.com/BackupPlan\022Aprojects/{project}" + + "/locations/{location}/backupPlans/{backu" + + "p_plan}B\315\001\n\035com.google.cloud.gkebackup.v" + + "1B\017BackupPlanProtoP\001ZBgoogle.golang.org/" + + "genproto/googleapis/cloud/gkebackup/v1;g" + + "kebackup\252\002\031Google.Cloud.GkeBackup.V1\312\002\031G" + + "oogle\\Cloud\\GkeBackup\\V1\352\002\034Google::Cloud" + + "::GkeBackup::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkebackup_v1_BackupPlan_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor, + new java.lang.String[] { "Name", "Uid", "CreateTime", "UpdateTime", "Description", "Cluster", "RetentionPolicy", "Labels", "BackupSchedule", "Etag", "Deactivated", "BackupConfig", "ProtectedPodCount", }); + internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor = + internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor, + new java.lang.String[] { "BackupDeleteLockDays", "BackupRetainDays", "Locked", }); + internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor = + internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor, + new java.lang.String[] { "CronSchedule", "Paused", }); + internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor = + internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor, + new java.lang.String[] { "AllNamespaces", "SelectedNamespaces", "SelectedApplications", "IncludeVolumeData", "IncludeSecrets", "EncryptionKey", "BackupScope", }); + internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_descriptor = + internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupProto.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupProto.java new file mode 100644 index 0000000..9759ebf --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupProto.java @@ -0,0 +1,146 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/backup.proto + +package com.google.cloud.gkebackup.v1; + +public final class BackupProto { + private BackupProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_Backup_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_Backup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n&google/cloud/gkebackup/v1/backup.proto" + + "\022\031google.cloud.gkebackup.v1\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032&google/cloud/gkebackup/v1/commo" + + "n.proto\032\037google/protobuf/timestamp.proto" + + "\"\273\r\n\006Backup\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 " + + "\001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\004 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006" + + "manual\030\005 \001(\010B\003\340A\003\022=\n\006labels\030\006 \003(\0132-.goog" + + "le.cloud.gkebackup.v1.Backup.LabelsEntry" + + "\022\030\n\020delete_lock_days\030\007 \001(\005\022@\n\027delete_loc" + + "k_expire_time\030\010 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\022\023\n\013retain_days\030\t \001(\005\022;\n\022ret" + + "ain_expire_time\030\n \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022E\n\016encryption_key\030\013 \001(\0132(" + + ".google.cloud.gkebackup.v1.EncryptionKey" + + "B\003\340A\003\022\035\n\016all_namespaces\030\014 \001(\010B\003\340A\003H\000\022I\n\023" + + "selected_namespaces\030\r \001(\0132%.google.cloud" + + ".gkebackup.v1.NamespacesB\003\340A\003H\000\022P\n\025selec" + + "ted_applications\030\016 \001(\0132*.google.cloud.gk" + + "ebackup.v1.NamespacedNamesB\003\340A\003H\000\022!\n\024con" + + "tains_volume_data\030\017 \001(\010B\003\340A\003\022\035\n\020contains" + + "_secrets\030\020 \001(\010B\003\340A\003\022P\n\020cluster_metadata\030" + + "\021 \001(\01321.google.cloud.gkebackup.v1.Backup" + + ".ClusterMetadataB\003\340A\003\022;\n\005state\030\022 \001(\0162\'.g" + + "oogle.cloud.gkebackup.v1.Backup.StateB\003\340" + + "A\003\022\031\n\014state_reason\030\023 \001(\tB\003\340A\003\0226\n\rcomplet" + + "e_time\030\024 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022\033\n\016resource_count\030\025 \001(\005B\003\340A\003\022\031\n\014vo" + + "lume_count\030\026 \001(\005B\003\340A\003\022\027\n\nsize_bytes\030\027 \001(" + + "\003B\003\340A\003\022\021\n\004etag\030\030 \001(\tB\003\340A\003\022\023\n\013description" + + "\030\031 \001(\t\022\026\n\tpod_count\030\032 \001(\005B\003\340A\003\022%\n\030config" + + "_backup_size_bytes\030\033 \001(\003B\003\340A\003\032\235\002\n\017Cluste" + + "rMetadata\022\017\n\007cluster\030\001 \001(\t\022\023\n\013k8s_versio" + + "n\030\002 \001(\t\022e\n\023backup_crd_versions\030\003 \003(\0132H.g" + + "oogle.cloud.gkebackup.v1.Backup.ClusterM" + + "etadata.BackupCrdVersionsEntry\022\025\n\013gke_ve" + + "rsion\030\004 \001(\tH\000\022\030\n\016anthos_version\030\005 \001(\tH\000\032" + + "8\n\026BackupCrdVersionsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001B\022\n\020platform_version\032-\n" + + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"f\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010" + + "CREATING\020\001\022\017\n\013IN_PROGRESS\020\002\022\r\n\tSUCCEEDED" + + "\020\003\022\n\n\006FAILED\020\004\022\014\n\010DELETING\020\005:x\352Au\n\037gkeba" + + "ckup.googleapis.com/Backup\022Rprojects/{pr" + + "oject}/locations/{location}/backupPlans/" + + "{backup_plan}/backups/{backup}B\016\n\014backup" + + "_scopeB\311\001\n\035com.google.cloud.gkebackup.v1" + + "B\013BackupProtoP\001ZBgoogle.golang.org/genpr" + + "oto/googleapis/cloud/gkebackup/v1;gkebac" + + "kup\252\002\031Google.Cloud.GkeBackup.V1\312\002\031Google" + + "\\Cloud\\GkeBackup\\V1\352\002\034Google::Cloud::Gke" + + "Backup::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gkebackup_v1_Backup_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkebackup_v1_Backup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_Backup_descriptor, + new java.lang.String[] { "Name", "Uid", "CreateTime", "UpdateTime", "Manual", "Labels", "DeleteLockDays", "DeleteLockExpireTime", "RetainDays", "RetainExpireTime", "EncryptionKey", "AllNamespaces", "SelectedNamespaces", "SelectedApplications", "ContainsVolumeData", "ContainsSecrets", "ClusterMetadata", "State", "StateReason", "CompleteTime", "ResourceCount", "VolumeCount", "SizeBytes", "Etag", "Description", "PodCount", "ConfigBackupSizeBytes", "BackupScope", }); + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor = + internal_static_google_cloud_gkebackup_v1_Backup_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor, + new java.lang.String[] { "Cluster", "K8SVersion", "BackupCrdVersions", "GkeVersion", "AnthosVersion", "PlatformVersion", }); + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_descriptor = + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_descriptor = + internal_static_google_cloud_gkebackup_v1_Backup_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CommonProto.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CommonProto.java new file mode 100644 index 0000000..ee33afa --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CommonProto.java @@ -0,0 +1,100 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/common.proto + +package com.google.cloud.gkebackup.v1; + +public final class CommonProto { + private CommonProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_Namespaces_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_NamespacedName_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_NamespacedNames_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_EncryptionKey_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n&google/cloud/gkebackup/v1/common.proto" + + "\022\031google.cloud.gkebackup.v1\032\031google/api/" + + "resource.proto\" \n\nNamespaces\022\022\n\nnamespac" + + "es\030\001 \003(\t\"1\n\016NamespacedName\022\021\n\tnamespace\030" + + "\001 \001(\t\022\014\n\004name\030\002 \001(\t\"V\n\017NamespacedNames\022C" + + "\n\020namespaced_names\030\001 \003(\0132).google.cloud." + + "gkebackup.v1.NamespacedName\"W\n\rEncryptio" + + "nKey\022F\n\026gcp_kms_encryption_key\030\001 \001(\tB&\372A" + + "#\n!cloudkms.googleapis.com/CryptoKeyB\311\001\n" + + "\035com.google.cloud.gkebackup.v1B\013CommonPr" + + "otoP\001ZBgoogle.golang.org/genproto/google" + + "apis/cloud/gkebackup/v1;gkebackup\252\002\031Goog" + + "le.Cloud.GkeBackup.V1\312\002\031Google\\Cloud\\Gke" + + "Backup\\V1\352\002\034Google::Cloud::GkeBackup::V1" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkebackup_v1_Namespaces_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor, + new java.lang.String[] { "Namespaces", }); + internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkebackup_v1_NamespacedName_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor, + new java.lang.String[] { "Namespace", "Name", }); + internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkebackup_v1_NamespacedNames_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor, + new java.lang.String[] { "NamespacedNames", }); + internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkebackup_v1_EncryptionKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor, + new java.lang.String[] { "GcpKmsEncryptionKey", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequest.java similarity index 66% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequest.java index 0ba0533..c28628e 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for CreateBackupPlan.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.CreateBackupPlanRequest} */ -public final class CreateBackupPlanRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateBackupPlanRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.CreateBackupPlanRequest) CreateBackupPlanRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateBackupPlanRequest.newBuilder() to construct. private CreateBackupPlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateBackupPlanRequest() { parent_ = ""; backupPlanId_ = ""; @@ -44,15 +26,16 @@ private CreateBackupPlanRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateBackupPlanRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateBackupPlanRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateBackupPlanRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.gkebackup.v1.BackupPlan.Builder subBuilder = null; + if (backupPlan_ != null) { + subBuilder = backupPlan_.toBuilder(); } - case 18: - { - com.google.cloud.gkebackup.v1.BackupPlan.Builder subBuilder = null; - if (backupPlan_ != null) { - subBuilder = backupPlan_.toBuilder(); - } - backupPlan_ = - input.readMessage( - com.google.cloud.gkebackup.v1.BackupPlan.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(backupPlan_); - backupPlan_ = subBuilder.buildPartial(); - } - - break; + backupPlan_ = input.readMessage(com.google.cloud.gkebackup.v1.BackupPlan.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(backupPlan_); + backupPlan_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - backupPlanId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + backupPlanId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,42 +93,35 @@ private CreateBackupPlanRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.class, - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.class, com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The location within which to create the BackupPlan.
    * Format: projects/*/locations/*
    * 
* - * - * string 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 @@ -159,32 +130,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The location within which to create the BackupPlan.
    * Format: projects/*/locations/*
    * 
* - * - * string 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 { @@ -195,16 +164,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int BACKUP_PLAN_FIELD_NUMBER = 2; private com.google.cloud.gkebackup.v1.BackupPlan backupPlan_; /** - * - * *
    * Required. The BackupPlan resource object to create.
    * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backupPlan field is set. */ @java.lang.Override @@ -212,34 +176,23 @@ public boolean hasBackupPlan() { return backupPlan_ != null; } /** - * - * *
    * Required. The BackupPlan resource object to create.
    * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The backupPlan. */ @java.lang.Override public com.google.cloud.gkebackup.v1.BackupPlan getBackupPlan() { - return backupPlan_ == null - ? com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() - : backupPlan_; + return backupPlan_ == null ? com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() : backupPlan_; } /** - * - * *
    * Required. The BackupPlan resource object to create.
    * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder() { @@ -249,8 +202,6 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder( public static final int BACKUP_PLAN_ID_FIELD_NUMBER = 3; private volatile java.lang.Object backupPlanId_; /** - * - * *
    * Required. The client-provided short name for the BackupPlan resource.
    * This name must:
@@ -262,7 +213,6 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder(
    * 
* * string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The backupPlanId. */ @java.lang.Override @@ -271,15 +221,14 @@ public java.lang.String getBackupPlanId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupPlanId_ = s; return s; } } /** - * - * *
    * Required. The client-provided short name for the BackupPlan resource.
    * This name must:
@@ -291,15 +240,16 @@ public java.lang.String getBackupPlanId() {
    * 
* * string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for backupPlanId. */ @java.lang.Override - public com.google.protobuf.ByteString getBackupPlanIdBytes() { + public com.google.protobuf.ByteString + getBackupPlanIdBytes() { java.lang.Object ref = backupPlanId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupPlanId_ = b; return b; } else { @@ -308,7 +258,6 @@ public com.google.protobuf.ByteString getBackupPlanIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -320,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_); } @@ -343,7 +293,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (backupPlan_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBackupPlan()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBackupPlan()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupPlanId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, backupPlanId_); @@ -356,20 +307,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.CreateBackupPlanRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest other = - (com.google.cloud.gkebackup.v1.CreateBackupPlanRequest) obj; + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest other = (com.google.cloud.gkebackup.v1.CreateBackupPlanRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasBackupPlan() != other.hasBackupPlan()) return false; if (hasBackupPlan()) { - if (!getBackupPlan().equals(other.getBackupPlan())) return false; + if (!getBackupPlan() + .equals(other.getBackupPlan())) return false; } - if (!getBackupPlanId().equals(other.getBackupPlanId())) return false; + if (!getBackupPlanId() + .equals(other.getBackupPlanId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -395,127 +348,117 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkebackup.v1.CreateBackupPlanRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 CreateBackupPlan.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.CreateBackupPlanRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.CreateBackupPlanRequest) com.google.cloud.gkebackup.v1.CreateBackupPlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.class, - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.class, com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.newBuilder() @@ -523,15 +466,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -549,9 +493,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor; } @java.lang.Override @@ -570,8 +514,7 @@ public com.google.cloud.gkebackup.v1.CreateBackupPlanRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.CreateBackupPlanRequest buildPartial() { - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest result = - new com.google.cloud.gkebackup.v1.CreateBackupPlanRequest(this); + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest result = new com.google.cloud.gkebackup.v1.CreateBackupPlanRequest(this); result.parent_ = parent_; if (backupPlanBuilder_ == null) { result.backupPlan_ = backupPlan_; @@ -587,39 +530,38 @@ public com.google.cloud.gkebackup.v1.CreateBackupPlanRequest 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.cloud.gkebackup.v1.CreateBackupPlanRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.CreateBackupPlanRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.CreateBackupPlanRequest)other); } else { super.mergeFrom(other); return this; @@ -627,8 +569,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.CreateBackupPlanRequest other) { - if (other == com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -659,8 +600,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.CreateBackupPlanRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.CreateBackupPlanRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,23 +612,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The location within which to create the BackupPlan.
      * Format: projects/*/locations/*
      * 
* - * - * string 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; @@ -697,24 +633,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The location within which to create the BackupPlan.
      * Format: projects/*/locations/*
      * 
* - * - * string 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 { @@ -722,70 +655,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The location within which to create the BackupPlan.
      * Format: projects/*/locations/*
      * 
* - * - * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The location within which to create the BackupPlan.
      * Format: projects/*/locations/*
      * 
* - * - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The location within which to create the BackupPlan.
      * Format: projects/*/locations/*
      * 
* - * - * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -793,58 +713,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkebackup.v1.BackupPlan backupPlan_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan, - com.google.cloud.gkebackup.v1.BackupPlan.Builder, - com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> - backupPlanBuilder_; + com.google.cloud.gkebackup.v1.BackupPlan, com.google.cloud.gkebackup.v1.BackupPlan.Builder, com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> backupPlanBuilder_; /** - * - * *
      * Required. The BackupPlan resource object to create.
      * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backupPlan field is set. */ public boolean hasBackupPlan() { return backupPlanBuilder_ != null || backupPlan_ != null; } /** - * - * *
      * Required. The BackupPlan resource object to create.
      * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The backupPlan. */ public com.google.cloud.gkebackup.v1.BackupPlan getBackupPlan() { if (backupPlanBuilder_ == null) { - return backupPlan_ == null - ? com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() - : backupPlan_; + return backupPlan_ == null ? com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() : backupPlan_; } else { return backupPlanBuilder_.getMessage(); } } /** - * - * *
      * Required. The BackupPlan resource object to create.
      * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan value) { if (backupPlanBuilder_ == null) { @@ -860,17 +761,14 @@ public Builder setBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan value) { return this; } /** - * - * *
      * Required. The BackupPlan resource object to create.
      * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan.Builder builderForValue) { + public Builder setBackupPlan( + com.google.cloud.gkebackup.v1.BackupPlan.Builder builderForValue) { if (backupPlanBuilder_ == null) { backupPlan_ = builderForValue.build(); onChanged(); @@ -881,23 +779,17 @@ public Builder setBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan.Builder bu return this; } /** - * - * *
      * Required. The BackupPlan resource object to create.
      * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan value) { if (backupPlanBuilder_ == null) { if (backupPlan_ != null) { backupPlan_ = - com.google.cloud.gkebackup.v1.BackupPlan.newBuilder(backupPlan_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkebackup.v1.BackupPlan.newBuilder(backupPlan_).mergeFrom(value).buildPartial(); } else { backupPlan_ = value; } @@ -909,15 +801,11 @@ public Builder mergeBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan value) { return this; } /** - * - * *
      * Required. The BackupPlan resource object to create.
      * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBackupPlan() { if (backupPlanBuilder_ == null) { @@ -931,64 +819,48 @@ public Builder clearBackupPlan() { return this; } /** - * - * *
      * Required. The BackupPlan resource object to create.
      * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkebackup.v1.BackupPlan.Builder getBackupPlanBuilder() { - + onChanged(); return getBackupPlanFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The BackupPlan resource object to create.
      * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder() { if (backupPlanBuilder_ != null) { return backupPlanBuilder_.getMessageOrBuilder(); } else { - return backupPlan_ == null - ? com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() - : backupPlan_; + return backupPlan_ == null ? + com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() : backupPlan_; } } /** - * - * *
      * Required. The BackupPlan resource object to create.
      * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan, - com.google.cloud.gkebackup.v1.BackupPlan.Builder, - com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> + com.google.cloud.gkebackup.v1.BackupPlan, com.google.cloud.gkebackup.v1.BackupPlan.Builder, com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> getBackupPlanFieldBuilder() { if (backupPlanBuilder_ == null) { - backupPlanBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan, - com.google.cloud.gkebackup.v1.BackupPlan.Builder, - com.google.cloud.gkebackup.v1.BackupPlanOrBuilder>( - getBackupPlan(), getParentForChildren(), isClean()); + backupPlanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.BackupPlan, com.google.cloud.gkebackup.v1.BackupPlan.Builder, com.google.cloud.gkebackup.v1.BackupPlanOrBuilder>( + getBackupPlan(), + getParentForChildren(), + isClean()); backupPlan_ = null; } return backupPlanBuilder_; @@ -996,8 +868,6 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder( private java.lang.Object backupPlanId_ = ""; /** - * - * *
      * Required. The client-provided short name for the BackupPlan resource.
      * This name must:
@@ -1009,13 +879,13 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder(
      * 
* * string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The backupPlanId. */ public java.lang.String getBackupPlanId() { java.lang.Object ref = backupPlanId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupPlanId_ = s; return s; @@ -1024,8 +894,6 @@ public java.lang.String getBackupPlanId() { } } /** - * - * *
      * Required. The client-provided short name for the BackupPlan resource.
      * This name must:
@@ -1037,14 +905,15 @@ public java.lang.String getBackupPlanId() {
      * 
* * string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for backupPlanId. */ - public com.google.protobuf.ByteString getBackupPlanIdBytes() { + public com.google.protobuf.ByteString + getBackupPlanIdBytes() { java.lang.Object ref = backupPlanId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupPlanId_ = b; return b; } else { @@ -1052,8 +921,6 @@ public com.google.protobuf.ByteString getBackupPlanIdBytes() { } } /** - * - * *
      * Required. The client-provided short name for the BackupPlan resource.
      * This name must:
@@ -1065,22 +932,20 @@ public com.google.protobuf.ByteString getBackupPlanIdBytes() {
      * 
* * string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The backupPlanId to set. * @return This builder for chaining. */ - public Builder setBackupPlanId(java.lang.String value) { + public Builder setBackupPlanId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + backupPlanId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The client-provided short name for the BackupPlan resource.
      * This name must:
@@ -1092,18 +957,15 @@ public Builder setBackupPlanId(java.lang.String value) {
      * 
* * string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearBackupPlanId() { - + backupPlanId_ = getDefaultInstance().getBackupPlanId(); onChanged(); return this; } /** - * - * *
      * Required. The client-provided short name for the BackupPlan resource.
      * This name must:
@@ -1115,23 +977,23 @@ public Builder clearBackupPlanId() {
      * 
* * string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for backupPlanId to set. * @return This builder for chaining. */ - public Builder setBackupPlanIdBytes(com.google.protobuf.ByteString value) { + public Builder setBackupPlanIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backupPlanId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1141,12 +1003,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.CreateBackupPlanRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.CreateBackupPlanRequest) private static final com.google.cloud.gkebackup.v1.CreateBackupPlanRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.CreateBackupPlanRequest(); } @@ -1155,16 +1017,16 @@ public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBackupPlanRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateBackupPlanRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBackupPlanRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateBackupPlanRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1179,4 +1041,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.CreateBackupPlanRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequestOrBuilder.java index b932c93..6e80139 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequestOrBuilder.java @@ -1,103 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface CreateBackupPlanRequestOrBuilder - extends +public interface CreateBackupPlanRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.CreateBackupPlanRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The location within which to create the BackupPlan.
    * Format: projects/*/locations/*
    * 
* - * - * string 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 location within which to create the BackupPlan.
    * Format: projects/*/locations/*
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The BackupPlan resource object to create.
    * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backupPlan field is set. */ boolean hasBackupPlan(); /** - * - * *
    * Required. The BackupPlan resource object to create.
    * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The backupPlan. */ com.google.cloud.gkebackup.v1.BackupPlan getBackupPlan(); /** - * - * *
    * Required. The BackupPlan resource object to create.
    * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder(); /** - * - * *
    * Required. The client-provided short name for the BackupPlan resource.
    * This name must:
@@ -109,13 +68,10 @@ public interface CreateBackupPlanRequestOrBuilder
    * 
* * string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The backupPlanId. */ java.lang.String getBackupPlanId(); /** - * - * *
    * Required. The client-provided short name for the BackupPlan resource.
    * This name must:
@@ -127,8 +83,8 @@ public interface CreateBackupPlanRequestOrBuilder
    * 
* * string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for backupPlanId. */ - com.google.protobuf.ByteString getBackupPlanIdBytes(); + com.google.protobuf.ByteString + getBackupPlanIdBytes(); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequest.java similarity index 70% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequest.java index 06fbf58..01cc0ee 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for CreateBackup.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.CreateBackupRequest} */ -public final class CreateBackupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateBackupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.CreateBackupRequest) CreateBackupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateBackupRequest.newBuilder() to construct. private CreateBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateBackupRequest() { parent_ = ""; backupId_ = ""; @@ -44,15 +26,16 @@ private CreateBackupRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateBackupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateBackupRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateBackupRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.gkebackup.v1.Backup.Builder subBuilder = null; + if (backup_ != null) { + subBuilder = backup_.toBuilder(); } - case 18: - { - com.google.cloud.gkebackup.v1.Backup.Builder subBuilder = null; - if (backup_ != null) { - subBuilder = backup_.toBuilder(); - } - backup_ = - input.readMessage( - com.google.cloud.gkebackup.v1.Backup.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(backup_); - backup_ = subBuilder.buildPartial(); - } - - break; + backup_ = input.readMessage(com.google.cloud.gkebackup.v1.Backup.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(backup_); + backup_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - backupId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + backupId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,42 +93,35 @@ private CreateBackupRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.CreateBackupRequest.class, - com.google.cloud.gkebackup.v1.CreateBackupRequest.Builder.class); + com.google.cloud.gkebackup.v1.CreateBackupRequest.class, com.google.cloud.gkebackup.v1.CreateBackupRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The BackupPlan within which to create the Backup.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * - * string 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 @@ -159,32 +130,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The BackupPlan within which to create the Backup.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * - * string 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 { @@ -195,14 +164,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int BACKUP_FIELD_NUMBER = 2; private com.google.cloud.gkebackup.v1.Backup backup_; /** - * - * *
    * The Backup resource to create.
    * 
* * .google.cloud.gkebackup.v1.Backup backup = 2; - * * @return Whether the backup field is set. */ @java.lang.Override @@ -210,14 +176,11 @@ public boolean hasBackup() { return backup_ != null; } /** - * - * *
    * The Backup resource to create.
    * 
* * .google.cloud.gkebackup.v1.Backup backup = 2; - * * @return The backup. */ @java.lang.Override @@ -225,8 +188,6 @@ public com.google.cloud.gkebackup.v1.Backup getBackup() { return backup_ == null ? com.google.cloud.gkebackup.v1.Backup.getDefaultInstance() : backup_; } /** - * - * *
    * The Backup resource to create.
    * 
@@ -241,8 +202,6 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() { public static final int BACKUP_ID_FIELD_NUMBER = 3; private volatile java.lang.Object backupId_; /** - * - * *
    * The client-provided short name for the Backup resource.
    * This name must:
@@ -254,7 +213,6 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() {
    * 
* * string backup_id = 3; - * * @return The backupId. */ @java.lang.Override @@ -263,15 +221,14 @@ public java.lang.String getBackupId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; } } /** - * - * *
    * The client-provided short name for the Backup resource.
    * This name must:
@@ -283,15 +240,16 @@ public java.lang.String getBackupId() {
    * 
* * string backup_id = 3; - * * @return The bytes for backupId. */ @java.lang.Override - public com.google.protobuf.ByteString getBackupIdBytes() { + public com.google.protobuf.ByteString + getBackupIdBytes() { java.lang.Object ref = backupId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -300,7 +258,6 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -312,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_); } @@ -335,7 +293,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (backup_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBackup()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBackup()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, backupId_); @@ -348,20 +307,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.CreateBackupRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.CreateBackupRequest other = - (com.google.cloud.gkebackup.v1.CreateBackupRequest) obj; + com.google.cloud.gkebackup.v1.CreateBackupRequest other = (com.google.cloud.gkebackup.v1.CreateBackupRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasBackup() != other.hasBackup()) return false; if (hasBackup()) { - if (!getBackup().equals(other.getBackup())) return false; + if (!getBackup() + .equals(other.getBackup())) return false; } - if (!getBackupId().equals(other.getBackupId())) return false; + if (!getBackupId() + .equals(other.getBackupId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -387,126 +348,117 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.CreateBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 CreateBackup.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.CreateBackupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.CreateBackupRequest) com.google.cloud.gkebackup.v1.CreateBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.CreateBackupRequest.class, - com.google.cloud.gkebackup.v1.CreateBackupRequest.Builder.class); + com.google.cloud.gkebackup.v1.CreateBackupRequest.class, com.google.cloud.gkebackup.v1.CreateBackupRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.CreateBackupRequest.newBuilder() @@ -514,15 +466,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -540,9 +493,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor; } @java.lang.Override @@ -561,8 +514,7 @@ public com.google.cloud.gkebackup.v1.CreateBackupRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.CreateBackupRequest buildPartial() { - com.google.cloud.gkebackup.v1.CreateBackupRequest result = - new com.google.cloud.gkebackup.v1.CreateBackupRequest(this); + com.google.cloud.gkebackup.v1.CreateBackupRequest result = new com.google.cloud.gkebackup.v1.CreateBackupRequest(this); result.parent_ = parent_; if (backupBuilder_ == null) { result.backup_ = backup_; @@ -578,39 +530,38 @@ public com.google.cloud.gkebackup.v1.CreateBackupRequest 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.cloud.gkebackup.v1.CreateBackupRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.CreateBackupRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.CreateBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -618,8 +569,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.CreateBackupRequest other) { - if (other == com.google.cloud.gkebackup.v1.CreateBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.CreateBackupRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -650,8 +600,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.CreateBackupRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.CreateBackupRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -663,23 +612,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The BackupPlan within which to create the Backup.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * - * string 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; @@ -688,24 +633,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The BackupPlan within which to create the Backup.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * - * string 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 { @@ -713,70 +655,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The BackupPlan within which to create the Backup.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * - * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The BackupPlan within which to create the Backup.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The BackupPlan within which to create the Backup.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * - * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -784,47 +713,34 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkebackup.v1.Backup backup_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup, - com.google.cloud.gkebackup.v1.Backup.Builder, - com.google.cloud.gkebackup.v1.BackupOrBuilder> - backupBuilder_; + com.google.cloud.gkebackup.v1.Backup, com.google.cloud.gkebackup.v1.Backup.Builder, com.google.cloud.gkebackup.v1.BackupOrBuilder> backupBuilder_; /** - * - * *
      * The Backup resource to create.
      * 
* * .google.cloud.gkebackup.v1.Backup backup = 2; - * * @return Whether the backup field is set. */ public boolean hasBackup() { return backupBuilder_ != null || backup_ != null; } /** - * - * *
      * The Backup resource to create.
      * 
* * .google.cloud.gkebackup.v1.Backup backup = 2; - * * @return The backup. */ public com.google.cloud.gkebackup.v1.Backup getBackup() { if (backupBuilder_ == null) { - return backup_ == null - ? com.google.cloud.gkebackup.v1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? com.google.cloud.gkebackup.v1.Backup.getDefaultInstance() : backup_; } else { return backupBuilder_.getMessage(); } } /** - * - * *
      * The Backup resource to create.
      * 
@@ -845,15 +761,14 @@ public Builder setBackup(com.google.cloud.gkebackup.v1.Backup value) { return this; } /** - * - * *
      * The Backup resource to create.
      * 
* * .google.cloud.gkebackup.v1.Backup backup = 2; */ - public Builder setBackup(com.google.cloud.gkebackup.v1.Backup.Builder builderForValue) { + public Builder setBackup( + com.google.cloud.gkebackup.v1.Backup.Builder builderForValue) { if (backupBuilder_ == null) { backup_ = builderForValue.build(); onChanged(); @@ -864,8 +779,6 @@ public Builder setBackup(com.google.cloud.gkebackup.v1.Backup.Builder builderFor return this; } /** - * - * *
      * The Backup resource to create.
      * 
@@ -876,9 +789,7 @@ public Builder mergeBackup(com.google.cloud.gkebackup.v1.Backup value) { if (backupBuilder_ == null) { if (backup_ != null) { backup_ = - com.google.cloud.gkebackup.v1.Backup.newBuilder(backup_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkebackup.v1.Backup.newBuilder(backup_).mergeFrom(value).buildPartial(); } else { backup_ = value; } @@ -890,8 +801,6 @@ public Builder mergeBackup(com.google.cloud.gkebackup.v1.Backup value) { return this; } /** - * - * *
      * The Backup resource to create.
      * 
@@ -910,8 +819,6 @@ public Builder clearBackup() { return this; } /** - * - * *
      * The Backup resource to create.
      * 
@@ -919,13 +826,11 @@ public Builder clearBackup() { * .google.cloud.gkebackup.v1.Backup backup = 2; */ public com.google.cloud.gkebackup.v1.Backup.Builder getBackupBuilder() { - + onChanged(); return getBackupFieldBuilder().getBuilder(); } /** - * - * *
      * The Backup resource to create.
      * 
@@ -936,14 +841,11 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() { if (backupBuilder_ != null) { return backupBuilder_.getMessageOrBuilder(); } else { - return backup_ == null - ? com.google.cloud.gkebackup.v1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? + com.google.cloud.gkebackup.v1.Backup.getDefaultInstance() : backup_; } } /** - * - * *
      * The Backup resource to create.
      * 
@@ -951,17 +853,14 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() { * .google.cloud.gkebackup.v1.Backup backup = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup, - com.google.cloud.gkebackup.v1.Backup.Builder, - com.google.cloud.gkebackup.v1.BackupOrBuilder> + com.google.cloud.gkebackup.v1.Backup, com.google.cloud.gkebackup.v1.Backup.Builder, com.google.cloud.gkebackup.v1.BackupOrBuilder> getBackupFieldBuilder() { if (backupBuilder_ == null) { - backupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup, - com.google.cloud.gkebackup.v1.Backup.Builder, - com.google.cloud.gkebackup.v1.BackupOrBuilder>( - getBackup(), getParentForChildren(), isClean()); + backupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.Backup, com.google.cloud.gkebackup.v1.Backup.Builder, com.google.cloud.gkebackup.v1.BackupOrBuilder>( + getBackup(), + getParentForChildren(), + isClean()); backup_ = null; } return backupBuilder_; @@ -969,8 +868,6 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() { private java.lang.Object backupId_ = ""; /** - * - * *
      * The client-provided short name for the Backup resource.
      * This name must:
@@ -982,13 +879,13 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() {
      * 
* * string backup_id = 3; - * * @return The backupId. */ public java.lang.String getBackupId() { java.lang.Object ref = backupId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; @@ -997,8 +894,6 @@ public java.lang.String getBackupId() { } } /** - * - * *
      * The client-provided short name for the Backup resource.
      * This name must:
@@ -1010,14 +905,15 @@ public java.lang.String getBackupId() {
      * 
* * string backup_id = 3; - * * @return The bytes for backupId. */ - public com.google.protobuf.ByteString getBackupIdBytes() { + public com.google.protobuf.ByteString + getBackupIdBytes() { java.lang.Object ref = backupId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -1025,8 +921,6 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } } /** - * - * *
      * The client-provided short name for the Backup resource.
      * This name must:
@@ -1038,22 +932,20 @@ public com.google.protobuf.ByteString getBackupIdBytes() {
      * 
* * string backup_id = 3; - * * @param value The backupId to set. * @return This builder for chaining. */ - public Builder setBackupId(java.lang.String value) { + public Builder setBackupId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + backupId_ = value; onChanged(); return this; } /** - * - * *
      * The client-provided short name for the Backup resource.
      * This name must:
@@ -1065,18 +957,15 @@ public Builder setBackupId(java.lang.String value) {
      * 
* * string backup_id = 3; - * * @return This builder for chaining. */ public Builder clearBackupId() { - + backupId_ = getDefaultInstance().getBackupId(); onChanged(); return this; } /** - * - * *
      * The client-provided short name for the Backup resource.
      * This name must:
@@ -1088,23 +977,23 @@ public Builder clearBackupId() {
      * 
* * string backup_id = 3; - * * @param value The bytes for backupId to set. * @return This builder for chaining. */ - public Builder setBackupIdBytes(com.google.protobuf.ByteString value) { + public Builder setBackupIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backupId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1114,12 +1003,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.CreateBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.CreateBackupRequest) private static final com.google.cloud.gkebackup.v1.CreateBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.CreateBackupRequest(); } @@ -1128,16 +1017,16 @@ public static com.google.cloud.gkebackup.v1.CreateBackupRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateBackupRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateBackupRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1152,4 +1041,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.CreateBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequestOrBuilder.java similarity index 67% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequestOrBuilder.java index c3938ca..3321bdc 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequestOrBuilder.java @@ -1,86 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface CreateBackupRequestOrBuilder - extends +public interface CreateBackupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.CreateBackupRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The BackupPlan within which to create the Backup.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * - * string 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 BackupPlan within which to create the Backup.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * - * string 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 Backup resource to create.
    * 
* * .google.cloud.gkebackup.v1.Backup backup = 2; - * * @return Whether the backup field is set. */ boolean hasBackup(); /** - * - * *
    * The Backup resource to create.
    * 
* * .google.cloud.gkebackup.v1.Backup backup = 2; - * * @return The backup. */ com.google.cloud.gkebackup.v1.Backup getBackup(); /** - * - * *
    * The Backup resource to create.
    * 
@@ -90,8 +57,6 @@ public interface CreateBackupRequestOrBuilder com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder(); /** - * - * *
    * The client-provided short name for the Backup resource.
    * This name must:
@@ -103,13 +68,10 @@ public interface CreateBackupRequestOrBuilder
    * 
* * string backup_id = 3; - * * @return The backupId. */ java.lang.String getBackupId(); /** - * - * *
    * The client-provided short name for the Backup resource.
    * This name must:
@@ -121,8 +83,8 @@ public interface CreateBackupRequestOrBuilder
    * 
* * string backup_id = 3; - * * @return The bytes for backupId. */ - com.google.protobuf.ByteString getBackupIdBytes(); + com.google.protobuf.ByteString + getBackupIdBytes(); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequest.java similarity index 66% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequest.java index 4ed1e9a..5ad97d9 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for CreateRestorePlan.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.CreateRestorePlanRequest} */ -public final class CreateRestorePlanRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateRestorePlanRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.CreateRestorePlanRequest) CreateRestorePlanRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateRestorePlanRequest.newBuilder() to construct. private CreateRestorePlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateRestorePlanRequest() { parent_ = ""; restorePlanId_ = ""; @@ -44,15 +26,16 @@ private CreateRestorePlanRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateRestorePlanRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateRestorePlanRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateRestorePlanRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.gkebackup.v1.RestorePlan.Builder subBuilder = null; + if (restorePlan_ != null) { + subBuilder = restorePlan_.toBuilder(); } - case 18: - { - com.google.cloud.gkebackup.v1.RestorePlan.Builder subBuilder = null; - if (restorePlan_ != null) { - subBuilder = restorePlan_.toBuilder(); - } - restorePlan_ = - input.readMessage( - com.google.cloud.gkebackup.v1.RestorePlan.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(restorePlan_); - restorePlan_ = subBuilder.buildPartial(); - } - - break; + restorePlan_ = input.readMessage(com.google.cloud.gkebackup.v1.RestorePlan.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(restorePlan_); + restorePlan_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - restorePlanId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + restorePlanId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,42 +93,35 @@ private CreateRestorePlanRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.class, - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.class, com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The location within which to create the RestorePlan.
    * Format: projects/*/locations/*
    * 
* - * - * string 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 @@ -159,32 +130,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The location within which to create the RestorePlan.
    * Format: projects/*/locations/*
    * 
* - * - * string 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 { @@ -195,16 +164,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int RESTORE_PLAN_FIELD_NUMBER = 2; private com.google.cloud.gkebackup.v1.RestorePlan restorePlan_; /** - * - * *
    * Required. The RestorePlan resource object to create.
    * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the restorePlan field is set. */ @java.lang.Override @@ -212,34 +176,23 @@ public boolean hasRestorePlan() { return restorePlan_ != null; } /** - * - * *
    * Required. The RestorePlan resource object to create.
    * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The restorePlan. */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestorePlan getRestorePlan() { - return restorePlan_ == null - ? com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() - : restorePlan_; + return restorePlan_ == null ? com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() : restorePlan_; } /** - * - * *
    * Required. The RestorePlan resource object to create.
    * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilder() { @@ -249,8 +202,6 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilde public static final int RESTORE_PLAN_ID_FIELD_NUMBER = 3; private volatile java.lang.Object restorePlanId_; /** - * - * *
    * Required. The client-provided short name for the RestorePlan resource.
    * This name must:
@@ -262,7 +213,6 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilde
    * 
* * string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The restorePlanId. */ @java.lang.Override @@ -271,15 +221,14 @@ public java.lang.String getRestorePlanId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); restorePlanId_ = s; return s; } } /** - * - * *
    * Required. The client-provided short name for the RestorePlan resource.
    * This name must:
@@ -291,15 +240,16 @@ public java.lang.String getRestorePlanId() {
    * 
* * string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for restorePlanId. */ @java.lang.Override - public com.google.protobuf.ByteString getRestorePlanIdBytes() { + public com.google.protobuf.ByteString + getRestorePlanIdBytes() { java.lang.Object ref = restorePlanId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); restorePlanId_ = b; return b; } else { @@ -308,7 +258,6 @@ public com.google.protobuf.ByteString getRestorePlanIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -320,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_); } @@ -343,7 +293,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (restorePlan_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRestorePlan()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRestorePlan()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(restorePlanId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, restorePlanId_); @@ -356,20 +307,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.CreateRestorePlanRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest other = - (com.google.cloud.gkebackup.v1.CreateRestorePlanRequest) obj; + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest other = (com.google.cloud.gkebackup.v1.CreateRestorePlanRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasRestorePlan() != other.hasRestorePlan()) return false; if (hasRestorePlan()) { - if (!getRestorePlan().equals(other.getRestorePlan())) return false; + if (!getRestorePlan() + .equals(other.getRestorePlan())) return false; } - if (!getRestorePlanId().equals(other.getRestorePlanId())) return false; + if (!getRestorePlanId() + .equals(other.getRestorePlanId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -395,127 +348,117 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkebackup.v1.CreateRestorePlanRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 CreateRestorePlan.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.CreateRestorePlanRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.CreateRestorePlanRequest) com.google.cloud.gkebackup.v1.CreateRestorePlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.class, - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.class, com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.newBuilder() @@ -523,15 +466,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -549,9 +493,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor; } @java.lang.Override @@ -570,8 +514,7 @@ public com.google.cloud.gkebackup.v1.CreateRestorePlanRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.CreateRestorePlanRequest buildPartial() { - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest result = - new com.google.cloud.gkebackup.v1.CreateRestorePlanRequest(this); + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest result = new com.google.cloud.gkebackup.v1.CreateRestorePlanRequest(this); result.parent_ = parent_; if (restorePlanBuilder_ == null) { result.restorePlan_ = restorePlan_; @@ -587,39 +530,38 @@ public com.google.cloud.gkebackup.v1.CreateRestorePlanRequest 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.cloud.gkebackup.v1.CreateRestorePlanRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.CreateRestorePlanRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.CreateRestorePlanRequest)other); } else { super.mergeFrom(other); return this; @@ -627,8 +569,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.CreateRestorePlanRequest other) { - if (other == com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -659,8 +600,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.CreateRestorePlanRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.CreateRestorePlanRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,23 +612,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The location within which to create the RestorePlan.
      * Format: projects/*/locations/*
      * 
* - * - * string 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; @@ -697,24 +633,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The location within which to create the RestorePlan.
      * Format: projects/*/locations/*
      * 
* - * - * string 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 { @@ -722,70 +655,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The location within which to create the RestorePlan.
      * Format: projects/*/locations/*
      * 
* - * - * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The location within which to create the RestorePlan.
      * Format: projects/*/locations/*
      * 
* - * - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The location within which to create the RestorePlan.
      * Format: projects/*/locations/*
      * 
* - * - * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -793,58 +713,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkebackup.v1.RestorePlan restorePlan_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestorePlan, - com.google.cloud.gkebackup.v1.RestorePlan.Builder, - com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> - restorePlanBuilder_; + com.google.cloud.gkebackup.v1.RestorePlan, com.google.cloud.gkebackup.v1.RestorePlan.Builder, com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> restorePlanBuilder_; /** - * - * *
      * Required. The RestorePlan resource object to create.
      * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the restorePlan field is set. */ public boolean hasRestorePlan() { return restorePlanBuilder_ != null || restorePlan_ != null; } /** - * - * *
      * Required. The RestorePlan resource object to create.
      * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The restorePlan. */ public com.google.cloud.gkebackup.v1.RestorePlan getRestorePlan() { if (restorePlanBuilder_ == null) { - return restorePlan_ == null - ? com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() - : restorePlan_; + return restorePlan_ == null ? com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() : restorePlan_; } else { return restorePlanBuilder_.getMessage(); } } /** - * - * *
      * Required. The RestorePlan resource object to create.
      * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRestorePlan(com.google.cloud.gkebackup.v1.RestorePlan value) { if (restorePlanBuilder_ == null) { @@ -860,15 +761,11 @@ public Builder setRestorePlan(com.google.cloud.gkebackup.v1.RestorePlan value) { return this; } /** - * - * *
      * Required. The RestorePlan resource object to create.
      * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRestorePlan( com.google.cloud.gkebackup.v1.RestorePlan.Builder builderForValue) { @@ -882,23 +779,17 @@ public Builder setRestorePlan( return this; } /** - * - * *
      * Required. The RestorePlan resource object to create.
      * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeRestorePlan(com.google.cloud.gkebackup.v1.RestorePlan value) { if (restorePlanBuilder_ == null) { if (restorePlan_ != null) { restorePlan_ = - com.google.cloud.gkebackup.v1.RestorePlan.newBuilder(restorePlan_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkebackup.v1.RestorePlan.newBuilder(restorePlan_).mergeFrom(value).buildPartial(); } else { restorePlan_ = value; } @@ -910,15 +801,11 @@ public Builder mergeRestorePlan(com.google.cloud.gkebackup.v1.RestorePlan value) return this; } /** - * - * *
      * Required. The RestorePlan resource object to create.
      * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRestorePlan() { if (restorePlanBuilder_ == null) { @@ -932,64 +819,48 @@ public Builder clearRestorePlan() { return this; } /** - * - * *
      * Required. The RestorePlan resource object to create.
      * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkebackup.v1.RestorePlan.Builder getRestorePlanBuilder() { - + onChanged(); return getRestorePlanFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The RestorePlan resource object to create.
      * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilder() { if (restorePlanBuilder_ != null) { return restorePlanBuilder_.getMessageOrBuilder(); } else { - return restorePlan_ == null - ? com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() - : restorePlan_; + return restorePlan_ == null ? + com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() : restorePlan_; } } /** - * - * *
      * Required. The RestorePlan resource object to create.
      * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestorePlan, - com.google.cloud.gkebackup.v1.RestorePlan.Builder, - com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> + com.google.cloud.gkebackup.v1.RestorePlan, com.google.cloud.gkebackup.v1.RestorePlan.Builder, com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> getRestorePlanFieldBuilder() { if (restorePlanBuilder_ == null) { - restorePlanBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestorePlan, - com.google.cloud.gkebackup.v1.RestorePlan.Builder, - com.google.cloud.gkebackup.v1.RestorePlanOrBuilder>( - getRestorePlan(), getParentForChildren(), isClean()); + restorePlanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestorePlan, com.google.cloud.gkebackup.v1.RestorePlan.Builder, com.google.cloud.gkebackup.v1.RestorePlanOrBuilder>( + getRestorePlan(), + getParentForChildren(), + isClean()); restorePlan_ = null; } return restorePlanBuilder_; @@ -997,8 +868,6 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilde private java.lang.Object restorePlanId_ = ""; /** - * - * *
      * Required. The client-provided short name for the RestorePlan resource.
      * This name must:
@@ -1010,13 +879,13 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilde
      * 
* * string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The restorePlanId. */ public java.lang.String getRestorePlanId() { java.lang.Object ref = restorePlanId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); restorePlanId_ = s; return s; @@ -1025,8 +894,6 @@ public java.lang.String getRestorePlanId() { } } /** - * - * *
      * Required. The client-provided short name for the RestorePlan resource.
      * This name must:
@@ -1038,14 +905,15 @@ public java.lang.String getRestorePlanId() {
      * 
* * string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for restorePlanId. */ - public com.google.protobuf.ByteString getRestorePlanIdBytes() { + public com.google.protobuf.ByteString + getRestorePlanIdBytes() { java.lang.Object ref = restorePlanId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); restorePlanId_ = b; return b; } else { @@ -1053,8 +921,6 @@ public com.google.protobuf.ByteString getRestorePlanIdBytes() { } } /** - * - * *
      * Required. The client-provided short name for the RestorePlan resource.
      * This name must:
@@ -1066,22 +932,20 @@ public com.google.protobuf.ByteString getRestorePlanIdBytes() {
      * 
* * string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The restorePlanId to set. * @return This builder for chaining. */ - public Builder setRestorePlanId(java.lang.String value) { + public Builder setRestorePlanId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + restorePlanId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The client-provided short name for the RestorePlan resource.
      * This name must:
@@ -1093,18 +957,15 @@ public Builder setRestorePlanId(java.lang.String value) {
      * 
* * string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRestorePlanId() { - + restorePlanId_ = getDefaultInstance().getRestorePlanId(); onChanged(); return this; } /** - * - * *
      * Required. The client-provided short name for the RestorePlan resource.
      * This name must:
@@ -1116,23 +977,23 @@ public Builder clearRestorePlanId() {
      * 
* * string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for restorePlanId to set. * @return This builder for chaining. */ - public Builder setRestorePlanIdBytes(com.google.protobuf.ByteString value) { + public Builder setRestorePlanIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + restorePlanId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1142,12 +1003,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.CreateRestorePlanRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.CreateRestorePlanRequest) private static final com.google.cloud.gkebackup.v1.CreateRestorePlanRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.CreateRestorePlanRequest(); } @@ -1156,16 +1017,16 @@ public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRestorePlanRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateRestorePlanRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRestorePlanRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateRestorePlanRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1180,4 +1041,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.CreateRestorePlanRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequestOrBuilder.java index 209070c..ad3c38c 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequestOrBuilder.java @@ -1,103 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface CreateRestorePlanRequestOrBuilder - extends +public interface CreateRestorePlanRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.CreateRestorePlanRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The location within which to create the RestorePlan.
    * Format: projects/*/locations/*
    * 
* - * - * string 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 location within which to create the RestorePlan.
    * Format: projects/*/locations/*
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The RestorePlan resource object to create.
    * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the restorePlan field is set. */ boolean hasRestorePlan(); /** - * - * *
    * Required. The RestorePlan resource object to create.
    * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The restorePlan. */ com.google.cloud.gkebackup.v1.RestorePlan getRestorePlan(); /** - * - * *
    * Required. The RestorePlan resource object to create.
    * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilder(); /** - * - * *
    * Required. The client-provided short name for the RestorePlan resource.
    * This name must:
@@ -109,13 +68,10 @@ public interface CreateRestorePlanRequestOrBuilder
    * 
* * string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The restorePlanId. */ java.lang.String getRestorePlanId(); /** - * - * *
    * Required. The client-provided short name for the RestorePlan resource.
    * This name must:
@@ -127,8 +83,8 @@ public interface CreateRestorePlanRequestOrBuilder
    * 
* * string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for restorePlanId. */ - com.google.protobuf.ByteString getRestorePlanIdBytes(); + com.google.protobuf.ByteString + getRestorePlanIdBytes(); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequest.java similarity index 67% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequest.java index cd90a2f..bd26248 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for CreateRestore.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.CreateRestoreRequest} */ -public final class CreateRestoreRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateRestoreRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.CreateRestoreRequest) CreateRestoreRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateRestoreRequest.newBuilder() to construct. private CreateRestoreRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateRestoreRequest() { parent_ = ""; restoreId_ = ""; @@ -44,15 +26,16 @@ private CreateRestoreRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateRestoreRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateRestoreRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateRestoreRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.gkebackup.v1.Restore.Builder subBuilder = null; + if (restore_ != null) { + subBuilder = restore_.toBuilder(); } - case 18: - { - com.google.cloud.gkebackup.v1.Restore.Builder subBuilder = null; - if (restore_ != null) { - subBuilder = restore_.toBuilder(); - } - restore_ = - input.readMessage( - com.google.cloud.gkebackup.v1.Restore.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(restore_); - restore_ = subBuilder.buildPartial(); - } - - break; + restore_ = input.readMessage(com.google.cloud.gkebackup.v1.Restore.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(restore_); + restore_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - restoreId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + restoreId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,42 +93,35 @@ private CreateRestoreRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.CreateRestoreRequest.class, - com.google.cloud.gkebackup.v1.CreateRestoreRequest.Builder.class); + com.google.cloud.gkebackup.v1.CreateRestoreRequest.class, com.google.cloud.gkebackup.v1.CreateRestoreRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The RestorePlan within which to create the Restore.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * - * string 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 @@ -159,32 +130,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The RestorePlan within which to create the Restore.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * - * string 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 { @@ -195,15 +164,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int RESTORE_FIELD_NUMBER = 2; private com.google.cloud.gkebackup.v1.Restore restore_; /** - * - * *
    * Required. The restore resource to create.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the restore field is set. */ @java.lang.Override @@ -211,15 +176,11 @@ public boolean hasRestore() { return restore_ != null; } /** - * - * *
    * Required. The restore resource to create.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The restore. */ @java.lang.Override @@ -227,14 +188,11 @@ public com.google.cloud.gkebackup.v1.Restore getRestore() { return restore_ == null ? com.google.cloud.gkebackup.v1.Restore.getDefaultInstance() : restore_; } /** - * - * *
    * Required. The restore resource to create.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() { @@ -244,8 +202,6 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() { public static final int RESTORE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object restoreId_; /** - * - * *
    * Required. The client-provided short name for the Restore resource.
    * This name must:
@@ -257,7 +213,6 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() {
    * 
* * string restore_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The restoreId. */ @java.lang.Override @@ -266,15 +221,14 @@ public java.lang.String getRestoreId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); restoreId_ = s; return s; } } /** - * - * *
    * Required. The client-provided short name for the Restore resource.
    * This name must:
@@ -286,15 +240,16 @@ public java.lang.String getRestoreId() {
    * 
* * string restore_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for restoreId. */ @java.lang.Override - public com.google.protobuf.ByteString getRestoreIdBytes() { + public com.google.protobuf.ByteString + getRestoreIdBytes() { java.lang.Object ref = restoreId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); restoreId_ = b; return b; } else { @@ -303,7 +258,6 @@ public com.google.protobuf.ByteString getRestoreIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,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_); } @@ -338,7 +293,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (restore_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRestore()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRestore()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(restoreId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, restoreId_); @@ -351,20 +307,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.CreateRestoreRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.CreateRestoreRequest other = - (com.google.cloud.gkebackup.v1.CreateRestoreRequest) obj; + com.google.cloud.gkebackup.v1.CreateRestoreRequest other = (com.google.cloud.gkebackup.v1.CreateRestoreRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasRestore() != other.hasRestore()) return false; if (hasRestore()) { - if (!getRestore().equals(other.getRestore())) return false; + if (!getRestore() + .equals(other.getRestore())) return false; } - if (!getRestoreId().equals(other.getRestoreId())) return false; + if (!getRestoreId() + .equals(other.getRestoreId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -390,126 +348,117 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.CreateRestoreRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 CreateRestore.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.CreateRestoreRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.CreateRestoreRequest) com.google.cloud.gkebackup.v1.CreateRestoreRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.CreateRestoreRequest.class, - com.google.cloud.gkebackup.v1.CreateRestoreRequest.Builder.class); + com.google.cloud.gkebackup.v1.CreateRestoreRequest.class, com.google.cloud.gkebackup.v1.CreateRestoreRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.CreateRestoreRequest.newBuilder() @@ -517,15 +466,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -543,9 +493,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor; } @java.lang.Override @@ -564,8 +514,7 @@ public com.google.cloud.gkebackup.v1.CreateRestoreRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.CreateRestoreRequest buildPartial() { - com.google.cloud.gkebackup.v1.CreateRestoreRequest result = - new com.google.cloud.gkebackup.v1.CreateRestoreRequest(this); + com.google.cloud.gkebackup.v1.CreateRestoreRequest result = new com.google.cloud.gkebackup.v1.CreateRestoreRequest(this); result.parent_ = parent_; if (restoreBuilder_ == null) { result.restore_ = restore_; @@ -581,39 +530,38 @@ public com.google.cloud.gkebackup.v1.CreateRestoreRequest 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.cloud.gkebackup.v1.CreateRestoreRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.CreateRestoreRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.CreateRestoreRequest)other); } else { super.mergeFrom(other); return this; @@ -621,8 +569,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.CreateRestoreRequest other) { - if (other == com.google.cloud.gkebackup.v1.CreateRestoreRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.CreateRestoreRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -653,8 +600,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.CreateRestoreRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.CreateRestoreRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -666,23 +612,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The RestorePlan within which to create the Restore.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * - * string 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; @@ -691,24 +633,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The RestorePlan within which to create the Restore.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * - * string 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 { @@ -716,70 +655,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The RestorePlan within which to create the Restore.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * - * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The RestorePlan within which to create the Restore.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The RestorePlan within which to create the Restore.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * - * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -787,58 +713,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkebackup.v1.Restore restore_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Restore, - com.google.cloud.gkebackup.v1.Restore.Builder, - com.google.cloud.gkebackup.v1.RestoreOrBuilder> - restoreBuilder_; + com.google.cloud.gkebackup.v1.Restore, com.google.cloud.gkebackup.v1.Restore.Builder, com.google.cloud.gkebackup.v1.RestoreOrBuilder> restoreBuilder_; /** - * - * *
      * Required. The restore resource to create.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the restore field is set. */ public boolean hasRestore() { return restoreBuilder_ != null || restore_ != null; } /** - * - * *
      * Required. The restore resource to create.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The restore. */ public com.google.cloud.gkebackup.v1.Restore getRestore() { if (restoreBuilder_ == null) { - return restore_ == null - ? com.google.cloud.gkebackup.v1.Restore.getDefaultInstance() - : restore_; + return restore_ == null ? com.google.cloud.gkebackup.v1.Restore.getDefaultInstance() : restore_; } else { return restoreBuilder_.getMessage(); } } /** - * - * *
      * Required. The restore resource to create.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRestore(com.google.cloud.gkebackup.v1.Restore value) { if (restoreBuilder_ == null) { @@ -854,17 +761,14 @@ public Builder setRestore(com.google.cloud.gkebackup.v1.Restore value) { return this; } /** - * - * *
      * Required. The restore resource to create.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setRestore(com.google.cloud.gkebackup.v1.Restore.Builder builderForValue) { + public Builder setRestore( + com.google.cloud.gkebackup.v1.Restore.Builder builderForValue) { if (restoreBuilder_ == null) { restore_ = builderForValue.build(); onChanged(); @@ -875,23 +779,17 @@ public Builder setRestore(com.google.cloud.gkebackup.v1.Restore.Builder builderF return this; } /** - * - * *
      * Required. The restore resource to create.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeRestore(com.google.cloud.gkebackup.v1.Restore value) { if (restoreBuilder_ == null) { if (restore_ != null) { restore_ = - com.google.cloud.gkebackup.v1.Restore.newBuilder(restore_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkebackup.v1.Restore.newBuilder(restore_).mergeFrom(value).buildPartial(); } else { restore_ = value; } @@ -903,15 +801,11 @@ public Builder mergeRestore(com.google.cloud.gkebackup.v1.Restore value) { return this; } /** - * - * *
      * Required. The restore resource to create.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRestore() { if (restoreBuilder_ == null) { @@ -925,64 +819,48 @@ public Builder clearRestore() { return this; } /** - * - * *
      * Required. The restore resource to create.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkebackup.v1.Restore.Builder getRestoreBuilder() { - + onChanged(); return getRestoreFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The restore resource to create.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() { if (restoreBuilder_ != null) { return restoreBuilder_.getMessageOrBuilder(); } else { - return restore_ == null - ? com.google.cloud.gkebackup.v1.Restore.getDefaultInstance() - : restore_; + return restore_ == null ? + com.google.cloud.gkebackup.v1.Restore.getDefaultInstance() : restore_; } } /** - * - * *
      * Required. The restore resource to create.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Restore, - com.google.cloud.gkebackup.v1.Restore.Builder, - com.google.cloud.gkebackup.v1.RestoreOrBuilder> + com.google.cloud.gkebackup.v1.Restore, com.google.cloud.gkebackup.v1.Restore.Builder, com.google.cloud.gkebackup.v1.RestoreOrBuilder> getRestoreFieldBuilder() { if (restoreBuilder_ == null) { - restoreBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Restore, - com.google.cloud.gkebackup.v1.Restore.Builder, - com.google.cloud.gkebackup.v1.RestoreOrBuilder>( - getRestore(), getParentForChildren(), isClean()); + restoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.Restore, com.google.cloud.gkebackup.v1.Restore.Builder, com.google.cloud.gkebackup.v1.RestoreOrBuilder>( + getRestore(), + getParentForChildren(), + isClean()); restore_ = null; } return restoreBuilder_; @@ -990,8 +868,6 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() { private java.lang.Object restoreId_ = ""; /** - * - * *
      * Required. The client-provided short name for the Restore resource.
      * This name must:
@@ -1003,13 +879,13 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() {
      * 
* * string restore_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The restoreId. */ public java.lang.String getRestoreId() { java.lang.Object ref = restoreId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); restoreId_ = s; return s; @@ -1018,8 +894,6 @@ public java.lang.String getRestoreId() { } } /** - * - * *
      * Required. The client-provided short name for the Restore resource.
      * This name must:
@@ -1031,14 +905,15 @@ public java.lang.String getRestoreId() {
      * 
* * string restore_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for restoreId. */ - public com.google.protobuf.ByteString getRestoreIdBytes() { + public com.google.protobuf.ByteString + getRestoreIdBytes() { java.lang.Object ref = restoreId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); restoreId_ = b; return b; } else { @@ -1046,8 +921,6 @@ public com.google.protobuf.ByteString getRestoreIdBytes() { } } /** - * - * *
      * Required. The client-provided short name for the Restore resource.
      * This name must:
@@ -1059,22 +932,20 @@ public com.google.protobuf.ByteString getRestoreIdBytes() {
      * 
* * string restore_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The restoreId to set. * @return This builder for chaining. */ - public Builder setRestoreId(java.lang.String value) { + public Builder setRestoreId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + restoreId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The client-provided short name for the Restore resource.
      * This name must:
@@ -1086,18 +957,15 @@ public Builder setRestoreId(java.lang.String value) {
      * 
* * string restore_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRestoreId() { - + restoreId_ = getDefaultInstance().getRestoreId(); onChanged(); return this; } /** - * - * *
      * Required. The client-provided short name for the Restore resource.
      * This name must:
@@ -1109,23 +977,23 @@ public Builder clearRestoreId() {
      * 
* * string restore_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for restoreId to set. * @return This builder for chaining. */ - public Builder setRestoreIdBytes(com.google.protobuf.ByteString value) { + public Builder setRestoreIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + restoreId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1135,12 +1003,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.CreateRestoreRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.CreateRestoreRequest) private static final com.google.cloud.gkebackup.v1.CreateRestoreRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.CreateRestoreRequest(); } @@ -1149,16 +1017,16 @@ public static com.google.cloud.gkebackup.v1.CreateRestoreRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRestoreRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateRestoreRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRestoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateRestoreRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1173,4 +1041,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.CreateRestoreRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequestOrBuilder.java index c25d468..52854bc 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequestOrBuilder.java @@ -1,100 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface CreateRestoreRequestOrBuilder - extends +public interface CreateRestoreRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.CreateRestoreRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The RestorePlan within which to create the Restore.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * - * string 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 RestorePlan within which to create the Restore.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The restore resource to create.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the restore field is set. */ boolean hasRestore(); /** - * - * *
    * Required. The restore resource to create.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The restore. */ com.google.cloud.gkebackup.v1.Restore getRestore(); /** - * - * *
    * Required. The restore resource to create.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder(); /** - * - * *
    * Required. The client-provided short name for the Restore resource.
    * This name must:
@@ -106,13 +68,10 @@ public interface CreateRestoreRequestOrBuilder
    * 
* * string restore_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The restoreId. */ java.lang.String getRestoreId(); /** - * - * *
    * Required. The client-provided short name for the Restore resource.
    * This name must:
@@ -124,8 +83,8 @@ public interface CreateRestoreRequestOrBuilder
    * 
* * string restore_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for restoreId. */ - com.google.protobuf.ByteString getRestoreIdBytes(); + com.google.protobuf.ByteString + getRestoreIdBytes(); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequest.java similarity index 67% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequest.java index fbdd6de..a38bba0 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for DeleteBackupPlan.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.DeleteBackupPlanRequest} */ -public final class DeleteBackupPlanRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteBackupPlanRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.DeleteBackupPlanRequest) DeleteBackupPlanRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteBackupPlanRequest.newBuilder() to construct. private DeleteBackupPlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteBackupPlanRequest() { name_ = ""; etag_ = ""; @@ -44,15 +26,16 @@ private DeleteBackupPlanRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteBackupPlanRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteBackupPlanRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private DeleteBackupPlanRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + etag_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,42 +80,35 @@ private DeleteBackupPlanRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.class, - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.class, com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Fully qualified BackupPlan name.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * - * 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 @@ -143,32 +117,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. Fully qualified BackupPlan name.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * - * 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 { @@ -179,8 +151,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ETAG_FIELD_NUMBER = 2; private volatile java.lang.Object etag_; /** - * - * *
    * If provided, this value must match the current value of the
    * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field or the request is
@@ -188,7 +158,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string etag = 2; - * * @return The etag. */ @java.lang.Override @@ -197,15 +166,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; } } /** - * - * *
    * If provided, this value must match the current value of the
    * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field or the request is
@@ -213,15 +181,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 2; - * * @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 { @@ -230,7 +199,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,7 +210,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -272,16 +241,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest other = - (com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest) obj; + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest other = (com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -303,127 +273,117 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 DeleteBackupPlan.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.DeleteBackupPlanRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.DeleteBackupPlanRequest) com.google.cloud.gkebackup.v1.DeleteBackupPlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.class, - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.class, com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.newBuilder() @@ -431,15 +391,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -451,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor; } @java.lang.Override @@ -472,8 +433,7 @@ public com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest buildPartial() { - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest result = - new com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest(this); + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest result = new com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest(this); result.name_ = name_; result.etag_ = etag_; onBuilt(); @@ -484,39 +444,38 @@ public com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest 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.cloud.gkebackup.v1.DeleteBackupPlanRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest)other); } else { super.mergeFrom(other); return this; @@ -524,8 +483,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest other) { - if (other == com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -553,8 +511,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -566,23 +523,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Fully qualified BackupPlan name.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * - * 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; @@ -591,24 +544,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Fully qualified BackupPlan name.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * - * 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,70 +566,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Fully qualified BackupPlan name.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * - * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Fully qualified BackupPlan name.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Fully qualified BackupPlan name.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * - * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -687,8 +624,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
      * If provided, this value must match the current value of the
      * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field or the request is
@@ -696,13 +631,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string etag = 2; - * * @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; @@ -711,8 +646,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * If provided, this value must match the current value of the
      * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field or the request is
@@ -720,14 +653,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2; - * * @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 { @@ -735,8 +669,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * If provided, this value must match the current value of the
      * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field or the request is
@@ -744,22 +676,20 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 2; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * If provided, this value must match the current value of the
      * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field or the request is
@@ -767,18 +697,15 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 2; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * If provided, this value must match the current value of the
      * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field or the request is
@@ -786,23 +713,23 @@ public Builder clearEtag() {
      * 
* * string etag = 2; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -812,12 +739,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.DeleteBackupPlanRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.DeleteBackupPlanRequest) private static final com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest(); } @@ -826,16 +753,16 @@ public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBackupPlanRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteBackupPlanRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBackupPlanRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteBackupPlanRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -850,4 +777,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequestOrBuilder.java index b655f0a..cf4a1bb 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface DeleteBackupPlanRequestOrBuilder - extends +public interface DeleteBackupPlanRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.DeleteBackupPlanRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Fully qualified BackupPlan name.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * - * 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. Fully qualified BackupPlan name.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * - * 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 provided, this value must match the current value of the
    * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field or the request is
@@ -64,13 +37,10 @@ public interface DeleteBackupPlanRequestOrBuilder
    * 
* * string etag = 2; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * If provided, this value must match the current value of the
    * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field or the request is
@@ -78,8 +48,8 @@ public interface DeleteBackupPlanRequestOrBuilder
    * 
* * string etag = 2; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequest.java similarity index 69% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequest.java index b18ad7e..33c4a5e 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for DeleteBackup.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.DeleteBackupRequest} */ -public final class DeleteBackupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteBackupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.DeleteBackupRequest) DeleteBackupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteBackupRequest.newBuilder() to construct. private DeleteBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteBackupRequest() { name_ = ""; etag_ = ""; @@ -44,15 +26,16 @@ private DeleteBackupRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteBackupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteBackupRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private DeleteBackupRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - case 24: - { - force_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + etag_ = s; + break; + } + case 24: { + + force_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private DeleteBackupRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.DeleteBackupRequest.class, - com.google.cloud.gkebackup.v1.DeleteBackupRequest.Builder.class); + com.google.cloud.gkebackup.v1.DeleteBackupRequest.class, com.google.cloud.gkebackup.v1.DeleteBackupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the Backup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*
    * 
* - * - * 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 @@ -148,32 +122,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 Backup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*
    * 
* - * - * 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 { @@ -184,8 +156,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ETAG_FIELD_NUMBER = 2; private volatile java.lang.Object etag_; /** - * - * *
    * If provided, this value must match the current value of the
    * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the request is
@@ -193,7 +163,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string etag = 2; - * * @return The etag. */ @java.lang.Override @@ -202,15 +171,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; } } /** - * - * *
    * If provided, this value must match the current value of the
    * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the request is
@@ -218,15 +186,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 2; - * * @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 { @@ -237,8 +206,6 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_; /** - * - * *
    * If set to true, any VolumeBackups below this Backup will also be deleted.
    * Otherwise, the request will only succeed if the Backup has no
@@ -246,7 +213,6 @@ public com.google.protobuf.ByteString getEtagBytes() {
    * 
* * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -255,7 +221,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -293,7 +259,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, force_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -303,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.DeleteBackupRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.DeleteBackupRequest other = - (com.google.cloud.gkebackup.v1.DeleteBackupRequest) obj; + com.google.cloud.gkebackup.v1.DeleteBackupRequest other = (com.google.cloud.gkebackup.v1.DeleteBackupRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (getForce() != other.getForce()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (getForce() + != other.getForce()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -330,133 +299,125 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.DeleteBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 DeleteBackup.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.DeleteBackupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.DeleteBackupRequest) com.google.cloud.gkebackup.v1.DeleteBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.DeleteBackupRequest.class, - com.google.cloud.gkebackup.v1.DeleteBackupRequest.Builder.class); + com.google.cloud.gkebackup.v1.DeleteBackupRequest.class, com.google.cloud.gkebackup.v1.DeleteBackupRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.DeleteBackupRequest.newBuilder() @@ -464,15 +425,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -486,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor; } @java.lang.Override @@ -507,8 +469,7 @@ public com.google.cloud.gkebackup.v1.DeleteBackupRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.DeleteBackupRequest buildPartial() { - com.google.cloud.gkebackup.v1.DeleteBackupRequest result = - new com.google.cloud.gkebackup.v1.DeleteBackupRequest(this); + com.google.cloud.gkebackup.v1.DeleteBackupRequest result = new com.google.cloud.gkebackup.v1.DeleteBackupRequest(this); result.name_ = name_; result.etag_ = etag_; result.force_ = force_; @@ -520,39 +481,38 @@ public com.google.cloud.gkebackup.v1.DeleteBackupRequest 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.cloud.gkebackup.v1.DeleteBackupRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.DeleteBackupRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.DeleteBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -560,8 +520,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.DeleteBackupRequest other) { - if (other == com.google.cloud.gkebackup.v1.DeleteBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.DeleteBackupRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -592,8 +551,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.DeleteBackupRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.DeleteBackupRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -605,23 +563,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the Backup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * - * 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; @@ -630,24 +584,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the Backup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * - * 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 { @@ -655,70 +606,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the Backup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * - * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the Backup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the Backup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * - * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -726,8 +664,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
      * If provided, this value must match the current value of the
      * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the request is
@@ -735,13 +671,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string etag = 2; - * * @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; @@ -750,8 +686,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * If provided, this value must match the current value of the
      * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the request is
@@ -759,14 +693,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2; - * * @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 { @@ -774,8 +709,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * If provided, this value must match the current value of the
      * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the request is
@@ -783,22 +716,20 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 2; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * If provided, this value must match the current value of the
      * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the request is
@@ -806,18 +737,15 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 2; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * If provided, this value must match the current value of the
      * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the request is
@@ -825,25 +753,23 @@ public Builder clearEtag() {
      * 
* * string etag = 2; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * If set to true, any VolumeBackups below this Backup will also be deleted.
      * Otherwise, the request will only succeed if the Backup has no
@@ -851,7 +777,6 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
      * 
* * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -859,8 +784,6 @@ public boolean getForce() { return force_; } /** - * - * *
      * If set to true, any VolumeBackups below this Backup will also be deleted.
      * Otherwise, the request will only succeed if the Backup has no
@@ -868,19 +791,16 @@ public boolean getForce() {
      * 
* * bool force = 3; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** - * - * *
      * If set to true, any VolumeBackups below this Backup will also be deleted.
      * Otherwise, the request will only succeed if the Backup has no
@@ -888,18 +808,17 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 3; - * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -909,12 +828,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.DeleteBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.DeleteBackupRequest) private static final com.google.cloud.gkebackup.v1.DeleteBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.DeleteBackupRequest(); } @@ -923,16 +842,16 @@ public static com.google.cloud.gkebackup.v1.DeleteBackupRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteBackupRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteBackupRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -947,4 +866,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.DeleteBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequestOrBuilder.java index e37186f..502e5d3 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface DeleteBackupRequestOrBuilder - extends +public interface DeleteBackupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.DeleteBackupRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the Backup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the Backup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*
    * 
* - * - * 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 provided, this value must match the current value of the
    * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the request is
@@ -64,13 +37,10 @@ public interface DeleteBackupRequestOrBuilder
    * 
* * string etag = 2; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * If provided, this value must match the current value of the
    * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the request is
@@ -78,14 +48,12 @@ public interface DeleteBackupRequestOrBuilder
    * 
* * string etag = 2; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * If set to true, any VolumeBackups below this Backup will also be deleted.
    * Otherwise, the request will only succeed if the Backup has no
@@ -93,7 +61,6 @@ public interface DeleteBackupRequestOrBuilder
    * 
* * bool force = 3; - * * @return The force. */ boolean getForce(); diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequest.java similarity index 69% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequest.java index ad8a42c..5ed8784 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for DeleteRestorePlan.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.DeleteRestorePlanRequest} */ -public final class DeleteRestorePlanRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteRestorePlanRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.DeleteRestorePlanRequest) DeleteRestorePlanRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteRestorePlanRequest.newBuilder() to construct. private DeleteRestorePlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteRestorePlanRequest() { name_ = ""; etag_ = ""; @@ -44,15 +26,16 @@ private DeleteRestorePlanRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteRestorePlanRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteRestorePlanRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private DeleteRestorePlanRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - case 24: - { - force_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + etag_ = s; + break; + } + case 24: { + + force_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private DeleteRestorePlanRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.class, - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.class, com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Fully qualified RestorePlan name.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * - * 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 @@ -148,32 +122,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. Fully qualified RestorePlan name.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * - * 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 { @@ -184,8 +156,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ETAG_FIELD_NUMBER = 2; private volatile java.lang.Object etag_; /** - * - * *
    * If provided, this value must match the current value of the
    * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag] field or the request is
@@ -193,7 +163,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string etag = 2; - * * @return The etag. */ @java.lang.Override @@ -202,15 +171,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; } } /** - * - * *
    * If provided, this value must match the current value of the
    * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag] field or the request is
@@ -218,15 +186,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 2; - * * @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 { @@ -237,8 +206,6 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_; /** - * - * *
    * If set to true, any Restores below this RestorePlan will also be deleted.
    * Otherwise, the request will only succeed if the RestorePlan has no
@@ -246,7 +213,6 @@ public com.google.protobuf.ByteString getEtagBytes() {
    * 
* * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -255,7 +221,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -293,7 +259,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, force_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -303,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest other = - (com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest) obj; + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest other = (com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (getForce() != other.getForce()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (getForce() + != other.getForce()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -330,134 +299,125 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 DeleteRestorePlan.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.DeleteRestorePlanRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.DeleteRestorePlanRequest) com.google.cloud.gkebackup.v1.DeleteRestorePlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.class, - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.class, com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.newBuilder() @@ -465,15 +425,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor; } @java.lang.Override @@ -508,8 +469,7 @@ public com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest buildPartial() { - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest result = - new com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest(this); + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest result = new com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest(this); result.name_ = name_; result.etag_ = etag_; result.force_ = force_; @@ -521,39 +481,38 @@ public com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest 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.cloud.gkebackup.v1.DeleteRestorePlanRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest)other); } else { super.mergeFrom(other); return this; @@ -561,8 +520,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest other) { - if (other == com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -593,8 +551,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -606,23 +563,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Fully qualified RestorePlan name.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * - * 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; @@ -631,24 +584,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Fully qualified RestorePlan name.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * - * 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 { @@ -656,70 +606,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Fully qualified RestorePlan name.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * - * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Fully qualified RestorePlan name.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Fully qualified RestorePlan name.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * - * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -727,8 +664,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
      * If provided, this value must match the current value of the
      * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag] field or the request is
@@ -736,13 +671,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string etag = 2; - * * @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; @@ -751,8 +686,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * If provided, this value must match the current value of the
      * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag] field or the request is
@@ -760,14 +693,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2; - * * @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 { @@ -775,8 +709,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * If provided, this value must match the current value of the
      * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag] field or the request is
@@ -784,22 +716,20 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 2; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * If provided, this value must match the current value of the
      * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag] field or the request is
@@ -807,18 +737,15 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 2; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * If provided, this value must match the current value of the
      * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag] field or the request is
@@ -826,25 +753,23 @@ public Builder clearEtag() {
      * 
* * string etag = 2; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * If set to true, any Restores below this RestorePlan will also be deleted.
      * Otherwise, the request will only succeed if the RestorePlan has no
@@ -852,7 +777,6 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
      * 
* * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -860,8 +784,6 @@ public boolean getForce() { return force_; } /** - * - * *
      * If set to true, any Restores below this RestorePlan will also be deleted.
      * Otherwise, the request will only succeed if the RestorePlan has no
@@ -869,19 +791,16 @@ public boolean getForce() {
      * 
* * bool force = 3; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** - * - * *
      * If set to true, any Restores below this RestorePlan will also be deleted.
      * Otherwise, the request will only succeed if the RestorePlan has no
@@ -889,18 +808,17 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 3; - * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -910,12 +828,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.DeleteRestorePlanRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.DeleteRestorePlanRequest) private static final com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest(); } @@ -924,16 +842,16 @@ public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRestorePlanRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteRestorePlanRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRestorePlanRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteRestorePlanRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -948,4 +866,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequestOrBuilder.java index 17cfe84..263c272 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface DeleteRestorePlanRequestOrBuilder - extends +public interface DeleteRestorePlanRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.DeleteRestorePlanRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Fully qualified RestorePlan name.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * - * 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. Fully qualified RestorePlan name.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * - * 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 provided, this value must match the current value of the
    * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag] field or the request is
@@ -64,13 +37,10 @@ public interface DeleteRestorePlanRequestOrBuilder
    * 
* * string etag = 2; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * If provided, this value must match the current value of the
    * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag] field or the request is
@@ -78,14 +48,12 @@ public interface DeleteRestorePlanRequestOrBuilder
    * 
* * string etag = 2; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * If set to true, any Restores below this RestorePlan will also be deleted.
    * Otherwise, the request will only succeed if the RestorePlan has no
@@ -93,7 +61,6 @@ public interface DeleteRestorePlanRequestOrBuilder
    * 
* * bool force = 3; - * * @return The force. */ boolean getForce(); diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequest.java similarity index 69% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequest.java index 175e50b..657fc24 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for DeleteRestore.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.DeleteRestoreRequest} */ -public final class DeleteRestoreRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteRestoreRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.DeleteRestoreRequest) DeleteRestoreRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteRestoreRequest.newBuilder() to construct. private DeleteRestoreRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteRestoreRequest() { name_ = ""; etag_ = ""; @@ -44,15 +26,16 @@ private DeleteRestoreRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteRestoreRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteRestoreRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private DeleteRestoreRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - case 24: - { - force_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + etag_ = s; + break; + } + case 24: { + + force_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private DeleteRestoreRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.DeleteRestoreRequest.class, - com.google.cloud.gkebackup.v1.DeleteRestoreRequest.Builder.class); + com.google.cloud.gkebackup.v1.DeleteRestoreRequest.class, com.google.cloud.gkebackup.v1.DeleteRestoreRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Full name of the Restore
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* - * - * 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 @@ -148,32 +122,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. Full name of the Restore
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* - * - * 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 { @@ -184,8 +156,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ETAG_FIELD_NUMBER = 2; private volatile java.lang.Object etag_; /** - * - * *
    * If provided, this value must match the current value of the
    * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or the request is
@@ -193,7 +163,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string etag = 2; - * * @return The etag. */ @java.lang.Override @@ -202,15 +171,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; } } /** - * - * *
    * If provided, this value must match the current value of the
    * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or the request is
@@ -218,15 +186,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 2; - * * @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 { @@ -237,8 +206,6 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_; /** - * - * *
    * If set to true, any VolumeRestores below this restore will also be deleted.
    * Otherwise, the request will only succeed if the restore has no
@@ -246,7 +213,6 @@ public com.google.protobuf.ByteString getEtagBytes() {
    * 
* * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -255,7 +221,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -293,7 +259,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, force_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -303,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.DeleteRestoreRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.DeleteRestoreRequest other = - (com.google.cloud.gkebackup.v1.DeleteRestoreRequest) obj; + com.google.cloud.gkebackup.v1.DeleteRestoreRequest other = (com.google.cloud.gkebackup.v1.DeleteRestoreRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (getForce() != other.getForce()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (getForce() + != other.getForce()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -330,133 +299,125 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.DeleteRestoreRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 DeleteRestore.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.DeleteRestoreRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.DeleteRestoreRequest) com.google.cloud.gkebackup.v1.DeleteRestoreRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.DeleteRestoreRequest.class, - com.google.cloud.gkebackup.v1.DeleteRestoreRequest.Builder.class); + com.google.cloud.gkebackup.v1.DeleteRestoreRequest.class, com.google.cloud.gkebackup.v1.DeleteRestoreRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.DeleteRestoreRequest.newBuilder() @@ -464,15 +425,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -486,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor; } @java.lang.Override @@ -507,8 +469,7 @@ public com.google.cloud.gkebackup.v1.DeleteRestoreRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.DeleteRestoreRequest buildPartial() { - com.google.cloud.gkebackup.v1.DeleteRestoreRequest result = - new com.google.cloud.gkebackup.v1.DeleteRestoreRequest(this); + com.google.cloud.gkebackup.v1.DeleteRestoreRequest result = new com.google.cloud.gkebackup.v1.DeleteRestoreRequest(this); result.name_ = name_; result.etag_ = etag_; result.force_ = force_; @@ -520,39 +481,38 @@ public com.google.cloud.gkebackup.v1.DeleteRestoreRequest 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.cloud.gkebackup.v1.DeleteRestoreRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.DeleteRestoreRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.DeleteRestoreRequest)other); } else { super.mergeFrom(other); return this; @@ -560,8 +520,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.DeleteRestoreRequest other) { - if (other == com.google.cloud.gkebackup.v1.DeleteRestoreRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.DeleteRestoreRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -592,8 +551,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.DeleteRestoreRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.DeleteRestoreRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -605,23 +563,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Full name of the Restore
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * - * 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; @@ -630,24 +584,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Full name of the Restore
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * - * 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 { @@ -655,70 +606,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Full name of the Restore
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * - * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Full name of the Restore
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Full name of the Restore
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * - * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -726,8 +664,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
      * If provided, this value must match the current value of the
      * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or the request is
@@ -735,13 +671,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string etag = 2; - * * @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; @@ -750,8 +686,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * If provided, this value must match the current value of the
      * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or the request is
@@ -759,14 +693,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2; - * * @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 { @@ -774,8 +709,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * If provided, this value must match the current value of the
      * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or the request is
@@ -783,22 +716,20 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 2; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * If provided, this value must match the current value of the
      * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or the request is
@@ -806,18 +737,15 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 2; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * If provided, this value must match the current value of the
      * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or the request is
@@ -825,25 +753,23 @@ public Builder clearEtag() {
      * 
* * string etag = 2; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * If set to true, any VolumeRestores below this restore will also be deleted.
      * Otherwise, the request will only succeed if the restore has no
@@ -851,7 +777,6 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
      * 
* * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -859,8 +784,6 @@ public boolean getForce() { return force_; } /** - * - * *
      * If set to true, any VolumeRestores below this restore will also be deleted.
      * Otherwise, the request will only succeed if the restore has no
@@ -868,19 +791,16 @@ public boolean getForce() {
      * 
* * bool force = 3; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** - * - * *
      * If set to true, any VolumeRestores below this restore will also be deleted.
      * Otherwise, the request will only succeed if the restore has no
@@ -888,18 +808,17 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 3; - * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -909,12 +828,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.DeleteRestoreRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.DeleteRestoreRequest) private static final com.google.cloud.gkebackup.v1.DeleteRestoreRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.DeleteRestoreRequest(); } @@ -923,16 +842,16 @@ public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRestoreRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteRestoreRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRestoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteRestoreRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -947,4 +866,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.DeleteRestoreRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequestOrBuilder.java index cdb7643..50b1fbd 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface DeleteRestoreRequestOrBuilder - extends +public interface DeleteRestoreRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.DeleteRestoreRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Full name of the Restore
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* - * - * 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. Full name of the Restore
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* - * - * 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 provided, this value must match the current value of the
    * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or the request is
@@ -64,13 +37,10 @@ public interface DeleteRestoreRequestOrBuilder
    * 
* * string etag = 2; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * If provided, this value must match the current value of the
    * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or the request is
@@ -78,14 +48,12 @@ public interface DeleteRestoreRequestOrBuilder
    * 
* * string etag = 2; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * If set to true, any VolumeRestores below this restore will also be deleted.
    * Otherwise, the request will only succeed if the restore has no
@@ -93,7 +61,6 @@ public interface DeleteRestoreRequestOrBuilder
    * 
* * bool force = 3; - * * @return The force. */ boolean getForce(); diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKey.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKey.java similarity index 70% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKey.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKey.java index b727042..4db7b95 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKey.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKey.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/common.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Defined a customer managed encryption key that will be used to encrypt Backup
  * artifacts.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.gkebackup.v1.EncryptionKey}
  */
-public final class EncryptionKey extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class EncryptionKey extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.EncryptionKey)
     EncryptionKeyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use EncryptionKey.newBuilder() to construct.
   private EncryptionKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private EncryptionKey() {
     gcpKmsEncryptionKey_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new EncryptionKey();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private EncryptionKey(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,20 +54,19 @@ private EncryptionKey(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              gcpKmsEncryptionKey_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            gcpKmsEncryptionKey_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,40 +74,35 @@ private EncryptionKey(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkebackup.v1.CommonProto
-        .internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkebackup.v1.CommonProto
-        .internal_static_google_cloud_gkebackup_v1_EncryptionKey_fieldAccessorTable
+    return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_EncryptionKey_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkebackup.v1.EncryptionKey.class,
-            com.google.cloud.gkebackup.v1.EncryptionKey.Builder.class);
+            com.google.cloud.gkebackup.v1.EncryptionKey.class, com.google.cloud.gkebackup.v1.EncryptionKey.Builder.class);
   }
 
   public static final int GCP_KMS_ENCRYPTION_KEY_FIELD_NUMBER = 1;
   private volatile java.lang.Object gcpKmsEncryptionKey_;
   /**
-   *
-   *
    * 
    * Google Cloud KMS encryption key. Format:
    * projects/*/locations/*/keyRings/*/cryptoKeys/*
    * 
* * string gcp_kms_encryption_key = 1 [(.google.api.resource_reference) = { ... } - * * @return The gcpKmsEncryptionKey. */ @java.lang.Override @@ -134,30 +111,30 @@ public java.lang.String getGcpKmsEncryptionKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpKmsEncryptionKey_ = s; return s; } } /** - * - * *
    * Google Cloud KMS encryption key. Format:
    * projects/*/locations/*/keyRings/*/cryptoKeys/*
    * 
* * string gcp_kms_encryption_key = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for gcpKmsEncryptionKey. */ @java.lang.Override - public com.google.protobuf.ByteString getGcpKmsEncryptionKeyBytes() { + public com.google.protobuf.ByteString + getGcpKmsEncryptionKeyBytes() { java.lang.Object ref = gcpKmsEncryptionKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcpKmsEncryptionKey_ = b; return b; } else { @@ -166,7 +143,6 @@ public com.google.protobuf.ByteString getGcpKmsEncryptionKeyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,7 +154,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpKmsEncryptionKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcpKmsEncryptionKey_); } @@ -202,15 +179,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.EncryptionKey)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.EncryptionKey other = - (com.google.cloud.gkebackup.v1.EncryptionKey) obj; + com.google.cloud.gkebackup.v1.EncryptionKey other = (com.google.cloud.gkebackup.v1.EncryptionKey) obj; - if (!getGcpKmsEncryptionKey().equals(other.getGcpKmsEncryptionKey())) return false; + if (!getGcpKmsEncryptionKey() + .equals(other.getGcpKmsEncryptionKey())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,104 +206,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.EncryptionKey parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.EncryptionKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.EncryptionKey parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.EncryptionKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Defined a customer managed encryption key that will be used to encrypt Backup
    * artifacts.
@@ -334,23 +304,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.EncryptionKey}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.EncryptionKey)
       com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkebackup.v1.CommonProto
-          .internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkebackup.v1.CommonProto
-          .internal_static_google_cloud_gkebackup_v1_EncryptionKey_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_EncryptionKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.EncryptionKey.class,
-              com.google.cloud.gkebackup.v1.EncryptionKey.Builder.class);
+              com.google.cloud.gkebackup.v1.EncryptionKey.class, com.google.cloud.gkebackup.v1.EncryptionKey.Builder.class);
     }
 
     // Construct using com.google.cloud.gkebackup.v1.EncryptionKey.newBuilder()
@@ -358,15 +326,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -376,9 +345,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkebackup.v1.CommonProto
-          .internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor;
     }
 
     @java.lang.Override
@@ -397,8 +366,7 @@ public com.google.cloud.gkebackup.v1.EncryptionKey build() {
 
     @java.lang.Override
     public com.google.cloud.gkebackup.v1.EncryptionKey buildPartial() {
-      com.google.cloud.gkebackup.v1.EncryptionKey result =
-          new com.google.cloud.gkebackup.v1.EncryptionKey(this);
+      com.google.cloud.gkebackup.v1.EncryptionKey result = new com.google.cloud.gkebackup.v1.EncryptionKey(this);
       result.gcpKmsEncryptionKey_ = gcpKmsEncryptionKey_;
       onBuilt();
       return result;
@@ -408,39 +376,38 @@ public com.google.cloud.gkebackup.v1.EncryptionKey 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.cloud.gkebackup.v1.EncryptionKey) {
-        return mergeFrom((com.google.cloud.gkebackup.v1.EncryptionKey) other);
+        return mergeFrom((com.google.cloud.gkebackup.v1.EncryptionKey)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -484,21 +451,19 @@ public Builder mergeFrom(
 
     private java.lang.Object gcpKmsEncryptionKey_ = "";
     /**
-     *
-     *
      * 
      * Google Cloud KMS encryption key. Format:
      * projects/*/locations/*/keyRings/*/cryptoKeys/*
      * 
* * string gcp_kms_encryption_key = 1 [(.google.api.resource_reference) = { ... } - * * @return The gcpKmsEncryptionKey. */ public java.lang.String getGcpKmsEncryptionKey() { java.lang.Object ref = gcpKmsEncryptionKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpKmsEncryptionKey_ = s; return s; @@ -507,22 +472,21 @@ public java.lang.String getGcpKmsEncryptionKey() { } } /** - * - * *
      * Google Cloud KMS encryption key. Format:
      * projects/*/locations/*/keyRings/*/cryptoKeys/*
      * 
* * string gcp_kms_encryption_key = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for gcpKmsEncryptionKey. */ - public com.google.protobuf.ByteString getGcpKmsEncryptionKeyBytes() { + public com.google.protobuf.ByteString + getGcpKmsEncryptionKeyBytes() { java.lang.Object ref = gcpKmsEncryptionKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcpKmsEncryptionKey_ = b; return b; } else { @@ -530,71 +494,64 @@ public com.google.protobuf.ByteString getGcpKmsEncryptionKeyBytes() { } } /** - * - * *
      * Google Cloud KMS encryption key. Format:
      * projects/*/locations/*/keyRings/*/cryptoKeys/*
      * 
* * string gcp_kms_encryption_key = 1 [(.google.api.resource_reference) = { ... } - * * @param value The gcpKmsEncryptionKey to set. * @return This builder for chaining. */ - public Builder setGcpKmsEncryptionKey(java.lang.String value) { + public Builder setGcpKmsEncryptionKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcpKmsEncryptionKey_ = value; onChanged(); return this; } /** - * - * *
      * Google Cloud KMS encryption key. Format:
      * projects/*/locations/*/keyRings/*/cryptoKeys/*
      * 
* * string gcp_kms_encryption_key = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearGcpKmsEncryptionKey() { - + gcpKmsEncryptionKey_ = getDefaultInstance().getGcpKmsEncryptionKey(); onChanged(); return this; } /** - * - * *
      * Google Cloud KMS encryption key. Format:
      * projects/*/locations/*/keyRings/*/cryptoKeys/*
      * 
* * string gcp_kms_encryption_key = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for gcpKmsEncryptionKey to set. * @return This builder for chaining. */ - public Builder setGcpKmsEncryptionKeyBytes(com.google.protobuf.ByteString value) { + public Builder setGcpKmsEncryptionKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpKmsEncryptionKey_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -604,12 +561,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.EncryptionKey) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.EncryptionKey) private static final com.google.cloud.gkebackup.v1.EncryptionKey DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.EncryptionKey(); } @@ -618,16 +575,16 @@ public static com.google.cloud.gkebackup.v1.EncryptionKey getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EncryptionKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EncryptionKey(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EncryptionKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EncryptionKey(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -642,4 +599,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.EncryptionKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKeyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKeyOrBuilder.java similarity index 55% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKeyOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKeyOrBuilder.java index b08040d..c6817d1 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKeyOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKeyOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/common.proto package com.google.cloud.gkebackup.v1; -public interface EncryptionKeyOrBuilder - extends +public interface EncryptionKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.EncryptionKey) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Google Cloud KMS encryption key. Format:
    * projects/*/locations/*/keyRings/*/cryptoKeys/*
    * 
* * string gcp_kms_encryption_key = 1 [(.google.api.resource_reference) = { ... } - * * @return The gcpKmsEncryptionKey. */ java.lang.String getGcpKmsEncryptionKey(); /** - * - * *
    * Google Cloud KMS encryption key. Format:
    * projects/*/locations/*/keyRings/*/cryptoKeys/*
    * 
* * string gcp_kms_encryption_key = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for gcpKmsEncryptionKey. */ - com.google.protobuf.ByteString getGcpKmsEncryptionKeyBytes(); + com.google.protobuf.ByteString + getGcpKmsEncryptionKeyBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GKEBackupProto.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GKEBackupProto.java new file mode 100644 index 0000000..2e717cf --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GKEBackupProto.java @@ -0,0 +1,668 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/gkebackup.proto + +package com.google.cloud.gkebackup.v1; + +public final class GKEBackupProto { + private GKEBackupProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_GetBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/gkebackup/v1/gkebackup.pr" + + "oto\022\031google.cloud.gkebackup.v1\032\034google/a" + + "pi/annotations.proto\032\027google/api/client." + + "proto\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032&google/cloud/" + + "gkebackup/v1/backup.proto\032+google/cloud/" + + "gkebackup/v1/backup_plan.proto\032\'google/c" + + "loud/gkebackup/v1/restore.proto\032,google/" + + "cloud/gkebackup/v1/restore_plan.proto\032&g" + + "oogle/cloud/gkebackup/v1/volume.proto\032#g" + + "oogle/longrunning/operations.proto\032 goog" + + "le/protobuf/field_mask.proto\032\037google/pro" + + "tobuf/timestamp.proto\"\200\002\n\021OperationMetad" + + "ata\0224\n\013create_time\030\001 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022\023\n\006target\030\003" + + " \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_m" + + "essage\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellat" + + "ion\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003" + + "\"\262\001\n\027CreateBackupPlanRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022?\n\013backup_plan\030\002 \001(\0132%.google.cl" + + "oud.gkebackup.v1.BackupPlanB\003\340A\002\022\033\n\016back" + + "up_plan_id\030\003 \001(\tB\003\340A\002\"\234\001\n\026ListBackupPlan" + + "sRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locati" + + "ons.googleapis.com/Location\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001" + + "(\t\022\020\n\010order_by\030\005 \001(\t\"\204\001\n\027ListBackupPlans" + + "Response\022;\n\014backup_plans\030\001 \003(\0132%.google." + + "cloud.gkebackup.v1.BackupPlan\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\024G" + + "etBackupPlanRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A" + + "%\n#gkebackup.googleapis.com/BackupPlan\"\213" + + "\001\n\027UpdateBackupPlanRequest\022?\n\013backup_pla" + + "n\030\001 \001(\0132%.google.cloud.gkebackup.v1.Back" + + "upPlanB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMask\"b\n\027DeleteBackupPlan" + + "Request\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#gkebackup" + + ".googleapis.com/BackupPlan\022\014\n\004etag\030\002 \001(\t" + + "\"\230\001\n\023CreateBackupRequest\022;\n\006parent\030\001 \001(\t" + + "B+\340A\002\372A%\n#gkebackup.googleapis.com/Backu" + + "pPlan\0221\n\006backup\030\002 \001(\0132!.google.cloud.gke" + + "backup.v1.Backup\022\021\n\tbackup_id\030\003 \001(\t\"\232\001\n\022" + + "ListBackupsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372" + + "A%\n#gkebackup.googleapis.com/BackupPlan\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016" + + "\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"b\n\023List" + + "BackupsResponse\0222\n\007backups\030\001 \003(\0132!.googl" + + "e.cloud.gkebackup.v1.Backup\022\027\n\017next_page" + + "_token\030\002 \001(\t\"I\n\020GetBackupRequest\0225\n\004name" + + "\030\001 \001(\tB\'\340A\002\372A!\n\037gkebackup.googleapis.com" + + "/Backup\"~\n\023UpdateBackupRequest\0226\n\006backup" + + "\030\001 \001(\0132!.google.cloud.gkebackup.v1.Backu" + + "pB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.pro" + + "tobuf.FieldMask\"i\n\023DeleteBackupRequest\0225" + + "\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037gkebackup.googleap" + + "is.com/Backup\022\014\n\004etag\030\002 \001(\t\022\r\n\005force\030\003 \001" + + "(\010\"\234\001\n\030ListVolumeBackupsRequest\0227\n\006paren" + + "t\030\001 \001(\tB\'\340A\002\372A!\n\037gkebackup.googleapis.co" + + "m/Backup\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + + "n\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(" + + "\t\"u\n\031ListVolumeBackupsResponse\022?\n\016volume" + + "_backups\030\001 \003(\0132\'.google.cloud.gkebackup." + + "v1.VolumeBackup\022\027\n\017next_page_token\030\002 \001(\t" + + "\"U\n\026GetVolumeBackupRequest\022;\n\004name\030\001 \001(\t" + + "B-\340A\002\372A\'\n%gkebackup.googleapis.com/Volum" + + "eBackup\"\266\001\n\030CreateRestorePlanRequest\0229\n\006" + + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\022A\n\014restore_plan\030\002 \001(\0132&." + + "google.cloud.gkebackup.v1.RestorePlanB\003\340" + + "A\002\022\034\n\017restore_plan_id\030\003 \001(\tB\003\340A\002\"\235\001\n\027Lis" + + "tRestorePlansRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016" + + "\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\207\001\n\030Lis" + + "tRestorePlansResponse\022=\n\rrestore_plans\030\001" + + " \003(\0132&.google.cloud.gkebackup.v1.Restore" + + "Plan\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" + + "able\030\003 \003(\t\"S\n\025GetRestorePlanRequest\022:\n\004n" + + "ame\030\001 \001(\tB,\340A\002\372A&\n$gkebackup.googleapis." + + "com/RestorePlan\"\216\001\n\030UpdateRestorePlanReq" + + "uest\022A\n\014restore_plan\030\001 \001(\0132&.google.clou" + + "d.gkebackup.v1.RestorePlanB\003\340A\002\022/\n\013updat" + + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + + "\"s\n\030DeleteRestorePlanRequest\022:\n\004name\030\001 \001" + + "(\tB,\340A\002\372A&\n$gkebackup.googleapis.com/Res" + + "torePlan\022\014\n\004etag\030\002 \001(\t\022\r\n\005force\030\003 \001(\010\"\247\001" + + "\n\024CreateRestoreRequest\022<\n\006parent\030\001 \001(\tB," + + "\340A\002\372A&\n$gkebackup.googleapis.com/Restore" + + "Plan\0228\n\007restore\030\002 \001(\0132\".google.cloud.gke" + + "backup.v1.RestoreB\003\340A\002\022\027\n\nrestore_id\030\003 \001" + + "(\tB\003\340A\002\"\234\001\n\023ListRestoresRequest\022<\n\006paren" + + "t\030\001 \001(\tB,\340A\002\372A&\n$gkebackup.googleapis.co" + + "m/RestorePlan\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" + + "\030\005 \001(\t\"z\n\024ListRestoresResponse\0224\n\010restor" + + "es\030\001 \003(\0132\".google.cloud.gkebackup.v1.Res" + + "tore\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" + + "able\030\003 \003(\t\"K\n\021GetRestoreRequest\0226\n\004name\030" + + "\001 \001(\tB(\340A\002\372A\"\n gkebackup.googleapis.com/" + + "Restore\"\201\001\n\024UpdateRestoreRequest\0228\n\007rest" + + "ore\030\001 \001(\0132\".google.cloud.gkebackup.v1.Re" + + "storeB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google" + + ".protobuf.FieldMask\"k\n\024DeleteRestoreRequ" + + "est\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n gkebackup.goo" + + "gleapis.com/Restore\022\014\n\004etag\030\002 \001(\t\022\r\n\005for" + + "ce\030\003 \001(\010\"\236\001\n\031ListVolumeRestoresRequest\0228" + + "\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n gkebackup.google" + + "apis.com/Restore\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" + + "age_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order" + + "_by\030\005 \001(\t\"x\n\032ListVolumeRestoresResponse\022" + + "A\n\017volume_restores\030\001 \003(\0132(.google.cloud." + + "gkebackup.v1.VolumeRestore\022\027\n\017next_page_" + + "token\030\002 \001(\t\"W\n\027GetVolumeRestoreRequest\022<" + + "\n\004name\030\001 \001(\tB.\340A\002\372A(\n&gkebackup.googleap" + + "is.com/VolumeRestore2\305(\n\014BackupForGKE\022\362\001" + + "\n\020CreateBackupPlan\0222.google.cloud.gkebac" + + "kup.v1.CreateBackupPlanRequest\032\035.google." + + "longrunning.Operation\"\212\001\202\323\344\223\002>\"//v1/{par" + + "ent=projects/*/locations/*}/backupPlans:" + + "\013backup_plan\332A!parent,backup_plan,backup" + + "_plan_id\312A\037\n\nBackupPlan\022\021OperationMetada" + + "ta\022\272\001\n\017ListBackupPlans\0221.google.cloud.gk" + + "ebackup.v1.ListBackupPlansRequest\0322.goog" + + "le.cloud.gkebackup.v1.ListBackupPlansRes" + + "ponse\"@\202\323\344\223\0021\022//v1/{parent=projects/*/lo" + + "cations/*}/backupPlans\332A\006parent\022\247\001\n\rGetB" + + "ackupPlan\022/.google.cloud.gkebackup.v1.Ge" + + "tBackupPlanRequest\032%.google.cloud.gkebac" + + "kup.v1.BackupPlan\">\202\323\344\223\0021\022//v1/{name=pro" + + "jects/*/locations/*/backupPlans/*}\332A\004nam" + + "e\022\364\001\n\020UpdateBackupPlan\0222.google.cloud.gk" + + "ebackup.v1.UpdateBackupPlanRequest\032\035.goo" + + "gle.longrunning.Operation\"\214\001\202\323\344\223\002J2;/v1/" + + "{backup_plan.name=projects/*/locations/*" + + "/backupPlans/*}:\013backup_plan\332A\027backup_pl" + + "an,update_mask\312A\037\n\nBackupPlan\022\021Operation" + + "Metadata\022\322\001\n\020DeleteBackupPlan\0222.google.c" + + "loud.gkebackup.v1.DeleteBackupPlanReques" + + "t\032\035.google.longrunning.Operation\"k\202\323\344\223\0021" + + "*//v1/{name=projects/*/locations/*/backu" + + "pPlans/*}\332A\004name\312A*\n\025google.protobuf.Emp" + + "ty\022\021OperationMetadata\022\341\001\n\014CreateBackup\022." + + ".google.cloud.gkebackup.v1.CreateBackupR" + + "equest\032\035.google.longrunning.Operation\"\201\001" + + "\202\323\344\223\002C\"9/v1/{parent=projects/*/locations" + + "/*/backupPlans/*}/backups:\006backup\332A\027pare" + + "nt,backup,backup_id\312A\033\n\006Backup\022\021Operatio" + + "nMetadata\022\270\001\n\013ListBackups\022-.google.cloud" + + ".gkebackup.v1.ListBackupsRequest\032..googl" + + "e.cloud.gkebackup.v1.ListBackupsResponse" + + "\"J\202\323\344\223\002;\0229/v1/{parent=projects/*/locatio" + + "ns/*/backupPlans/*}/backups\332A\006parent\022\245\001\n" + + "\tGetBackup\022+.google.cloud.gkebackup.v1.G" + + "etBackupRequest\032!.google.cloud.gkebackup" + + ".v1.Backup\"H\202\323\344\223\002;\0229/v1/{name=projects/*" + + "/locations/*/backupPlans/*/backups/*}\332A\004" + + "name\022\343\001\n\014UpdateBackup\022..google.cloud.gke" + + "backup.v1.UpdateBackupRequest\032\035.google.l" + + "ongrunning.Operation\"\203\001\202\323\344\223\002J2@/v1/{back" + + "up.name=projects/*/locations/*/backupPla" + + "ns/*/backups/*}:\006backup\332A\022backup,update_" + + "mask\312A\033\n\006Backup\022\021OperationMetadata\022\324\001\n\014D" + + "eleteBackup\022..google.cloud.gkebackup.v1." + + "DeleteBackupRequest\032\035.google.longrunning" + + ".Operation\"u\202\323\344\223\002;*9/v1/{name=projects/*" + + "/locations/*/backupPlans/*/backups/*}\332A\004" + + "name\312A*\n\025google.protobuf.Empty\022\021Operatio" + + "nMetadata\022\332\001\n\021ListVolumeBackups\0223.google" + + ".cloud.gkebackup.v1.ListVolumeBackupsReq" + + "uest\0324.google.cloud.gkebackup.v1.ListVol" + + "umeBackupsResponse\"Z\202\323\344\223\002K\022I/v1/{parent=" + + "projects/*/locations/*/backupPlans/*/bac" + + "kups/*}/volumeBackups\332A\006parent\022\307\001\n\017GetVo" + + "lumeBackup\0221.google.cloud.gkebackup.v1.G" + + "etVolumeBackupRequest\032\'.google.cloud.gke" + + "backup.v1.VolumeBackup\"X\202\323\344\223\002K\022I/v1/{nam" + + "e=projects/*/locations/*/backupPlans/*/b" + + "ackups/*/volumeBackups/*}\332A\004name\022\371\001\n\021Cre" + + "ateRestorePlan\0223.google.cloud.gkebackup." + + "v1.CreateRestorePlanRequest\032\035.google.lon" + + "grunning.Operation\"\217\001\202\323\344\223\002@\"0/v1/{parent" + + "=projects/*/locations/*}/restorePlans:\014r" + + "estore_plan\332A#parent,restore_plan,restor" + + "e_plan_id\312A \n\013RestorePlan\022\021OperationMeta" + + "data\022\276\001\n\020ListRestorePlans\0222.google.cloud" + + ".gkebackup.v1.ListRestorePlansRequest\0323." + + "google.cloud.gkebackup.v1.ListRestorePla" + + "nsResponse\"A\202\323\344\223\0022\0220/v1/{parent=projects" + + "/*/locations/*}/restorePlans\332A\006parent\022\253\001" + + "\n\016GetRestorePlan\0220.google.cloud.gkebacku" + + "p.v1.GetRestorePlanRequest\032&.google.clou" + + "d.gkebackup.v1.RestorePlan\"?\202\323\344\223\0022\0220/v1/" + + "{name=projects/*/locations/*/restorePlan" + + "s/*}\332A\004name\022\373\001\n\021UpdateRestorePlan\0223.goog" + + "le.cloud.gkebackup.v1.UpdateRestorePlanR" + + "equest\032\035.google.longrunning.Operation\"\221\001" + + "\202\323\344\223\002M2=/v1/{restore_plan.name=projects/" + + "*/locations/*/restorePlans/*}:\014restore_p" + + "lan\332A\030restore_plan,update_mask\312A \n\013Resto" + + "rePlan\022\021OperationMetadata\022\325\001\n\021DeleteRest" + + "orePlan\0223.google.cloud.gkebackup.v1.Dele" + + "teRestorePlanRequest\032\035.google.longrunnin" + + "g.Operation\"l\202\323\344\223\0022*0/v1/{name=projects/" + + "*/locations/*/restorePlans/*}\332A\004name\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadat" + + "a\022\351\001\n\rCreateRestore\022/.google.cloud.gkeba" + + "ckup.v1.CreateRestoreRequest\032\035.google.lo" + + "ngrunning.Operation\"\207\001\202\323\344\223\002F\";/v1/{paren" + + "t=projects/*/locations/*/restorePlans/*}" + + "/restores:\007restore\332A\031parent,restore,rest" + + "ore_id\312A\034\n\007Restore\022\021OperationMetadata\022\275\001" + + "\n\014ListRestores\022..google.cloud.gkebackup." + + "v1.ListRestoresRequest\032/.google.cloud.gk" + + "ebackup.v1.ListRestoresResponse\"L\202\323\344\223\002=\022" + + ";/v1/{parent=projects/*/locations/*/rest" + + "orePlans/*}/restores\332A\006parent\022\252\001\n\nGetRes" + + "tore\022,.google.cloud.gkebackup.v1.GetRest" + + "oreRequest\032\".google.cloud.gkebackup.v1.R" + + "estore\"J\202\323\344\223\002=\022;/v1/{name=projects/*/loc" + + "ations/*/restorePlans/*/restores/*}\332A\004na" + + "me\022\353\001\n\rUpdateRestore\022/.google.cloud.gkeb" + + "ackup.v1.UpdateRestoreRequest\032\035.google.l" + + "ongrunning.Operation\"\211\001\202\323\344\223\002N2C/v1/{rest" + + "ore.name=projects/*/locations/*/restoreP" + + "lans/*/restores/*}:\007restore\332A\023restore,up" + + "date_mask\312A\034\n\007Restore\022\021OperationMetadata" + + "\022\330\001\n\rDeleteRestore\022/.google.cloud.gkebac" + + "kup.v1.DeleteRestoreRequest\032\035.google.lon" + + "grunning.Operation\"w\202\323\344\223\002=*;/v1/{name=pr" + + "ojects/*/locations/*/restorePlans/*/rest" + + "ores/*}\332A\004name\312A*\n\025google.protobuf.Empty" + + "\022\021OperationMetadata\022\340\001\n\022ListVolumeRestor" + + "es\0224.google.cloud.gkebackup.v1.ListVolum" + + "eRestoresRequest\0325.google.cloud.gkebacku" + + "p.v1.ListVolumeRestoresResponse\"]\202\323\344\223\002N\022" + + "L/v1/{parent=projects/*/locations/*/rest" + + "orePlans/*/restores/*}/volumeRestores\332A\006" + + "parent\022\315\001\n\020GetVolumeRestore\0222.google.clo" + + "ud.gkebackup.v1.GetVolumeRestoreRequest\032" + + "(.google.cloud.gkebackup.v1.VolumeRestor" + + "e\"[\202\323\344\223\002N\022L/v1/{name=projects/*/location" + + "s/*/restorePlans/*/restores/*/volumeRest" + + "ores/*}\332A\004name\032L\312A\030gkebackup.googleapis." + + "com\322A.https://www.googleapis.com/auth/cl" + + "oud-platformB\250\003\n\035com.google.cloud.gkebac" + + "kup.v1B\016GKEBackupProtoP\001ZBgoogle.golang." + + "org/genproto/googleapis/cloud/gkebackup/" + + "v1;gkebackup\252\002\031Google.Cloud.GkeBackup.V1" + + "\312\002\031Google\\Cloud\\GkeBackup\\V1\352\002\034Google::C" + + "loud::GkeBackup::V1\352A^\n container.google" + + "apis.com/Cluster\022:projects/{project}/loc" + + "ations/{location}/clusters/{cluster}\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sproj" + + "ects/{project}/locations/{location}/keyR" + + "ings/{key_ring}/cryptoKeys/{crypto_key}b" + + "\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.gkebackup.v1.BackupProto.getDescriptor(), + com.google.cloud.gkebackup.v1.BackupPlanProto.getDescriptor(), + com.google.cloud.gkebackup.v1.RestoreProto.getDescriptor(), + com.google.cloud.gkebackup.v1.RestorePlanProto.getDescriptor(), + com.google.cloud.gkebackup.v1.VolumeProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkebackup_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); + internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor, + new java.lang.String[] { "Parent", "BackupPlan", "BackupPlanId", }); + internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor, + new java.lang.String[] { "BackupPlans", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor, + new java.lang.String[] { "BackupPlan", "UpdateMask", }); + internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor, + new java.lang.String[] { "Name", "Etag", }); + internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor, + new java.lang.String[] { "Parent", "Backup", "BackupId", }); + internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor, + new java.lang.String[] { "Backups", "NextPageToken", }); + internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_gkebackup_v1_GetBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor, + new java.lang.String[] { "Backup", "UpdateMask", }); + internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor, + new java.lang.String[] { "Name", "Etag", "Force", }); + internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor, + new java.lang.String[] { "VolumeBackups", "NextPageToken", }); + internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor, + new java.lang.String[] { "Parent", "RestorePlan", "RestorePlanId", }); + internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor, + new java.lang.String[] { "RestorePlans", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor, + new java.lang.String[] { "RestorePlan", "UpdateMask", }); + internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor, + new java.lang.String[] { "Name", "Etag", "Force", }); + internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor, + new java.lang.String[] { "Parent", "Restore", "RestoreId", }); + internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor, + new java.lang.String[] { "Restores", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor, + new java.lang.String[] { "Restore", "UpdateMask", }); + internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor, + new java.lang.String[] { "Name", "Etag", "Force", }); + internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor, + new java.lang.String[] { "VolumeRestores", "NextPageToken", }); + internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor, + new java.lang.String[] { "Name", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.gkebackup.v1.BackupProto.getDescriptor(); + com.google.cloud.gkebackup.v1.BackupPlanProto.getDescriptor(); + com.google.cloud.gkebackup.v1.RestoreProto.getDescriptor(); + com.google.cloud.gkebackup.v1.RestorePlanProto.getDescriptor(); + com.google.cloud.gkebackup.v1.VolumeProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequest.java similarity index 65% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequest.java index 3b090c0..2b425ca 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for GetBackupPlan.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetBackupPlanRequest} */ -public final class GetBackupPlanRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetBackupPlanRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.GetBackupPlanRequest) GetBackupPlanRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetBackupPlanRequest.newBuilder() to construct. private GetBackupPlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetBackupPlanRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetBackupPlanRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetBackupPlanRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetBackupPlanRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetBackupPlanRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetBackupPlanRequest.class, - com.google.cloud.gkebackup.v1.GetBackupPlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetBackupPlanRequest.class, com.google.cloud.gkebackup.v1.GetBackupPlanRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Fully qualified BackupPlan name.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * - * 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 @@ -135,32 +110,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. Fully qualified BackupPlan name.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * - * 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.GetBackupPlanRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.GetBackupPlanRequest other = - (com.google.cloud.gkebackup.v1.GetBackupPlanRequest) obj; + com.google.cloud.gkebackup.v1.GetBackupPlanRequest other = (com.google.cloud.gkebackup.v1.GetBackupPlanRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,126 +206,117 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.GetBackupPlanRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetBackupPlan.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetBackupPlanRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.GetBackupPlanRequest) com.google.cloud.gkebackup.v1.GetBackupPlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetBackupPlanRequest.class, - com.google.cloud.gkebackup.v1.GetBackupPlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetBackupPlanRequest.class, com.google.cloud.gkebackup.v1.GetBackupPlanRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.GetBackupPlanRequest.newBuilder() @@ -360,15 +324,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor; } @java.lang.Override @@ -399,8 +364,7 @@ public com.google.cloud.gkebackup.v1.GetBackupPlanRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.GetBackupPlanRequest buildPartial() { - com.google.cloud.gkebackup.v1.GetBackupPlanRequest result = - new com.google.cloud.gkebackup.v1.GetBackupPlanRequest(this); + com.google.cloud.gkebackup.v1.GetBackupPlanRequest result = new com.google.cloud.gkebackup.v1.GetBackupPlanRequest(this); result.name_ = name_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.cloud.gkebackup.v1.GetBackupPlanRequest 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.cloud.gkebackup.v1.GetBackupPlanRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.GetBackupPlanRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.GetBackupPlanRequest)other); } else { super.mergeFrom(other); return this; @@ -450,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.GetBackupPlanRequest other) { - if (other == com.google.cloud.gkebackup.v1.GetBackupPlanRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.GetBackupPlanRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -475,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.GetBackupPlanRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.GetBackupPlanRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -488,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Fully qualified BackupPlan name.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * - * 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; @@ -513,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Fully qualified BackupPlan name.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * - * 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 { @@ -538,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Fully qualified BackupPlan name.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * - * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Fully qualified BackupPlan name.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Fully qualified BackupPlan name.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * - * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -618,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.GetBackupPlanRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.GetBackupPlanRequest) private static final com.google.cloud.gkebackup.v1.GetBackupPlanRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.GetBackupPlanRequest(); } @@ -632,16 +573,16 @@ public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBackupPlanRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetBackupPlanRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBackupPlanRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetBackupPlanRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -656,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.GetBackupPlanRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequestOrBuilder.java new file mode 100644 index 0000000..c55f514 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/gkebackup.proto + +package com.google.cloud.gkebackup.v1; + +public interface GetBackupPlanRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetBackupPlanRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Fully qualified BackupPlan name.
+   * Format: projects/*/locations/*/backupPlans/*
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Fully qualified BackupPlan name.
+   * Format: projects/*/locations/*/backupPlans/*
+   * 
+ * + * 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-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequest.java similarity index 66% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequest.java index ca61070..8868385 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for GetBackup.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetBackupRequest} */ -public final class GetBackupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetBackupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.GetBackupRequest) GetBackupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetBackupRequest.newBuilder() to construct. private GetBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetBackupRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetBackupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetBackupRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetBackupRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetBackupRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetBackupRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetBackupRequest.class, - com.google.cloud.gkebackup.v1.GetBackupRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetBackupRequest.class, com.google.cloud.gkebackup.v1.GetBackupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Full name of the Backup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*
    * 
* - * - * 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 @@ -135,32 +110,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. Full name of the Backup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*
    * 
* - * - * 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.GetBackupRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.GetBackupRequest other = - (com.google.cloud.gkebackup.v1.GetBackupRequest) obj; + com.google.cloud.gkebackup.v1.GetBackupRequest other = (com.google.cloud.gkebackup.v1.GetBackupRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -232,127 +205,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.GetBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.GetBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.GetBackupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.GetBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetBackup.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetBackupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.GetBackupRequest) com.google.cloud.gkebackup.v1.GetBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetBackupRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetBackupRequest.class, - com.google.cloud.gkebackup.v1.GetBackupRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetBackupRequest.class, com.google.cloud.gkebackup.v1.GetBackupRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.GetBackupRequest.newBuilder() @@ -360,15 +324,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor; } @java.lang.Override @@ -399,8 +364,7 @@ public com.google.cloud.gkebackup.v1.GetBackupRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.GetBackupRequest buildPartial() { - com.google.cloud.gkebackup.v1.GetBackupRequest result = - new com.google.cloud.gkebackup.v1.GetBackupRequest(this); + com.google.cloud.gkebackup.v1.GetBackupRequest result = new com.google.cloud.gkebackup.v1.GetBackupRequest(this); result.name_ = name_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.cloud.gkebackup.v1.GetBackupRequest 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.cloud.gkebackup.v1.GetBackupRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.GetBackupRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.GetBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -486,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Full name of the Backup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * - * 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; @@ -511,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Full name of the Backup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * - * 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 { @@ -536,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Full name of the Backup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * - * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Full name of the Backup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Full name of the Backup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * - * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -616,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.GetBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.GetBackupRequest) private static final com.google.cloud.gkebackup.v1.GetBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.GetBackupRequest(); } @@ -630,16 +573,16 @@ public static com.google.cloud.gkebackup.v1.GetBackupRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetBackupRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetBackupRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -654,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.GetBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequestOrBuilder.java new file mode 100644 index 0000000..ae48385 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/gkebackup.proto + +package com.google.cloud.gkebackup.v1; + +public interface GetBackupRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Full name of the Backup resource.
+   * Format: projects/*/locations/*/backupPlans/*/backups/*
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Full name of the Backup resource.
+   * Format: projects/*/locations/*/backupPlans/*/backups/*
+   * 
+ * + * 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-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequest.java similarity index 65% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequest.java index 8f8d08d..5b71f21 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for GetRestorePlan.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetRestorePlanRequest} */ -public final class GetRestorePlanRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetRestorePlanRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.GetRestorePlanRequest) GetRestorePlanRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetRestorePlanRequest.newBuilder() to construct. private GetRestorePlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetRestorePlanRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetRestorePlanRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetRestorePlanRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetRestorePlanRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetRestorePlanRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetRestorePlanRequest.class, - com.google.cloud.gkebackup.v1.GetRestorePlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetRestorePlanRequest.class, com.google.cloud.gkebackup.v1.GetRestorePlanRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Fully qualified RestorePlan name.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * - * 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 @@ -135,32 +110,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. Fully qualified RestorePlan name.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * - * 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.GetRestorePlanRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.GetRestorePlanRequest other = - (com.google.cloud.gkebackup.v1.GetRestorePlanRequest) obj; + com.google.cloud.gkebackup.v1.GetRestorePlanRequest other = (com.google.cloud.gkebackup.v1.GetRestorePlanRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,126 +206,117 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.GetRestorePlanRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetRestorePlan.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetRestorePlanRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.GetRestorePlanRequest) com.google.cloud.gkebackup.v1.GetRestorePlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetRestorePlanRequest.class, - com.google.cloud.gkebackup.v1.GetRestorePlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetRestorePlanRequest.class, com.google.cloud.gkebackup.v1.GetRestorePlanRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.GetRestorePlanRequest.newBuilder() @@ -360,15 +324,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor; } @java.lang.Override @@ -399,8 +364,7 @@ public com.google.cloud.gkebackup.v1.GetRestorePlanRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.GetRestorePlanRequest buildPartial() { - com.google.cloud.gkebackup.v1.GetRestorePlanRequest result = - new com.google.cloud.gkebackup.v1.GetRestorePlanRequest(this); + com.google.cloud.gkebackup.v1.GetRestorePlanRequest result = new com.google.cloud.gkebackup.v1.GetRestorePlanRequest(this); result.name_ = name_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.cloud.gkebackup.v1.GetRestorePlanRequest 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.cloud.gkebackup.v1.GetRestorePlanRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.GetRestorePlanRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.GetRestorePlanRequest)other); } else { super.mergeFrom(other); return this; @@ -450,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.GetRestorePlanRequest other) { - if (other == com.google.cloud.gkebackup.v1.GetRestorePlanRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.GetRestorePlanRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -475,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.GetRestorePlanRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.GetRestorePlanRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -488,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Fully qualified RestorePlan name.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * - * 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; @@ -513,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Fully qualified RestorePlan name.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * - * 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 { @@ -538,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Fully qualified RestorePlan name.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * - * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Fully qualified RestorePlan name.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Fully qualified RestorePlan name.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * - * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -618,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.GetRestorePlanRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.GetRestorePlanRequest) private static final com.google.cloud.gkebackup.v1.GetRestorePlanRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.GetRestorePlanRequest(); } @@ -632,16 +573,16 @@ public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRestorePlanRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetRestorePlanRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRestorePlanRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetRestorePlanRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -656,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.GetRestorePlanRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequestOrBuilder.java new file mode 100644 index 0000000..4476c58 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/gkebackup.proto + +package com.google.cloud.gkebackup.v1; + +public interface GetRestorePlanRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetRestorePlanRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Fully qualified RestorePlan name.
+   * Format: projects/*/locations/*/restorePlans/*
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Fully qualified RestorePlan name.
+   * Format: projects/*/locations/*/restorePlans/*
+   * 
+ * + * 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-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequest.java similarity index 66% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequest.java index 6b29aa5..919dc8f 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for GetRestore.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetRestoreRequest} */ -public final class GetRestoreRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetRestoreRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.GetRestoreRequest) GetRestoreRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetRestoreRequest.newBuilder() to construct. private GetRestoreRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetRestoreRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetRestoreRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetRestoreRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetRestoreRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetRestoreRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetRestoreRequest.class, - com.google.cloud.gkebackup.v1.GetRestoreRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetRestoreRequest.class, com.google.cloud.gkebackup.v1.GetRestoreRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the restore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* - * - * 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 @@ -135,32 +110,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 restore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* - * - * 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.GetRestoreRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.GetRestoreRequest other = - (com.google.cloud.gkebackup.v1.GetRestoreRequest) obj; + com.google.cloud.gkebackup.v1.GetRestoreRequest other = (com.google.cloud.gkebackup.v1.GetRestoreRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -232,127 +205,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.GetRestoreRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetRestore.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetRestoreRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.GetRestoreRequest) com.google.cloud.gkebackup.v1.GetRestoreRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetRestoreRequest.class, - com.google.cloud.gkebackup.v1.GetRestoreRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetRestoreRequest.class, com.google.cloud.gkebackup.v1.GetRestoreRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.GetRestoreRequest.newBuilder() @@ -360,15 +324,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor; } @java.lang.Override @@ -399,8 +364,7 @@ public com.google.cloud.gkebackup.v1.GetRestoreRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.GetRestoreRequest buildPartial() { - com.google.cloud.gkebackup.v1.GetRestoreRequest result = - new com.google.cloud.gkebackup.v1.GetRestoreRequest(this); + com.google.cloud.gkebackup.v1.GetRestoreRequest result = new com.google.cloud.gkebackup.v1.GetRestoreRequest(this); result.name_ = name_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.cloud.gkebackup.v1.GetRestoreRequest 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.cloud.gkebackup.v1.GetRestoreRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.GetRestoreRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.GetRestoreRequest)other); } else { super.mergeFrom(other); return this; @@ -450,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.GetRestoreRequest other) { - if (other == com.google.cloud.gkebackup.v1.GetRestoreRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.GetRestoreRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -487,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the restore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * - * 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; @@ -512,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the restore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * - * 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 { @@ -537,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the restore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * - * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the restore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the restore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * - * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -617,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.GetRestoreRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.GetRestoreRequest) private static final com.google.cloud.gkebackup.v1.GetRestoreRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.GetRestoreRequest(); } @@ -631,16 +573,16 @@ public static com.google.cloud.gkebackup.v1.GetRestoreRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRestoreRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetRestoreRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRestoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetRestoreRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -655,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.GetRestoreRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequestOrBuilder.java new file mode 100644 index 0000000..7f78b6c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/gkebackup.proto + +package com.google.cloud.gkebackup.v1; + +public interface GetRestoreRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetRestoreRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the restore resource.
+   * Format: projects/*/locations/*/restorePlans/*/restores/*
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the restore resource.
+   * Format: projects/*/locations/*/restorePlans/*/restores/*
+   * 
+ * + * 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-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequest.java similarity index 66% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequest.java index f12e05e..bb1efa7 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for GetVolumeBackup.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetVolumeBackupRequest} */ -public final class GetVolumeBackupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetVolumeBackupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.GetVolumeBackupRequest) GetVolumeBackupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetVolumeBackupRequest.newBuilder() to construct. private GetVolumeBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetVolumeBackupRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetVolumeBackupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetVolumeBackupRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetVolumeBackupRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetVolumeBackupRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.class, - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.class, com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Full name of the VolumeBackup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
    * 
* - * - * 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 @@ -135,32 +110,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. Full name of the VolumeBackup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
    * 
* - * - * 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.GetVolumeBackupRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest other = - (com.google.cloud.gkebackup.v1.GetVolumeBackupRequest) obj; + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest other = (com.google.cloud.gkebackup.v1.GetVolumeBackupRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,126 +206,117 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.GetVolumeBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetVolumeBackup.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetVolumeBackupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.GetVolumeBackupRequest) com.google.cloud.gkebackup.v1.GetVolumeBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.class, - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.class, com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.newBuilder() @@ -360,15 +324,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor; } @java.lang.Override @@ -399,8 +364,7 @@ public com.google.cloud.gkebackup.v1.GetVolumeBackupRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.GetVolumeBackupRequest buildPartial() { - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest result = - new com.google.cloud.gkebackup.v1.GetVolumeBackupRequest(this); + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest result = new com.google.cloud.gkebackup.v1.GetVolumeBackupRequest(this); result.name_ = name_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.cloud.gkebackup.v1.GetVolumeBackupRequest 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.cloud.gkebackup.v1.GetVolumeBackupRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.GetVolumeBackupRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.GetVolumeBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -450,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.GetVolumeBackupRequest other) { - if (other == com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -475,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.GetVolumeBackupRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.GetVolumeBackupRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -488,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Full name of the VolumeBackup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
      * 
* - * - * 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; @@ -513,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Full name of the VolumeBackup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
      * 
* - * - * 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 { @@ -538,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Full name of the VolumeBackup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
      * 
* - * - * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Full name of the VolumeBackup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
      * 
* - * - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Full name of the VolumeBackup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
      * 
* - * - * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -618,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.GetVolumeBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.GetVolumeBackupRequest) private static final com.google.cloud.gkebackup.v1.GetVolumeBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.GetVolumeBackupRequest(); } @@ -632,16 +573,16 @@ public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetVolumeBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetVolumeBackupRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetVolumeBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetVolumeBackupRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -656,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.GetVolumeBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequestOrBuilder.java new file mode 100644 index 0000000..9a891ad --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/gkebackup.proto + +package com.google.cloud.gkebackup.v1; + +public interface GetVolumeBackupRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetVolumeBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Full name of the VolumeBackup resource.
+   * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Full name of the VolumeBackup resource.
+   * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
+   * 
+ * + * 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-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequest.java similarity index 65% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequest.java index ab8ac9b..d1d5806 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for GetVolumeRestore.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetVolumeRestoreRequest} */ -public final class GetVolumeRestoreRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetVolumeRestoreRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.GetVolumeRestoreRequest) GetVolumeRestoreRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetVolumeRestoreRequest.newBuilder() to construct. private GetVolumeRestoreRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetVolumeRestoreRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetVolumeRestoreRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetVolumeRestoreRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetVolumeRestoreRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetVolumeRestoreRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.class, - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.class, com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Full name of the VolumeRestore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
    * 
* - * - * 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 @@ -135,32 +110,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. Full name of the VolumeRestore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
    * 
* - * - * 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest other = - (com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest) obj; + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest other = (com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetVolumeRestore.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetVolumeRestoreRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.GetVolumeRestoreRequest) com.google.cloud.gkebackup.v1.GetVolumeRestoreRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.class, - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.class, com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.newBuilder() @@ -361,15 +324,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor; } @java.lang.Override @@ -400,8 +364,7 @@ public com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest buildPartial() { - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest result = - new com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest(this); + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest result = new com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest(this); result.name_ = name_; onBuilt(); return result; @@ -411,39 +374,38 @@ public com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest 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.cloud.gkebackup.v1.GetVolumeRestoreRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest)other); } else { super.mergeFrom(other); return this; @@ -451,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest other) { - if (other == com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -476,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -489,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Full name of the VolumeRestore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
      * 
* - * - * 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; @@ -514,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Full name of the VolumeRestore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
      * 
* - * - * 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 { @@ -539,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Full name of the VolumeRestore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
      * 
* - * - * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Full name of the VolumeRestore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
      * 
* - * - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Full name of the VolumeRestore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
      * 
* - * - * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -619,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.GetVolumeRestoreRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.GetVolumeRestoreRequest) private static final com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest(); } @@ -633,16 +573,16 @@ public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetVolumeRestoreRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetVolumeRestoreRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetVolumeRestoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetVolumeRestoreRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequestOrBuilder.java new file mode 100644 index 0000000..b3ff80c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/gkebackup.proto + +package com.google.cloud.gkebackup.v1; + +public interface GetVolumeRestoreRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetVolumeRestoreRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Full name of the VolumeRestore resource.
+   * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Full name of the VolumeRestore resource.
+   * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
+   * 
+ * + * 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-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequest.java similarity index 72% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequest.java index bef1553..d5929c1 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for ListBackupPlans.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListBackupPlansRequest} */ -public final class ListBackupPlansRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBackupPlansRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListBackupPlansRequest) ListBackupPlansRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBackupPlansRequest.newBuilder() to construct. private ListBackupPlansRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBackupPlansRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListBackupPlansRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBackupPlansRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListBackupPlansRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,46 +56,42 @@ private ListBackupPlansRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,42 +99,35 @@ private ListBackupPlansRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListBackupPlansRequest.class, - com.google.cloud.gkebackup.v1.ListBackupPlansRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListBackupPlansRequest.class, com.google.cloud.gkebackup.v1.ListBackupPlansRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The location that contains the BackupPlans to list.
    * Format: projects/*/locations/*
    * 
* - * - * string 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 @@ -164,32 +136,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The location that contains the BackupPlans to list.
    * Format: projects/*/locations/*
    * 
* - * - * string 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 { @@ -200,8 +170,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -212,7 +180,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -223,8 +190,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
@@ -235,7 +200,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -244,15 +208,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; } } /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
@@ -263,15 +226,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 { @@ -282,14 +246,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -298,29 +259,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -331,14 +292,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -347,29 +305,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -378,7 +336,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -390,7 +347,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -419,7 +377,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_); @@ -438,19 +397,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListBackupPlansRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListBackupPlansRequest other = - (com.google.cloud.gkebackup.v1.ListBackupPlansRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.gkebackup.v1.ListBackupPlansRequest other = (com.google.cloud.gkebackup.v1.ListBackupPlansRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -478,126 +441,117 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListBackupPlansRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListBackupPlans.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListBackupPlansRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListBackupPlansRequest) com.google.cloud.gkebackup.v1.ListBackupPlansRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListBackupPlansRequest.class, - com.google.cloud.gkebackup.v1.ListBackupPlansRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListBackupPlansRequest.class, com.google.cloud.gkebackup.v1.ListBackupPlansRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListBackupPlansRequest.newBuilder() @@ -605,15 +559,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -631,9 +586,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor; } @java.lang.Override @@ -652,8 +607,7 @@ public com.google.cloud.gkebackup.v1.ListBackupPlansRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListBackupPlansRequest buildPartial() { - com.google.cloud.gkebackup.v1.ListBackupPlansRequest result = - new com.google.cloud.gkebackup.v1.ListBackupPlansRequest(this); + com.google.cloud.gkebackup.v1.ListBackupPlansRequest result = new com.google.cloud.gkebackup.v1.ListBackupPlansRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -667,39 +621,38 @@ public com.google.cloud.gkebackup.v1.ListBackupPlansRequest 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.cloud.gkebackup.v1.ListBackupPlansRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListBackupPlansRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListBackupPlansRequest)other); } else { super.mergeFrom(other); return this; @@ -707,8 +660,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListBackupPlansRequest other) { - if (other == com.google.cloud.gkebackup.v1.ListBackupPlansRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.ListBackupPlansRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -747,8 +699,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.ListBackupPlansRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.ListBackupPlansRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -760,23 +711,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The location that contains the BackupPlans to list.
      * Format: projects/*/locations/*
      * 
* - * - * string 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; @@ -785,24 +732,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The location that contains the BackupPlans to list.
      * Format: projects/*/locations/*
      * 
* - * - * string 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 { @@ -810,79 +754,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The location that contains the BackupPlans to list.
      * Format: projects/*/locations/*
      * 
* - * - * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The location that contains the BackupPlans to list.
      * Format: projects/*/locations/*
      * 
* - * - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The location that contains the BackupPlans to list.
      * Format: projects/*/locations/*
      * 
* - * - * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -893,7 +822,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -901,8 +829,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -913,19 +839,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -936,11 +859,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -948,8 +870,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
@@ -960,13 +880,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; @@ -975,8 +895,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
@@ -987,14 +905,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 { @@ -1002,8 +921,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
@@ -1014,22 +931,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
@@ -1040,18 +955,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
@@ -1062,16 +974,16 @@ 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1079,20 +991,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1101,21 +1011,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1123,61 +1032,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1185,20 +1087,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1207,21 +1107,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1229,68 +1128,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1300,12 +1192,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListBackupPlansRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListBackupPlansRequest) private static final com.google.cloud.gkebackup.v1.ListBackupPlansRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListBackupPlansRequest(); } @@ -1314,16 +1206,16 @@ public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBackupPlansRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListBackupPlansRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupPlansRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListBackupPlansRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1338,4 +1230,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.ListBackupPlansRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequestOrBuilder.java index 8f7885c..1651421 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListBackupPlansRequestOrBuilder - extends +public interface ListBackupPlansRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListBackupPlansRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The location that contains the BackupPlans to list.
    * Format: projects/*/locations/*
    * 
* - * - * string 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 location that contains the BackupPlans to list.
    * Format: projects/*/locations/*
    * 
* - * - * string 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 target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -67,14 +40,11 @@ public interface ListBackupPlansRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
@@ -85,13 +55,10 @@ public interface ListBackupPlansRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
@@ -102,58 +69,48 @@ public interface ListBackupPlansRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponse.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponse.java similarity index 75% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponse.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponse.java index dc4f52a..eae965f 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Response message for ListBackupPlans.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListBackupPlansResponse} */ -public final class ListBackupPlansResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBackupPlansResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListBackupPlansResponse) ListBackupPlansResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBackupPlansResponse.newBuilder() to construct. private ListBackupPlansResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBackupPlansResponse() { backupPlans_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListBackupPlansResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBackupPlansResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListBackupPlansResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,41 +56,37 @@ private ListBackupPlansResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - backupPlans_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - backupPlans_.add( - input.readMessage( - com.google.cloud.gkebackup.v1.BackupPlan.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + backupPlans_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + backupPlans_.add( + input.readMessage(com.google.cloud.gkebackup.v1.BackupPlan.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,7 +94,8 @@ private ListBackupPlansResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { backupPlans_ = java.util.Collections.unmodifiableList(backupPlans_); @@ -127,27 +107,22 @@ private ListBackupPlansResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListBackupPlansResponse.class, - com.google.cloud.gkebackup.v1.ListBackupPlansResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListBackupPlansResponse.class, com.google.cloud.gkebackup.v1.ListBackupPlansResponse.Builder.class); } public static final int BACKUP_PLANS_FIELD_NUMBER = 1; private java.util.List backupPlans_; /** - * - * *
    * The list of BackupPlans matching the given criteria.
    * 
@@ -159,8 +134,6 @@ public java.util.List getBackupPlansLi return backupPlans_; } /** - * - * *
    * The list of BackupPlans matching the given criteria.
    * 
@@ -168,13 +141,11 @@ public java.util.List getBackupPlansLi * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBackupPlansOrBuilderList() { return backupPlans_; } /** - * - * *
    * The list of BackupPlans matching the given criteria.
    * 
@@ -186,8 +157,6 @@ public int getBackupPlansCount() { return backupPlans_.size(); } /** - * - * *
    * The list of BackupPlans matching the given criteria.
    * 
@@ -199,8 +168,6 @@ public com.google.cloud.gkebackup.v1.BackupPlan getBackupPlans(int index) { return backupPlans_.get(index); } /** - * - * *
    * The list of BackupPlans matching the given criteria.
    * 
@@ -208,15 +175,14 @@ public com.google.cloud.gkebackup.v1.BackupPlan getBackupPlans(int index) { * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ @java.lang.Override - public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlansOrBuilder(int index) { + public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlansOrBuilder( + int index) { return backupPlans_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token] in a subsequent
@@ -226,7 +192,6 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlansOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -235,15 +200,14 @@ 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 may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token] in a subsequent
@@ -253,15 +217,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -272,42 +237,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -315,23 +272,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -343,7 +297,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < backupPlans_.size(); i++) { output.writeMessage(1, backupPlans_.get(i)); } @@ -363,7 +318,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < backupPlans_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, backupPlans_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, backupPlans_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -384,17 +340,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListBackupPlansResponse)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListBackupPlansResponse other = - (com.google.cloud.gkebackup.v1.ListBackupPlansResponse) obj; + com.google.cloud.gkebackup.v1.ListBackupPlansResponse other = (com.google.cloud.gkebackup.v1.ListBackupPlansResponse) obj; - if (!getBackupPlansList().equals(other.getBackupPlansList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getBackupPlansList() + .equals(other.getBackupPlansList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -422,127 +380,117 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkebackup.v1.ListBackupPlansResponse prototype) { + public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListBackupPlansResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListBackupPlans.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListBackupPlansResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListBackupPlansResponse) com.google.cloud.gkebackup.v1.ListBackupPlansResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListBackupPlansResponse.class, - com.google.cloud.gkebackup.v1.ListBackupPlansResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListBackupPlansResponse.class, com.google.cloud.gkebackup.v1.ListBackupPlansResponse.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListBackupPlansResponse.newBuilder() @@ -550,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) { getBackupPlansFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -578,9 +526,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor; } @java.lang.Override @@ -599,8 +547,7 @@ public com.google.cloud.gkebackup.v1.ListBackupPlansResponse build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListBackupPlansResponse buildPartial() { - com.google.cloud.gkebackup.v1.ListBackupPlansResponse result = - new com.google.cloud.gkebackup.v1.ListBackupPlansResponse(this); + com.google.cloud.gkebackup.v1.ListBackupPlansResponse result = new com.google.cloud.gkebackup.v1.ListBackupPlansResponse(this); int from_bitField0_ = bitField0_; if (backupPlansBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -625,39 +572,38 @@ public com.google.cloud.gkebackup.v1.ListBackupPlansResponse 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.cloud.gkebackup.v1.ListBackupPlansResponse) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListBackupPlansResponse) other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListBackupPlansResponse)other); } else { super.mergeFrom(other); return this; @@ -665,8 +611,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListBackupPlansResponse other) { - if (other == com.google.cloud.gkebackup.v1.ListBackupPlansResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.ListBackupPlansResponse.getDefaultInstance()) return this; if (backupPlansBuilder_ == null) { if (!other.backupPlans_.isEmpty()) { if (backupPlans_.isEmpty()) { @@ -685,10 +630,9 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListBackupPlansResponse o backupPlansBuilder_ = null; backupPlans_ = other.backupPlans_; bitField0_ = (bitField0_ & ~0x00000001); - backupPlansBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBackupPlansFieldBuilder() - : null; + backupPlansBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBackupPlansFieldBuilder() : null; } else { backupPlansBuilder_.addAllMessages(other.backupPlans_); } @@ -727,8 +671,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.ListBackupPlansResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.ListBackupPlansResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -737,29 +680,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List backupPlans_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBackupPlansIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - backupPlans_ = - new java.util.ArrayList(backupPlans_); + backupPlans_ = new java.util.ArrayList(backupPlans_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan, - com.google.cloud.gkebackup.v1.BackupPlan.Builder, - com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> - backupPlansBuilder_; + com.google.cloud.gkebackup.v1.BackupPlan, com.google.cloud.gkebackup.v1.BackupPlan.Builder, com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> backupPlansBuilder_; /** - * - * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -774,8 +709,6 @@ public java.util.List getBackupPlansLi } } /** - * - * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -790,8 +723,6 @@ public int getBackupPlansCount() { } } /** - * - * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -806,15 +737,14 @@ public com.google.cloud.gkebackup.v1.BackupPlan getBackupPlans(int index) { } } /** - * - * *
      * The list of BackupPlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ - public Builder setBackupPlans(int index, com.google.cloud.gkebackup.v1.BackupPlan value) { + public Builder setBackupPlans( + int index, com.google.cloud.gkebackup.v1.BackupPlan value) { if (backupPlansBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -828,8 +758,6 @@ public Builder setBackupPlans(int index, com.google.cloud.gkebackup.v1.BackupPla return this; } /** - * - * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -848,8 +776,6 @@ public Builder setBackupPlans( return this; } /** - * - * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -870,15 +796,14 @@ public Builder addBackupPlans(com.google.cloud.gkebackup.v1.BackupPlan value) { return this; } /** - * - * *
      * The list of BackupPlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ - public Builder addBackupPlans(int index, com.google.cloud.gkebackup.v1.BackupPlan value) { + public Builder addBackupPlans( + int index, com.google.cloud.gkebackup.v1.BackupPlan value) { if (backupPlansBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -892,8 +817,6 @@ public Builder addBackupPlans(int index, com.google.cloud.gkebackup.v1.BackupPla return this; } /** - * - * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -912,8 +835,6 @@ public Builder addBackupPlans( return this; } /** - * - * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -932,8 +853,6 @@ public Builder addBackupPlans( return this; } /** - * - * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -944,7 +863,8 @@ public Builder addAllBackupPlans( java.lang.Iterable values) { if (backupPlansBuilder_ == null) { ensureBackupPlansIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backupPlans_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, backupPlans_); onChanged(); } else { backupPlansBuilder_.addAllMessages(values); @@ -952,8 +872,6 @@ public Builder addAllBackupPlans( return this; } /** - * - * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -971,8 +889,6 @@ public Builder clearBackupPlans() { return this; } /** - * - * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -990,44 +906,39 @@ public Builder removeBackupPlans(int index) { return this; } /** - * - * *
      * The list of BackupPlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ - public com.google.cloud.gkebackup.v1.BackupPlan.Builder getBackupPlansBuilder(int index) { + public com.google.cloud.gkebackup.v1.BackupPlan.Builder getBackupPlansBuilder( + int index) { return getBackupPlansFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of BackupPlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ - public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlansOrBuilder(int index) { + public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlansOrBuilder( + int index) { if (backupPlansBuilder_ == null) { - return backupPlans_.get(index); - } else { + return backupPlans_.get(index); } else { return backupPlansBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of BackupPlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ - public java.util.List - getBackupPlansOrBuilderList() { + public java.util.List + getBackupPlansOrBuilderList() { if (backupPlansBuilder_ != null) { return backupPlansBuilder_.getMessageOrBuilderList(); } else { @@ -1035,8 +946,6 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlansOrBuilder } } /** - * - * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -1044,48 +953,42 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlansOrBuilder * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ public com.google.cloud.gkebackup.v1.BackupPlan.Builder addBackupPlansBuilder() { - return getBackupPlansFieldBuilder() - .addBuilder(com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance()); + return getBackupPlansFieldBuilder().addBuilder( + com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance()); } /** - * - * *
      * The list of BackupPlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ - public com.google.cloud.gkebackup.v1.BackupPlan.Builder addBackupPlansBuilder(int index) { - return getBackupPlansFieldBuilder() - .addBuilder(index, com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.BackupPlan.Builder addBackupPlansBuilder( + int index) { + return getBackupPlansFieldBuilder().addBuilder( + index, com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance()); } /** - * - * *
      * The list of BackupPlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ - public java.util.List - getBackupPlansBuilderList() { + public java.util.List + getBackupPlansBuilderList() { return getBackupPlansFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan, - com.google.cloud.gkebackup.v1.BackupPlan.Builder, - com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> + com.google.cloud.gkebackup.v1.BackupPlan, com.google.cloud.gkebackup.v1.BackupPlan.Builder, com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> getBackupPlansFieldBuilder() { if (backupPlansBuilder_ == null) { - backupPlansBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan, - com.google.cloud.gkebackup.v1.BackupPlan.Builder, - com.google.cloud.gkebackup.v1.BackupPlanOrBuilder>( - backupPlans_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + backupPlansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.BackupPlan, com.google.cloud.gkebackup.v1.BackupPlan.Builder, com.google.cloud.gkebackup.v1.BackupPlanOrBuilder>( + backupPlans_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); backupPlans_ = null; } return backupPlansBuilder_; @@ -1093,8 +996,6 @@ public com.google.cloud.gkebackup.v1.BackupPlan.Builder addBackupPlansBuilder(in private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token] in a subsequent
@@ -1104,13 +1005,13 @@ public com.google.cloud.gkebackup.v1.BackupPlan.Builder addBackupPlansBuilder(in
      * 
* * 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; @@ -1119,8 +1020,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token] in a subsequent
@@ -1130,14 +1029,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1145,8 +1045,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token] in a subsequent
@@ -1156,22 +1054,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token] in a subsequent
@@ -1181,18 +1077,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token] in a subsequent
@@ -1202,67 +1095,57 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1270,90 +1153,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1363,30 +1236,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1396,12 +1267,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListBackupPlansResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListBackupPlansResponse) private static final com.google.cloud.gkebackup.v1.ListBackupPlansResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListBackupPlansResponse(); } @@ -1410,16 +1281,16 @@ public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBackupPlansResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListBackupPlansResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupPlansResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListBackupPlansResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1434,4 +1305,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.ListBackupPlansResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponseOrBuilder.java similarity index 74% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponseOrBuilder.java index 25f48c1..54caef0 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListBackupPlansResponseOrBuilder - extends +public interface ListBackupPlansResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListBackupPlansResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of BackupPlans matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ - java.util.List getBackupPlansList(); + java.util.List + getBackupPlansList(); /** - * - * *
    * The list of BackupPlans matching the given criteria.
    * 
@@ -44,8 +25,6 @@ public interface ListBackupPlansResponseOrBuilder */ com.google.cloud.gkebackup.v1.BackupPlan getBackupPlans(int index); /** - * - * *
    * The list of BackupPlans matching the given criteria.
    * 
@@ -54,30 +33,25 @@ public interface ListBackupPlansResponseOrBuilder */ int getBackupPlansCount(); /** - * - * *
    * The list of BackupPlans matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ - java.util.List + java.util.List getBackupPlansOrBuilderList(); /** - * - * *
    * The list of BackupPlans matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ - com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlansOrBuilder(int index); + com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlansOrBuilder( + int index); /** - * - * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token] in a subsequent
@@ -87,13 +61,10 @@ public interface ListBackupPlansResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token] in a subsequent
@@ -103,59 +74,49 @@ public interface ListBackupPlansResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequest.java similarity index 72% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequest.java index 25d4940..9e04cb3 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for ListBackups.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListBackupsRequest} */ -public final class ListBackupsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBackupsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListBackupsRequest) ListBackupsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBackupsRequest.newBuilder() to construct. private ListBackupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBackupsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListBackupsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBackupsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListBackupsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,46 +56,42 @@ private ListBackupsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,42 +99,35 @@ private ListBackupsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListBackupsRequest.class, - com.google.cloud.gkebackup.v1.ListBackupsRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListBackupsRequest.class, com.google.cloud.gkebackup.v1.ListBackupsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The BackupPlan that contains the Backups to list.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * - * string 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 @@ -164,32 +136,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The BackupPlan that contains the Backups to list.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * - * string 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 { @@ -200,8 +170,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -212,7 +180,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -223,8 +190,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
@@ -235,7 +200,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -244,15 +208,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; } } /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
@@ -263,15 +226,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 { @@ -282,14 +246,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -298,29 +259,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -331,14 +292,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -347,29 +305,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -378,7 +336,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -390,7 +347,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -419,7 +377,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_); @@ -438,19 +397,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListBackupsRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListBackupsRequest other = - (com.google.cloud.gkebackup.v1.ListBackupsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.gkebackup.v1.ListBackupsRequest other = (com.google.cloud.gkebackup.v1.ListBackupsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -477,127 +440,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListBackupsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListBackups.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListBackupsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListBackupsRequest) com.google.cloud.gkebackup.v1.ListBackupsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListBackupsRequest.class, - com.google.cloud.gkebackup.v1.ListBackupsRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListBackupsRequest.class, com.google.cloud.gkebackup.v1.ListBackupsRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListBackupsRequest.newBuilder() @@ -605,15 +559,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -631,9 +586,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor; } @java.lang.Override @@ -652,8 +607,7 @@ public com.google.cloud.gkebackup.v1.ListBackupsRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListBackupsRequest buildPartial() { - com.google.cloud.gkebackup.v1.ListBackupsRequest result = - new com.google.cloud.gkebackup.v1.ListBackupsRequest(this); + com.google.cloud.gkebackup.v1.ListBackupsRequest result = new com.google.cloud.gkebackup.v1.ListBackupsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -667,39 +621,38 @@ public com.google.cloud.gkebackup.v1.ListBackupsRequest 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.cloud.gkebackup.v1.ListBackupsRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListBackupsRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListBackupsRequest)other); } else { super.mergeFrom(other); return this; @@ -707,8 +660,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListBackupsRequest other) { - if (other == com.google.cloud.gkebackup.v1.ListBackupsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.ListBackupsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -759,23 +711,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The BackupPlan that contains the Backups to list.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -784,24 +732,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The BackupPlan that contains the Backups to list.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * - * string 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 { @@ -809,79 +754,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The BackupPlan that contains the Backups to list.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * - * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The BackupPlan that contains the Backups to list.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The BackupPlan that contains the Backups to list.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * - * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -892,7 +822,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -900,8 +829,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -912,19 +839,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -935,11 +859,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -947,8 +870,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
@@ -959,13 +880,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; @@ -974,8 +895,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
@@ -986,14 +905,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 { @@ -1001,8 +921,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
@@ -1013,22 +931,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
@@ -1039,18 +955,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
@@ -1061,16 +974,16 @@ 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1078,20 +991,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1100,21 +1011,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1122,61 +1032,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1184,20 +1087,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1206,21 +1107,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1228,68 +1128,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1299,12 +1192,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListBackupsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListBackupsRequest) private static final com.google.cloud.gkebackup.v1.ListBackupsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListBackupsRequest(); } @@ -1313,16 +1206,16 @@ public static com.google.cloud.gkebackup.v1.ListBackupsRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBackupsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListBackupsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListBackupsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1337,4 +1230,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.ListBackupsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequestOrBuilder.java index cd5ae6a..c01be2e 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListBackupsRequestOrBuilder - extends +public interface ListBackupsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListBackupsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The BackupPlan that contains the Backups to list.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * - * string 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 BackupPlan that contains the Backups to list.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * - * string 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 target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -67,14 +40,11 @@ public interface ListBackupsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
@@ -85,13 +55,10 @@ public interface ListBackupsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
@@ -102,58 +69,48 @@ public interface ListBackupsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponse.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponse.java similarity index 74% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponse.java index 613acb3..0294e56 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Response message for ListBackups.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListBackupsResponse} */ -public final class ListBackupsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBackupsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListBackupsResponse) ListBackupsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBackupsResponse.newBuilder() to construct. private ListBackupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBackupsResponse() { backups_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListBackupsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBackupsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListBackupsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,31 +55,28 @@ private ListBackupsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - backups_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - backups_.add( - input.readMessage( - com.google.cloud.gkebackup.v1.Backup.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + backups_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + backups_.add( + input.readMessage(com.google.cloud.gkebackup.v1.Backup.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,7 +84,8 @@ private ListBackupsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { backups_ = java.util.Collections.unmodifiableList(backups_); @@ -113,27 +94,22 @@ private ListBackupsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListBackupsResponse.class, - com.google.cloud.gkebackup.v1.ListBackupsResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListBackupsResponse.class, com.google.cloud.gkebackup.v1.ListBackupsResponse.Builder.class); } public static final int BACKUPS_FIELD_NUMBER = 1; private java.util.List backups_; /** - * - * *
    * The list of Backups matching the given criteria.
    * 
@@ -145,8 +121,6 @@ public java.util.List getBackupsList() { return backups_; } /** - * - * *
    * The list of Backups matching the given criteria.
    * 
@@ -154,13 +128,11 @@ public java.util.List getBackupsList() { * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBackupsOrBuilderList() { return backups_; } /** - * - * *
    * The list of Backups matching the given criteria.
    * 
@@ -172,8 +144,6 @@ public int getBackupsCount() { return backups_.size(); } /** - * - * *
    * The list of Backups matching the given criteria.
    * 
@@ -185,8 +155,6 @@ public com.google.cloud.gkebackup.v1.Backup getBackups(int index) { return backups_.get(index); } /** - * - * *
    * The list of Backups matching the given criteria.
    * 
@@ -194,15 +162,14 @@ public com.google.cloud.gkebackup.v1.Backup getBackups(int index) { * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ @java.lang.Override - public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupsOrBuilder(int index) { + public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupsOrBuilder( + int index) { return backups_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in
    * a subsequent `ListBackups` call to retrieve the next page of results. If
@@ -210,7 +177,6 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupsOrBuilder(int ind
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -219,15 +185,14 @@ 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 may be sent as [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in
    * a subsequent `ListBackups` call to retrieve the next page of results. If
@@ -235,15 +200,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -252,7 +218,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +229,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < backups_.size(); i++) { output.writeMessage(1, backups_.get(i)); } @@ -281,7 +247,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < backups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, backups_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, backups_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -294,16 +261,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListBackupsResponse)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListBackupsResponse other = - (com.google.cloud.gkebackup.v1.ListBackupsResponse) obj; + com.google.cloud.gkebackup.v1.ListBackupsResponse other = (com.google.cloud.gkebackup.v1.ListBackupsResponse) obj; - if (!getBackupsList().equals(other.getBackupsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getBackupsList() + .equals(other.getBackupsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,126 +295,117 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListBackupsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListBackups.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListBackupsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListBackupsResponse) com.google.cloud.gkebackup.v1.ListBackupsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListBackupsResponse.class, - com.google.cloud.gkebackup.v1.ListBackupsResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListBackupsResponse.class, com.google.cloud.gkebackup.v1.ListBackupsResponse.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListBackupsResponse.newBuilder() @@ -454,17 +413,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) { getBackupsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +439,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor; } @java.lang.Override @@ -501,8 +460,7 @@ public com.google.cloud.gkebackup.v1.ListBackupsResponse build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListBackupsResponse buildPartial() { - com.google.cloud.gkebackup.v1.ListBackupsResponse result = - new com.google.cloud.gkebackup.v1.ListBackupsResponse(this); + com.google.cloud.gkebackup.v1.ListBackupsResponse result = new com.google.cloud.gkebackup.v1.ListBackupsResponse(this); int from_bitField0_ = bitField0_; if (backupsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -522,39 +480,38 @@ public com.google.cloud.gkebackup.v1.ListBackupsResponse 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.cloud.gkebackup.v1.ListBackupsResponse) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListBackupsResponse) other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListBackupsResponse)other); } else { super.mergeFrom(other); return this; @@ -562,8 +519,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListBackupsResponse other) { - if (other == com.google.cloud.gkebackup.v1.ListBackupsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.ListBackupsResponse.getDefaultInstance()) return this; if (backupsBuilder_ == null) { if (!other.backups_.isEmpty()) { if (backups_.isEmpty()) { @@ -582,10 +538,9 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListBackupsResponse other backupsBuilder_ = null; backups_ = other.backups_; bitField0_ = (bitField0_ & ~0x00000001); - backupsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBackupsFieldBuilder() - : null; + backupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBackupsFieldBuilder() : null; } else { backupsBuilder_.addAllMessages(other.backups_); } @@ -614,8 +569,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.ListBackupsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.ListBackupsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -624,28 +578,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List backups_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBackupsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { backups_ = new java.util.ArrayList(backups_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup, - com.google.cloud.gkebackup.v1.Backup.Builder, - com.google.cloud.gkebackup.v1.BackupOrBuilder> - backupsBuilder_; + com.google.cloud.gkebackup.v1.Backup, com.google.cloud.gkebackup.v1.Backup.Builder, com.google.cloud.gkebackup.v1.BackupOrBuilder> backupsBuilder_; /** - * - * *
      * The list of Backups matching the given criteria.
      * 
@@ -660,8 +607,6 @@ public java.util.List getBackupsList() { } } /** - * - * *
      * The list of Backups matching the given criteria.
      * 
@@ -676,8 +621,6 @@ public int getBackupsCount() { } } /** - * - * *
      * The list of Backups matching the given criteria.
      * 
@@ -692,15 +635,14 @@ public com.google.cloud.gkebackup.v1.Backup getBackups(int index) { } } /** - * - * *
      * The list of Backups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - public Builder setBackups(int index, com.google.cloud.gkebackup.v1.Backup value) { + public Builder setBackups( + int index, com.google.cloud.gkebackup.v1.Backup value) { if (backupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -714,8 +656,6 @@ public Builder setBackups(int index, com.google.cloud.gkebackup.v1.Backup value) return this; } /** - * - * *
      * The list of Backups matching the given criteria.
      * 
@@ -734,8 +674,6 @@ public Builder setBackups( return this; } /** - * - * *
      * The list of Backups matching the given criteria.
      * 
@@ -756,15 +694,14 @@ public Builder addBackups(com.google.cloud.gkebackup.v1.Backup value) { return this; } /** - * - * *
      * The list of Backups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - public Builder addBackups(int index, com.google.cloud.gkebackup.v1.Backup value) { + public Builder addBackups( + int index, com.google.cloud.gkebackup.v1.Backup value) { if (backupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -778,15 +715,14 @@ public Builder addBackups(int index, com.google.cloud.gkebackup.v1.Backup value) return this; } /** - * - * *
      * The list of Backups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - public Builder addBackups(com.google.cloud.gkebackup.v1.Backup.Builder builderForValue) { + public Builder addBackups( + com.google.cloud.gkebackup.v1.Backup.Builder builderForValue) { if (backupsBuilder_ == null) { ensureBackupsIsMutable(); backups_.add(builderForValue.build()); @@ -797,8 +733,6 @@ public Builder addBackups(com.google.cloud.gkebackup.v1.Backup.Builder builderFo return this; } /** - * - * *
      * The list of Backups matching the given criteria.
      * 
@@ -817,8 +751,6 @@ public Builder addBackups( return this; } /** - * - * *
      * The list of Backups matching the given criteria.
      * 
@@ -829,7 +761,8 @@ public Builder addAllBackups( java.lang.Iterable values) { if (backupsBuilder_ == null) { ensureBackupsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backups_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, backups_); onChanged(); } else { backupsBuilder_.addAllMessages(values); @@ -837,8 +770,6 @@ public Builder addAllBackups( return this; } /** - * - * *
      * The list of Backups matching the given criteria.
      * 
@@ -856,8 +787,6 @@ public Builder clearBackups() { return this; } /** - * - * *
      * The list of Backups matching the given criteria.
      * 
@@ -875,44 +804,39 @@ public Builder removeBackups(int index) { return this; } /** - * - * *
      * The list of Backups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - public com.google.cloud.gkebackup.v1.Backup.Builder getBackupsBuilder(int index) { + public com.google.cloud.gkebackup.v1.Backup.Builder getBackupsBuilder( + int index) { return getBackupsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of Backups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupsOrBuilder(int index) { + public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupsOrBuilder( + int index) { if (backupsBuilder_ == null) { - return backups_.get(index); - } else { + return backups_.get(index); } else { return backupsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of Backups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - public java.util.List - getBackupsOrBuilderList() { + public java.util.List + getBackupsOrBuilderList() { if (backupsBuilder_ != null) { return backupsBuilder_.getMessageOrBuilderList(); } else { @@ -920,8 +844,6 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupsOrBuilder(int ind } } /** - * - * *
      * The list of Backups matching the given criteria.
      * 
@@ -929,47 +851,42 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupsOrBuilder(int ind * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ public com.google.cloud.gkebackup.v1.Backup.Builder addBackupsBuilder() { - return getBackupsFieldBuilder() - .addBuilder(com.google.cloud.gkebackup.v1.Backup.getDefaultInstance()); + return getBackupsFieldBuilder().addBuilder( + com.google.cloud.gkebackup.v1.Backup.getDefaultInstance()); } /** - * - * *
      * The list of Backups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - public com.google.cloud.gkebackup.v1.Backup.Builder addBackupsBuilder(int index) { - return getBackupsFieldBuilder() - .addBuilder(index, com.google.cloud.gkebackup.v1.Backup.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.Backup.Builder addBackupsBuilder( + int index) { + return getBackupsFieldBuilder().addBuilder( + index, com.google.cloud.gkebackup.v1.Backup.getDefaultInstance()); } /** - * - * *
      * The list of Backups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - public java.util.List getBackupsBuilderList() { + public java.util.List + getBackupsBuilderList() { return getBackupsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup, - com.google.cloud.gkebackup.v1.Backup.Builder, - com.google.cloud.gkebackup.v1.BackupOrBuilder> + com.google.cloud.gkebackup.v1.Backup, com.google.cloud.gkebackup.v1.Backup.Builder, com.google.cloud.gkebackup.v1.BackupOrBuilder> getBackupsFieldBuilder() { if (backupsBuilder_ == null) { - backupsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup, - com.google.cloud.gkebackup.v1.Backup.Builder, - com.google.cloud.gkebackup.v1.BackupOrBuilder>( - backups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + backupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.Backup, com.google.cloud.gkebackup.v1.Backup.Builder, com.google.cloud.gkebackup.v1.BackupOrBuilder>( + backups_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); backups_ = null; } return backupsBuilder_; @@ -977,8 +894,6 @@ public java.util.List getBackupsBu private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in
      * a subsequent `ListBackups` call to retrieve the next page of results. If
@@ -986,13 +901,13 @@ public java.util.List getBackupsBu
      * 
* * 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; @@ -1001,8 +916,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in
      * a subsequent `ListBackups` call to retrieve the next page of results. If
@@ -1010,14 +923,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1025,8 +939,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in
      * a subsequent `ListBackups` call to retrieve the next page of results. If
@@ -1034,22 +946,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in
      * a subsequent `ListBackups` call to retrieve the next page of results. If
@@ -1057,18 +967,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in
      * a subsequent `ListBackups` call to retrieve the next page of results. If
@@ -1076,23 +983,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1102,12 +1009,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListBackupsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListBackupsResponse) private static final com.google.cloud.gkebackup.v1.ListBackupsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListBackupsResponse(); } @@ -1116,16 +1023,16 @@ public static com.google.cloud.gkebackup.v1.ListBackupsResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBackupsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListBackupsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListBackupsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1140,4 +1047,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.ListBackupsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponseOrBuilder.java index 694dd73..96b4cd0 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListBackupsResponseOrBuilder - extends +public interface ListBackupsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListBackupsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of Backups matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - java.util.List getBackupsList(); + java.util.List + getBackupsList(); /** - * - * *
    * The list of Backups matching the given criteria.
    * 
@@ -44,8 +25,6 @@ public interface ListBackupsResponseOrBuilder */ com.google.cloud.gkebackup.v1.Backup getBackups(int index); /** - * - * *
    * The list of Backups matching the given criteria.
    * 
@@ -54,29 +33,25 @@ public interface ListBackupsResponseOrBuilder */ int getBackupsCount(); /** - * - * *
    * The list of Backups matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - java.util.List getBackupsOrBuilderList(); + java.util.List + getBackupsOrBuilderList(); /** - * - * *
    * The list of Backups matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupsOrBuilder(int index); + com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupsOrBuilder( + int index); /** - * - * *
    * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in
    * a subsequent `ListBackups` call to retrieve the next page of results. If
@@ -84,13 +59,10 @@ public interface ListBackupsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in
    * a subsequent `ListBackups` call to retrieve the next page of results. If
@@ -98,8 +70,8 @@ public interface ListBackupsResponseOrBuilder
    * 
* * 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-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequest.java similarity index 72% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequest.java index 098c4c3..b5b4e78 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for ListRestorePlans.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListRestorePlansRequest} */ -public final class ListRestorePlansRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRestorePlansRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListRestorePlansRequest) ListRestorePlansRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRestorePlansRequest.newBuilder() to construct. private ListRestorePlansRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRestorePlansRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListRestorePlansRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRestorePlansRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListRestorePlansRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,46 +56,42 @@ private ListRestorePlansRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,42 +99,35 @@ private ListRestorePlansRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListRestorePlansRequest.class, - com.google.cloud.gkebackup.v1.ListRestorePlansRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListRestorePlansRequest.class, com.google.cloud.gkebackup.v1.ListRestorePlansRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The location that contains the RestorePlans to list.
    * Format: projects/*/locations/*
    * 
* - * - * string 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 @@ -164,32 +136,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The location that contains the RestorePlans to list.
    * Format: projects/*/locations/*
    * 
* - * - * string 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 { @@ -200,8 +170,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -212,7 +180,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -223,8 +190,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
@@ -235,7 +200,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -244,15 +208,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; } } /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
@@ -263,15 +226,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 { @@ -282,14 +246,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -298,29 +259,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -331,14 +292,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -347,29 +305,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -378,7 +336,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -390,7 +347,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -419,7 +377,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_); @@ -438,19 +397,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListRestorePlansRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListRestorePlansRequest other = - (com.google.cloud.gkebackup.v1.ListRestorePlansRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.gkebackup.v1.ListRestorePlansRequest other = (com.google.cloud.gkebackup.v1.ListRestorePlansRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -478,127 +441,117 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkebackup.v1.ListRestorePlansRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListRestorePlansRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListRestorePlans.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListRestorePlansRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListRestorePlansRequest) com.google.cloud.gkebackup.v1.ListRestorePlansRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListRestorePlansRequest.class, - com.google.cloud.gkebackup.v1.ListRestorePlansRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListRestorePlansRequest.class, com.google.cloud.gkebackup.v1.ListRestorePlansRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListRestorePlansRequest.newBuilder() @@ -606,15 +559,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -632,9 +586,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor; } @java.lang.Override @@ -653,8 +607,7 @@ public com.google.cloud.gkebackup.v1.ListRestorePlansRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListRestorePlansRequest buildPartial() { - com.google.cloud.gkebackup.v1.ListRestorePlansRequest result = - new com.google.cloud.gkebackup.v1.ListRestorePlansRequest(this); + com.google.cloud.gkebackup.v1.ListRestorePlansRequest result = new com.google.cloud.gkebackup.v1.ListRestorePlansRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -668,39 +621,38 @@ public com.google.cloud.gkebackup.v1.ListRestorePlansRequest 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.cloud.gkebackup.v1.ListRestorePlansRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListRestorePlansRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListRestorePlansRequest)other); } else { super.mergeFrom(other); return this; @@ -708,8 +660,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListRestorePlansRequest other) { - if (other == com.google.cloud.gkebackup.v1.ListRestorePlansRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.ListRestorePlansRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -748,8 +699,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.ListRestorePlansRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.ListRestorePlansRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -761,23 +711,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The location that contains the RestorePlans to list.
      * Format: projects/*/locations/*
      * 
* - * - * string 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; @@ -786,24 +732,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The location that contains the RestorePlans to list.
      * Format: projects/*/locations/*
      * 
* - * - * string 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 { @@ -811,79 +754,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The location that contains the RestorePlans to list.
      * Format: projects/*/locations/*
      * 
* - * - * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The location that contains the RestorePlans to list.
      * Format: projects/*/locations/*
      * 
* - * - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The location that contains the RestorePlans to list.
      * Format: projects/*/locations/*
      * 
* - * - * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -894,7 +822,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -902,8 +829,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -914,19 +839,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -937,11 +859,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -949,8 +870,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
@@ -961,13 +880,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; @@ -976,8 +895,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
@@ -988,14 +905,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 { @@ -1003,8 +921,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
@@ -1015,22 +931,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
@@ -1041,18 +955,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
@@ -1063,16 +974,16 @@ 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1080,20 +991,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1102,21 +1011,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1124,61 +1032,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1186,20 +1087,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1208,21 +1107,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1230,68 +1128,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1301,12 +1192,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListRestorePlansRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListRestorePlansRequest) private static final com.google.cloud.gkebackup.v1.ListRestorePlansRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListRestorePlansRequest(); } @@ -1315,16 +1206,16 @@ public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRestorePlansRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRestorePlansRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRestorePlansRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRestorePlansRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1339,4 +1230,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.ListRestorePlansRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequestOrBuilder.java index c925451..2d225a4 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListRestorePlansRequestOrBuilder - extends +public interface ListRestorePlansRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListRestorePlansRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The location that contains the RestorePlans to list.
    * Format: projects/*/locations/*
    * 
* - * - * string 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 location that contains the RestorePlans to list.
    * Format: projects/*/locations/*
    * 
* - * - * string 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 target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -67,14 +40,11 @@ public interface ListRestorePlansRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
@@ -85,13 +55,10 @@ public interface ListRestorePlansRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
@@ -102,58 +69,48 @@ public interface ListRestorePlansRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponse.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponse.java similarity index 75% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponse.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponse.java index 763c126..4e39874 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Response message for ListRestorePlans.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListRestorePlansResponse} */ -public final class ListRestorePlansResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRestorePlansResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListRestorePlansResponse) ListRestorePlansResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRestorePlansResponse.newBuilder() to construct. private ListRestorePlansResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRestorePlansResponse() { restorePlans_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListRestorePlansResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRestorePlansResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListRestorePlansResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,42 +56,37 @@ private ListRestorePlansResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - restorePlans_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - restorePlans_.add( - input.readMessage( - com.google.cloud.gkebackup.v1.RestorePlan.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + restorePlans_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + restorePlans_.add( + input.readMessage(com.google.cloud.gkebackup.v1.RestorePlan.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,7 +94,8 @@ private ListRestorePlansResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { restorePlans_ = java.util.Collections.unmodifiableList(restorePlans_); @@ -128,27 +107,22 @@ private ListRestorePlansResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListRestorePlansResponse.class, - com.google.cloud.gkebackup.v1.ListRestorePlansResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListRestorePlansResponse.class, com.google.cloud.gkebackup.v1.ListRestorePlansResponse.Builder.class); } public static final int RESTORE_PLANS_FIELD_NUMBER = 1; private java.util.List restorePlans_; /** - * - * *
    * The list of RestorePlans matching the given criteria.
    * 
@@ -160,8 +134,6 @@ public java.util.List getRestorePlans return restorePlans_; } /** - * - * *
    * The list of RestorePlans matching the given criteria.
    * 
@@ -169,13 +141,11 @@ public java.util.List getRestorePlans * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRestorePlansOrBuilderList() { return restorePlans_; } /** - * - * *
    * The list of RestorePlans matching the given criteria.
    * 
@@ -187,8 +157,6 @@ public int getRestorePlansCount() { return restorePlans_.size(); } /** - * - * *
    * The list of RestorePlans matching the given criteria.
    * 
@@ -200,8 +168,6 @@ public com.google.cloud.gkebackup.v1.RestorePlan getRestorePlans(int index) { return restorePlans_.get(index); } /** - * - * *
    * The list of RestorePlans matching the given criteria.
    * 
@@ -209,15 +175,14 @@ public com.google.cloud.gkebackup.v1.RestorePlan getRestorePlans(int index) { * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlansOrBuilder(int index) { + public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlansOrBuilder( + int index) { return restorePlans_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token] in a subsequent
@@ -227,7 +192,6 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlansOrBuild
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -236,15 +200,14 @@ 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 may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token] in a subsequent
@@ -254,15 +217,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -273,42 +237,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -316,23 +272,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -344,7 +297,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < restorePlans_.size(); i++) { output.writeMessage(1, restorePlans_.get(i)); } @@ -364,7 +318,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < restorePlans_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, restorePlans_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, restorePlans_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -385,17 +340,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListRestorePlansResponse)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListRestorePlansResponse other = - (com.google.cloud.gkebackup.v1.ListRestorePlansResponse) obj; + com.google.cloud.gkebackup.v1.ListRestorePlansResponse other = (com.google.cloud.gkebackup.v1.ListRestorePlansResponse) obj; - if (!getRestorePlansList().equals(other.getRestorePlansList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getRestorePlansList() + .equals(other.getRestorePlansList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -423,127 +380,117 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkebackup.v1.ListRestorePlansResponse prototype) { + public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListRestorePlansResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListRestorePlans.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListRestorePlansResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListRestorePlansResponse) com.google.cloud.gkebackup.v1.ListRestorePlansResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListRestorePlansResponse.class, - com.google.cloud.gkebackup.v1.ListRestorePlansResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListRestorePlansResponse.class, com.google.cloud.gkebackup.v1.ListRestorePlansResponse.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListRestorePlansResponse.newBuilder() @@ -551,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) { getRestorePlansFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -579,9 +526,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor; } @java.lang.Override @@ -600,8 +547,7 @@ public com.google.cloud.gkebackup.v1.ListRestorePlansResponse build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListRestorePlansResponse buildPartial() { - com.google.cloud.gkebackup.v1.ListRestorePlansResponse result = - new com.google.cloud.gkebackup.v1.ListRestorePlansResponse(this); + com.google.cloud.gkebackup.v1.ListRestorePlansResponse result = new com.google.cloud.gkebackup.v1.ListRestorePlansResponse(this); int from_bitField0_ = bitField0_; if (restorePlansBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -626,39 +572,38 @@ public com.google.cloud.gkebackup.v1.ListRestorePlansResponse 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.cloud.gkebackup.v1.ListRestorePlansResponse) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListRestorePlansResponse) other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListRestorePlansResponse)other); } else { super.mergeFrom(other); return this; @@ -666,8 +611,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListRestorePlansResponse other) { - if (other == com.google.cloud.gkebackup.v1.ListRestorePlansResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.ListRestorePlansResponse.getDefaultInstance()) return this; if (restorePlansBuilder_ == null) { if (!other.restorePlans_.isEmpty()) { if (restorePlans_.isEmpty()) { @@ -686,10 +630,9 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListRestorePlansResponse restorePlansBuilder_ = null; restorePlans_ = other.restorePlans_; bitField0_ = (bitField0_ & ~0x00000001); - restorePlansBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRestorePlansFieldBuilder() - : null; + restorePlansBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRestorePlansFieldBuilder() : null; } else { restorePlansBuilder_.addAllMessages(other.restorePlans_); } @@ -728,8 +671,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.ListRestorePlansResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.ListRestorePlansResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -738,29 +680,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List restorePlans_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRestorePlansIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - restorePlans_ = - new java.util.ArrayList(restorePlans_); + restorePlans_ = new java.util.ArrayList(restorePlans_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestorePlan, - com.google.cloud.gkebackup.v1.RestorePlan.Builder, - com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> - restorePlansBuilder_; + com.google.cloud.gkebackup.v1.RestorePlan, com.google.cloud.gkebackup.v1.RestorePlan.Builder, com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> restorePlansBuilder_; /** - * - * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -775,8 +709,6 @@ public java.util.List getRestorePlans } } /** - * - * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -791,8 +723,6 @@ public int getRestorePlansCount() { } } /** - * - * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -807,15 +737,14 @@ public com.google.cloud.gkebackup.v1.RestorePlan getRestorePlans(int index) { } } /** - * - * *
      * The list of RestorePlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ - public Builder setRestorePlans(int index, com.google.cloud.gkebackup.v1.RestorePlan value) { + public Builder setRestorePlans( + int index, com.google.cloud.gkebackup.v1.RestorePlan value) { if (restorePlansBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -829,8 +758,6 @@ public Builder setRestorePlans(int index, com.google.cloud.gkebackup.v1.RestoreP return this; } /** - * - * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -849,8 +776,6 @@ public Builder setRestorePlans( return this; } /** - * - * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -871,15 +796,14 @@ public Builder addRestorePlans(com.google.cloud.gkebackup.v1.RestorePlan value) return this; } /** - * - * *
      * The list of RestorePlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ - public Builder addRestorePlans(int index, com.google.cloud.gkebackup.v1.RestorePlan value) { + public Builder addRestorePlans( + int index, com.google.cloud.gkebackup.v1.RestorePlan value) { if (restorePlansBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -893,8 +817,6 @@ public Builder addRestorePlans(int index, com.google.cloud.gkebackup.v1.RestoreP return this; } /** - * - * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -913,8 +835,6 @@ public Builder addRestorePlans( return this; } /** - * - * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -933,8 +853,6 @@ public Builder addRestorePlans( return this; } /** - * - * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -945,7 +863,8 @@ public Builder addAllRestorePlans( java.lang.Iterable values) { if (restorePlansBuilder_ == null) { ensureRestorePlansIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, restorePlans_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, restorePlans_); onChanged(); } else { restorePlansBuilder_.addAllMessages(values); @@ -953,8 +872,6 @@ public Builder addAllRestorePlans( return this; } /** - * - * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -972,8 +889,6 @@ public Builder clearRestorePlans() { return this; } /** - * - * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -991,44 +906,39 @@ public Builder removeRestorePlans(int index) { return this; } /** - * - * *
      * The list of RestorePlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ - public com.google.cloud.gkebackup.v1.RestorePlan.Builder getRestorePlansBuilder(int index) { + public com.google.cloud.gkebackup.v1.RestorePlan.Builder getRestorePlansBuilder( + int index) { return getRestorePlansFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of RestorePlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ - public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlansOrBuilder(int index) { + public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlansOrBuilder( + int index) { if (restorePlansBuilder_ == null) { - return restorePlans_.get(index); - } else { + return restorePlans_.get(index); } else { return restorePlansBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of RestorePlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ - public java.util.List - getRestorePlansOrBuilderList() { + public java.util.List + getRestorePlansOrBuilderList() { if (restorePlansBuilder_ != null) { return restorePlansBuilder_.getMessageOrBuilderList(); } else { @@ -1036,8 +946,6 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlansOrBuild } } /** - * - * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -1045,48 +953,42 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlansOrBuild * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ public com.google.cloud.gkebackup.v1.RestorePlan.Builder addRestorePlansBuilder() { - return getRestorePlansFieldBuilder() - .addBuilder(com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance()); + return getRestorePlansFieldBuilder().addBuilder( + com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance()); } /** - * - * *
      * The list of RestorePlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ - public com.google.cloud.gkebackup.v1.RestorePlan.Builder addRestorePlansBuilder(int index) { - return getRestorePlansFieldBuilder() - .addBuilder(index, com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.RestorePlan.Builder addRestorePlansBuilder( + int index) { + return getRestorePlansFieldBuilder().addBuilder( + index, com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance()); } /** - * - * *
      * The list of RestorePlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ - public java.util.List - getRestorePlansBuilderList() { + public java.util.List + getRestorePlansBuilderList() { return getRestorePlansFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestorePlan, - com.google.cloud.gkebackup.v1.RestorePlan.Builder, - com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> + com.google.cloud.gkebackup.v1.RestorePlan, com.google.cloud.gkebackup.v1.RestorePlan.Builder, com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> getRestorePlansFieldBuilder() { if (restorePlansBuilder_ == null) { - restorePlansBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestorePlan, - com.google.cloud.gkebackup.v1.RestorePlan.Builder, - com.google.cloud.gkebackup.v1.RestorePlanOrBuilder>( - restorePlans_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + restorePlansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestorePlan, com.google.cloud.gkebackup.v1.RestorePlan.Builder, com.google.cloud.gkebackup.v1.RestorePlanOrBuilder>( + restorePlans_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); restorePlans_ = null; } return restorePlansBuilder_; @@ -1094,8 +996,6 @@ public com.google.cloud.gkebackup.v1.RestorePlan.Builder addRestorePlansBuilder( private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token] in a subsequent
@@ -1105,13 +1005,13 @@ public com.google.cloud.gkebackup.v1.RestorePlan.Builder addRestorePlansBuilder(
      * 
* * 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; @@ -1120,8 +1020,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token] in a subsequent
@@ -1131,14 +1029,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1146,8 +1045,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token] in a subsequent
@@ -1157,22 +1054,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token] in a subsequent
@@ -1182,18 +1077,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token] in a subsequent
@@ -1203,67 +1095,57 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1271,90 +1153,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1364,30 +1236,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1397,12 +1267,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListRestorePlansResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListRestorePlansResponse) private static final com.google.cloud.gkebackup.v1.ListRestorePlansResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListRestorePlansResponse(); } @@ -1411,16 +1281,16 @@ public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRestorePlansResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRestorePlansResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRestorePlansResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRestorePlansResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1435,4 +1305,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.ListRestorePlansResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponseOrBuilder.java similarity index 74% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponseOrBuilder.java index a04c2ab..f490f79 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListRestorePlansResponseOrBuilder - extends +public interface ListRestorePlansResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListRestorePlansResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of RestorePlans matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ - java.util.List getRestorePlansList(); + java.util.List + getRestorePlansList(); /** - * - * *
    * The list of RestorePlans matching the given criteria.
    * 
@@ -44,8 +25,6 @@ public interface ListRestorePlansResponseOrBuilder */ com.google.cloud.gkebackup.v1.RestorePlan getRestorePlans(int index); /** - * - * *
    * The list of RestorePlans matching the given criteria.
    * 
@@ -54,30 +33,25 @@ public interface ListRestorePlansResponseOrBuilder */ int getRestorePlansCount(); /** - * - * *
    * The list of RestorePlans matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ - java.util.List + java.util.List getRestorePlansOrBuilderList(); /** - * - * *
    * The list of RestorePlans matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ - com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlansOrBuilder(int index); + com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlansOrBuilder( + int index); /** - * - * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token] in a subsequent
@@ -87,13 +61,10 @@ public interface ListRestorePlansResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token] in a subsequent
@@ -103,59 +74,49 @@ public interface ListRestorePlansResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequest.java similarity index 72% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequest.java index 031f2ff..ee3703d 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for ListRestores.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListRestoresRequest} */ -public final class ListRestoresRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRestoresRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListRestoresRequest) ListRestoresRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRestoresRequest.newBuilder() to construct. private ListRestoresRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRestoresRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListRestoresRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRestoresRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListRestoresRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,46 +56,42 @@ private ListRestoresRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,42 +99,35 @@ private ListRestoresRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListRestoresRequest.class, - com.google.cloud.gkebackup.v1.ListRestoresRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListRestoresRequest.class, com.google.cloud.gkebackup.v1.ListRestoresRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The RestorePlan that contains the Restores to list.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * - * string 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 @@ -164,32 +136,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The RestorePlan that contains the Restores to list.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * - * string 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 { @@ -200,8 +170,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -212,7 +180,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -223,8 +190,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
@@ -235,7 +200,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -244,15 +208,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; } } /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
@@ -263,15 +226,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 { @@ -282,14 +246,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -298,29 +259,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -331,14 +292,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -347,29 +305,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -378,7 +336,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -390,7 +347,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -419,7 +377,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_); @@ -438,19 +397,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListRestoresRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListRestoresRequest other = - (com.google.cloud.gkebackup.v1.ListRestoresRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.gkebackup.v1.ListRestoresRequest other = (com.google.cloud.gkebackup.v1.ListRestoresRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -478,126 +441,117 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListRestoresRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListRestores.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListRestoresRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListRestoresRequest) com.google.cloud.gkebackup.v1.ListRestoresRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListRestoresRequest.class, - com.google.cloud.gkebackup.v1.ListRestoresRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListRestoresRequest.class, com.google.cloud.gkebackup.v1.ListRestoresRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListRestoresRequest.newBuilder() @@ -605,15 +559,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -631,9 +586,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor; } @java.lang.Override @@ -652,8 +607,7 @@ public com.google.cloud.gkebackup.v1.ListRestoresRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListRestoresRequest buildPartial() { - com.google.cloud.gkebackup.v1.ListRestoresRequest result = - new com.google.cloud.gkebackup.v1.ListRestoresRequest(this); + com.google.cloud.gkebackup.v1.ListRestoresRequest result = new com.google.cloud.gkebackup.v1.ListRestoresRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -667,39 +621,38 @@ public com.google.cloud.gkebackup.v1.ListRestoresRequest 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.cloud.gkebackup.v1.ListRestoresRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListRestoresRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListRestoresRequest)other); } else { super.mergeFrom(other); return this; @@ -707,8 +660,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListRestoresRequest other) { - if (other == com.google.cloud.gkebackup.v1.ListRestoresRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.ListRestoresRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -747,8 +699,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.ListRestoresRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.ListRestoresRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -760,23 +711,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The RestorePlan that contains the Restores to list.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * - * string 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; @@ -785,24 +732,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The RestorePlan that contains the Restores to list.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * - * string 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 { @@ -810,79 +754,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The RestorePlan that contains the Restores to list.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * - * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The RestorePlan that contains the Restores to list.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The RestorePlan that contains the Restores to list.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * - * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -893,7 +822,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -901,8 +829,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -913,19 +839,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -936,11 +859,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -948,8 +870,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
@@ -960,13 +880,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; @@ -975,8 +895,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
@@ -987,14 +905,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 { @@ -1002,8 +921,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
@@ -1014,22 +931,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
@@ -1040,18 +955,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
@@ -1062,16 +974,16 @@ 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1079,20 +991,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1101,21 +1011,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1123,61 +1032,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1185,20 +1087,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1207,21 +1107,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1229,68 +1128,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1300,12 +1192,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListRestoresRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListRestoresRequest) private static final com.google.cloud.gkebackup.v1.ListRestoresRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListRestoresRequest(); } @@ -1314,16 +1206,16 @@ public static com.google.cloud.gkebackup.v1.ListRestoresRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRestoresRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRestoresRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRestoresRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRestoresRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1338,4 +1230,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.ListRestoresRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequestOrBuilder.java index 737cf43..9fba075 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListRestoresRequestOrBuilder - extends +public interface ListRestoresRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListRestoresRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The RestorePlan that contains the Restores to list.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * - * string 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 RestorePlan that contains the Restores to list.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * - * string 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 target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -67,14 +40,11 @@ public interface ListRestoresRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
@@ -85,13 +55,10 @@ public interface ListRestoresRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
@@ -102,58 +69,48 @@ public interface ListRestoresRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponse.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponse.java similarity index 75% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponse.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponse.java index dfcebb0..9d9d1ad 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Response message for ListRestores.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListRestoresResponse} */ -public final class ListRestoresResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRestoresResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListRestoresResponse) ListRestoresResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRestoresResponse.newBuilder() to construct. private ListRestoresResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRestoresResponse() { restores_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListRestoresResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRestoresResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListRestoresResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,41 +56,37 @@ private ListRestoresResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - restores_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - restores_.add( - input.readMessage( - com.google.cloud.gkebackup.v1.Restore.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + restores_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + restores_.add( + input.readMessage(com.google.cloud.gkebackup.v1.Restore.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,7 +94,8 @@ private ListRestoresResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { restores_ = java.util.Collections.unmodifiableList(restores_); @@ -127,27 +107,22 @@ private ListRestoresResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListRestoresResponse.class, - com.google.cloud.gkebackup.v1.ListRestoresResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListRestoresResponse.class, com.google.cloud.gkebackup.v1.ListRestoresResponse.Builder.class); } public static final int RESTORES_FIELD_NUMBER = 1; private java.util.List restores_; /** - * - * *
    * The list of Restores matching the given criteria.
    * 
@@ -159,8 +134,6 @@ public java.util.List getRestoresList() { return restores_; } /** - * - * *
    * The list of Restores matching the given criteria.
    * 
@@ -168,13 +141,11 @@ public java.util.List getRestoresList() { * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRestoresOrBuilderList() { return restores_; } /** - * - * *
    * The list of Restores matching the given criteria.
    * 
@@ -186,8 +157,6 @@ public int getRestoresCount() { return restores_.size(); } /** - * - * *
    * The list of Restores matching the given criteria.
    * 
@@ -199,8 +168,6 @@ public com.google.cloud.gkebackup.v1.Restore getRestores(int index) { return restores_.get(index); } /** - * - * *
    * The list of Restores matching the given criteria.
    * 
@@ -208,15 +175,14 @@ public com.google.cloud.gkebackup.v1.Restore getRestores(int index) { * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoresOrBuilder(int index) { + public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoresOrBuilder( + int index) { return restores_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token]
    * in a subsequent `ListRestores` call to retrieve the next page of results.
@@ -225,7 +191,6 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoresOrBuilder(int i
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -234,15 +199,14 @@ 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 may be sent as [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token]
    * in a subsequent `ListRestores` call to retrieve the next page of results.
@@ -251,15 +215,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -270,42 +235,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -313,23 +270,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,7 +295,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < restores_.size(); i++) { output.writeMessage(1, restores_.get(i)); } @@ -361,7 +316,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < restores_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, restores_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, restores_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -382,17 +338,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListRestoresResponse)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListRestoresResponse other = - (com.google.cloud.gkebackup.v1.ListRestoresResponse) obj; + com.google.cloud.gkebackup.v1.ListRestoresResponse other = (com.google.cloud.gkebackup.v1.ListRestoresResponse) obj; - if (!getRestoresList().equals(other.getRestoresList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getRestoresList() + .equals(other.getRestoresList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -420,126 +378,117 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListRestoresResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListRestores.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListRestoresResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListRestoresResponse) com.google.cloud.gkebackup.v1.ListRestoresResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListRestoresResponse.class, - com.google.cloud.gkebackup.v1.ListRestoresResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListRestoresResponse.class, com.google.cloud.gkebackup.v1.ListRestoresResponse.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListRestoresResponse.newBuilder() @@ -547,17 +496,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) { getRestoresFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -575,9 +524,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor; } @java.lang.Override @@ -596,8 +545,7 @@ public com.google.cloud.gkebackup.v1.ListRestoresResponse build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListRestoresResponse buildPartial() { - com.google.cloud.gkebackup.v1.ListRestoresResponse result = - new com.google.cloud.gkebackup.v1.ListRestoresResponse(this); + com.google.cloud.gkebackup.v1.ListRestoresResponse result = new com.google.cloud.gkebackup.v1.ListRestoresResponse(this); int from_bitField0_ = bitField0_; if (restoresBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -622,39 +570,38 @@ public com.google.cloud.gkebackup.v1.ListRestoresResponse 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.cloud.gkebackup.v1.ListRestoresResponse) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListRestoresResponse) other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListRestoresResponse)other); } else { super.mergeFrom(other); return this; @@ -662,8 +609,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListRestoresResponse other) { - if (other == com.google.cloud.gkebackup.v1.ListRestoresResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.ListRestoresResponse.getDefaultInstance()) return this; if (restoresBuilder_ == null) { if (!other.restores_.isEmpty()) { if (restores_.isEmpty()) { @@ -682,10 +628,9 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListRestoresResponse othe restoresBuilder_ = null; restores_ = other.restores_; bitField0_ = (bitField0_ & ~0x00000001); - restoresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRestoresFieldBuilder() - : null; + restoresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRestoresFieldBuilder() : null; } else { restoresBuilder_.addAllMessages(other.restores_); } @@ -724,8 +669,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.ListRestoresResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.ListRestoresResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -734,28 +678,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List restores_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRestoresIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { restores_ = new java.util.ArrayList(restores_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.Restore, - com.google.cloud.gkebackup.v1.Restore.Builder, - com.google.cloud.gkebackup.v1.RestoreOrBuilder> - restoresBuilder_; + com.google.cloud.gkebackup.v1.Restore, com.google.cloud.gkebackup.v1.Restore.Builder, com.google.cloud.gkebackup.v1.RestoreOrBuilder> restoresBuilder_; /** - * - * *
      * The list of Restores matching the given criteria.
      * 
@@ -770,8 +707,6 @@ public java.util.List getRestoresList() { } } /** - * - * *
      * The list of Restores matching the given criteria.
      * 
@@ -786,8 +721,6 @@ public int getRestoresCount() { } } /** - * - * *
      * The list of Restores matching the given criteria.
      * 
@@ -802,15 +735,14 @@ public com.google.cloud.gkebackup.v1.Restore getRestores(int index) { } } /** - * - * *
      * The list of Restores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - public Builder setRestores(int index, com.google.cloud.gkebackup.v1.Restore value) { + public Builder setRestores( + int index, com.google.cloud.gkebackup.v1.Restore value) { if (restoresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -824,8 +756,6 @@ public Builder setRestores(int index, com.google.cloud.gkebackup.v1.Restore valu return this; } /** - * - * *
      * The list of Restores matching the given criteria.
      * 
@@ -844,8 +774,6 @@ public Builder setRestores( return this; } /** - * - * *
      * The list of Restores matching the given criteria.
      * 
@@ -866,15 +794,14 @@ public Builder addRestores(com.google.cloud.gkebackup.v1.Restore value) { return this; } /** - * - * *
      * The list of Restores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - public Builder addRestores(int index, com.google.cloud.gkebackup.v1.Restore value) { + public Builder addRestores( + int index, com.google.cloud.gkebackup.v1.Restore value) { if (restoresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -888,15 +815,14 @@ public Builder addRestores(int index, com.google.cloud.gkebackup.v1.Restore valu return this; } /** - * - * *
      * The list of Restores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - public Builder addRestores(com.google.cloud.gkebackup.v1.Restore.Builder builderForValue) { + public Builder addRestores( + com.google.cloud.gkebackup.v1.Restore.Builder builderForValue) { if (restoresBuilder_ == null) { ensureRestoresIsMutable(); restores_.add(builderForValue.build()); @@ -907,8 +833,6 @@ public Builder addRestores(com.google.cloud.gkebackup.v1.Restore.Builder builder return this; } /** - * - * *
      * The list of Restores matching the given criteria.
      * 
@@ -927,8 +851,6 @@ public Builder addRestores( return this; } /** - * - * *
      * The list of Restores matching the given criteria.
      * 
@@ -939,7 +861,8 @@ public Builder addAllRestores( java.lang.Iterable values) { if (restoresBuilder_ == null) { ensureRestoresIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, restores_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, restores_); onChanged(); } else { restoresBuilder_.addAllMessages(values); @@ -947,8 +870,6 @@ public Builder addAllRestores( return this; } /** - * - * *
      * The list of Restores matching the given criteria.
      * 
@@ -966,8 +887,6 @@ public Builder clearRestores() { return this; } /** - * - * *
      * The list of Restores matching the given criteria.
      * 
@@ -985,44 +904,39 @@ public Builder removeRestores(int index) { return this; } /** - * - * *
      * The list of Restores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - public com.google.cloud.gkebackup.v1.Restore.Builder getRestoresBuilder(int index) { + public com.google.cloud.gkebackup.v1.Restore.Builder getRestoresBuilder( + int index) { return getRestoresFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of Restores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoresOrBuilder(int index) { + public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoresOrBuilder( + int index) { if (restoresBuilder_ == null) { - return restores_.get(index); - } else { + return restores_.get(index); } else { return restoresBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of Restores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - public java.util.List - getRestoresOrBuilderList() { + public java.util.List + getRestoresOrBuilderList() { if (restoresBuilder_ != null) { return restoresBuilder_.getMessageOrBuilderList(); } else { @@ -1030,8 +944,6 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoresOrBuilder(int i } } /** - * - * *
      * The list of Restores matching the given criteria.
      * 
@@ -1039,47 +951,42 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoresOrBuilder(int i * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ public com.google.cloud.gkebackup.v1.Restore.Builder addRestoresBuilder() { - return getRestoresFieldBuilder() - .addBuilder(com.google.cloud.gkebackup.v1.Restore.getDefaultInstance()); + return getRestoresFieldBuilder().addBuilder( + com.google.cloud.gkebackup.v1.Restore.getDefaultInstance()); } /** - * - * *
      * The list of Restores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - public com.google.cloud.gkebackup.v1.Restore.Builder addRestoresBuilder(int index) { - return getRestoresFieldBuilder() - .addBuilder(index, com.google.cloud.gkebackup.v1.Restore.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.Restore.Builder addRestoresBuilder( + int index) { + return getRestoresFieldBuilder().addBuilder( + index, com.google.cloud.gkebackup.v1.Restore.getDefaultInstance()); } /** - * - * *
      * The list of Restores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - public java.util.List getRestoresBuilderList() { + public java.util.List + getRestoresBuilderList() { return getRestoresFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.Restore, - com.google.cloud.gkebackup.v1.Restore.Builder, - com.google.cloud.gkebackup.v1.RestoreOrBuilder> + com.google.cloud.gkebackup.v1.Restore, com.google.cloud.gkebackup.v1.Restore.Builder, com.google.cloud.gkebackup.v1.RestoreOrBuilder> getRestoresFieldBuilder() { if (restoresBuilder_ == null) { - restoresBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.Restore, - com.google.cloud.gkebackup.v1.Restore.Builder, - com.google.cloud.gkebackup.v1.RestoreOrBuilder>( - restores_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + restoresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.Restore, com.google.cloud.gkebackup.v1.Restore.Builder, com.google.cloud.gkebackup.v1.RestoreOrBuilder>( + restores_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); restores_ = null; } return restoresBuilder_; @@ -1087,8 +994,6 @@ public java.util.List getRestores private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token]
      * in a subsequent `ListRestores` call to retrieve the next page of results.
@@ -1097,13 +1002,13 @@ public java.util.List getRestores
      * 
* * 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; @@ -1112,8 +1017,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token]
      * in a subsequent `ListRestores` call to retrieve the next page of results.
@@ -1122,14 +1025,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1137,8 +1041,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token]
      * in a subsequent `ListRestores` call to retrieve the next page of results.
@@ -1147,22 +1049,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token]
      * in a subsequent `ListRestores` call to retrieve the next page of results.
@@ -1171,18 +1071,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token]
      * in a subsequent `ListRestores` call to retrieve the next page of results.
@@ -1191,67 +1088,57 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1259,90 +1146,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1352,30 +1229,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1385,12 +1260,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListRestoresResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListRestoresResponse) private static final com.google.cloud.gkebackup.v1.ListRestoresResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListRestoresResponse(); } @@ -1399,16 +1274,16 @@ public static com.google.cloud.gkebackup.v1.ListRestoresResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRestoresResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRestoresResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRestoresResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRestoresResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1423,4 +1298,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.ListRestoresResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponseOrBuilder.java similarity index 74% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponseOrBuilder.java index 77d0565..903e6f7 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListRestoresResponseOrBuilder - extends +public interface ListRestoresResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListRestoresResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of Restores matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - java.util.List getRestoresList(); + java.util.List + getRestoresList(); /** - * - * *
    * The list of Restores matching the given criteria.
    * 
@@ -44,8 +25,6 @@ public interface ListRestoresResponseOrBuilder */ com.google.cloud.gkebackup.v1.Restore getRestores(int index); /** - * - * *
    * The list of Restores matching the given criteria.
    * 
@@ -54,30 +33,25 @@ public interface ListRestoresResponseOrBuilder */ int getRestoresCount(); /** - * - * *
    * The list of Restores matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - java.util.List + java.util.List getRestoresOrBuilderList(); /** - * - * *
    * The list of Restores matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoresOrBuilder(int index); + com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoresOrBuilder( + int index); /** - * - * *
    * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token]
    * in a subsequent `ListRestores` call to retrieve the next page of results.
@@ -86,13 +60,10 @@ public interface ListRestoresResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token]
    * in a subsequent `ListRestores` call to retrieve the next page of results.
@@ -101,59 +72,49 @@ public interface ListRestoresResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequest.java similarity index 72% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequest.java index 47e36c9..a61ad5e 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for ListVolumeBackups.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListVolumeBackupsRequest} */ -public final class ListVolumeBackupsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListVolumeBackupsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListVolumeBackupsRequest) ListVolumeBackupsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListVolumeBackupsRequest.newBuilder() to construct. private ListVolumeBackupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListVolumeBackupsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListVolumeBackupsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListVolumeBackupsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListVolumeBackupsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,46 +56,42 @@ private ListVolumeBackupsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,42 +99,35 @@ private ListVolumeBackupsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.class, - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.class, com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The Backup that contains the VolumeBackups to list.
    * Format: projects/*/locations/*/backupPlans/*/backups/*
    * 
* - * - * string 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 @@ -164,32 +136,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The Backup that contains the VolumeBackups to list.
    * Format: projects/*/locations/*/backupPlans/*/backups/*
    * 
* - * - * string 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 { @@ -200,8 +170,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -212,7 +180,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -223,8 +190,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
@@ -235,7 +200,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -244,15 +208,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; } } /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
@@ -263,15 +226,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 { @@ -282,14 +246,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -298,29 +259,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -331,14 +292,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -347,29 +305,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -378,7 +336,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -390,7 +347,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -419,7 +377,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_); @@ -438,19 +397,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest other = - (com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest other = (com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -478,127 +441,117 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListVolumeBackups.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListVolumeBackupsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListVolumeBackupsRequest) com.google.cloud.gkebackup.v1.ListVolumeBackupsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.class, - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.class, com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.newBuilder() @@ -606,15 +559,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -632,9 +586,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor; } @java.lang.Override @@ -653,8 +607,7 @@ public com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest buildPartial() { - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest result = - new com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest(this); + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest result = new com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -668,39 +621,38 @@ public com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest 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.cloud.gkebackup.v1.ListVolumeBackupsRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest)other); } else { super.mergeFrom(other); return this; @@ -708,8 +660,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest other) { - if (other == com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -748,8 +699,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -761,23 +711,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The Backup that contains the VolumeBackups to list.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * - * string 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; @@ -786,24 +732,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The Backup that contains the VolumeBackups to list.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * - * string 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 { @@ -811,79 +754,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The Backup that contains the VolumeBackups to list.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * - * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Backup that contains the VolumeBackups to list.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The Backup that contains the VolumeBackups to list.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * - * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -894,7 +822,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -902,8 +829,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -914,19 +839,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -937,11 +859,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -949,8 +870,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
@@ -961,13 +880,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; @@ -976,8 +895,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
@@ -988,14 +905,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 { @@ -1003,8 +921,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
@@ -1015,22 +931,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
@@ -1041,18 +955,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
@@ -1063,16 +974,16 @@ 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1080,20 +991,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1102,21 +1011,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1124,61 +1032,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1186,20 +1087,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1208,21 +1107,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1230,68 +1128,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1301,12 +1192,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListVolumeBackupsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListVolumeBackupsRequest) private static final com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest(); } @@ -1315,16 +1206,16 @@ public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumeBackupsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumeBackupsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVolumeBackupsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVolumeBackupsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1339,4 +1230,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequestOrBuilder.java index faf88f0..54a81e1 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListVolumeBackupsRequestOrBuilder - extends +public interface ListVolumeBackupsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListVolumeBackupsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Backup that contains the VolumeBackups to list.
    * Format: projects/*/locations/*/backupPlans/*/backups/*
    * 
* - * - * string 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 Backup that contains the VolumeBackups to list.
    * Format: projects/*/locations/*/backupPlans/*/backups/*
    * 
* - * - * string 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 target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -67,14 +40,11 @@ public interface ListVolumeBackupsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
@@ -85,13 +55,10 @@ public interface ListVolumeBackupsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
@@ -102,58 +69,48 @@ public interface ListVolumeBackupsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponse.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponse.java similarity index 75% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponse.java index b380b9e..8a93837 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Response message for ListVolumeBackups.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListVolumeBackupsResponse} */ -public final class ListVolumeBackupsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListVolumeBackupsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListVolumeBackupsResponse) ListVolumeBackupsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListVolumeBackupsResponse.newBuilder() to construct. private ListVolumeBackupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListVolumeBackupsResponse() { volumeBackups_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListVolumeBackupsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListVolumeBackupsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListVolumeBackupsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private ListVolumeBackupsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - volumeBackups_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - volumeBackups_.add( - input.readMessage( - com.google.cloud.gkebackup.v1.VolumeBackup.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + volumeBackups_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + volumeBackups_.add( + input.readMessage(com.google.cloud.gkebackup.v1.VolumeBackup.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private ListVolumeBackupsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { volumeBackups_ = java.util.Collections.unmodifiableList(volumeBackups_); @@ -114,27 +94,22 @@ private ListVolumeBackupsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.class, - com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.class, com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.Builder.class); } public static final int VOLUME_BACKUPS_FIELD_NUMBER = 1; private java.util.List volumeBackups_; /** - * - * *
    * The list of VolumeBackups matching the given criteria.
    * 
@@ -146,8 +121,6 @@ public java.util.List getVolumeBacku return volumeBackups_; } /** - * - * *
    * The list of VolumeBackups matching the given criteria.
    * 
@@ -155,13 +128,11 @@ public java.util.List getVolumeBacku * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVolumeBackupsOrBuilderList() { return volumeBackups_; } /** - * - * *
    * The list of VolumeBackups matching the given criteria.
    * 
@@ -173,8 +144,6 @@ public int getVolumeBackupsCount() { return volumeBackups_.size(); } /** - * - * *
    * The list of VolumeBackups matching the given criteria.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.gkebackup.v1.VolumeBackup getVolumeBackups(int index) { return volumeBackups_.get(index); } /** - * - * *
    * The list of VolumeBackups matching the given criteria.
    * 
@@ -195,15 +162,14 @@ public com.google.cloud.gkebackup.v1.VolumeBackup getVolumeBackups(int index) { * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ @java.lang.Override - public com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder getVolumeBackupsOrBuilder(int index) { + public com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder getVolumeBackupsOrBuilder( + int index) { return volumeBackups_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token] in a subsequent
@@ -213,7 +179,6 @@ public com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder getVolumeBackupsOrBui
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -222,15 +187,14 @@ 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 may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token] in a subsequent
@@ -240,15 +204,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -257,7 +222,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,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 { for (int i = 0; i < volumeBackups_.size(); i++) { output.writeMessage(1, volumeBackups_.get(i)); } @@ -286,7 +251,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < volumeBackups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, volumeBackups_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, volumeBackups_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -299,16 +265,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse other = - (com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse) obj; + com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse other = (com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse) obj; - if (!getVolumeBackupsList().equals(other.getVolumeBackupsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getVolumeBackupsList() + .equals(other.getVolumeBackupsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -332,127 +299,117 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse prototype) { + public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListVolumeBackups.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListVolumeBackupsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListVolumeBackupsResponse) com.google.cloud.gkebackup.v1.ListVolumeBackupsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.class, - com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.class, com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.newBuilder() @@ -460,17 +417,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) { getVolumeBackupsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -486,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor; } @java.lang.Override @@ -507,8 +464,7 @@ public com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse buildPartial() { - com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse result = - new com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse(this); + com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse result = new com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse(this); int from_bitField0_ = bitField0_; if (volumeBackupsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -528,39 +484,38 @@ public com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse 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.cloud.gkebackup.v1.ListVolumeBackupsResponse) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse) other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse)other); } else { super.mergeFrom(other); return this; @@ -568,8 +523,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse other) { - if (other == com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.getDefaultInstance()) return this; if (volumeBackupsBuilder_ == null) { if (!other.volumeBackups_.isEmpty()) { if (volumeBackups_.isEmpty()) { @@ -588,10 +542,9 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse volumeBackupsBuilder_ = null; volumeBackups_ = other.volumeBackups_; bitField0_ = (bitField0_ & ~0x00000001); - volumeBackupsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVolumeBackupsFieldBuilder() - : null; + volumeBackupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVolumeBackupsFieldBuilder() : null; } else { volumeBackupsBuilder_.addAllMessages(other.volumeBackups_); } @@ -620,8 +573,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -630,29 +582,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List volumeBackups_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVolumeBackupsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - volumeBackups_ = - new java.util.ArrayList(volumeBackups_); + volumeBackups_ = new java.util.ArrayList(volumeBackups_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.VolumeBackup, - com.google.cloud.gkebackup.v1.VolumeBackup.Builder, - com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder> - volumeBackupsBuilder_; + com.google.cloud.gkebackup.v1.VolumeBackup, com.google.cloud.gkebackup.v1.VolumeBackup.Builder, com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder> volumeBackupsBuilder_; /** - * - * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -667,8 +611,6 @@ public java.util.List getVolumeBacku } } /** - * - * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -683,8 +625,6 @@ public int getVolumeBackupsCount() { } } /** - * - * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -699,15 +639,14 @@ public com.google.cloud.gkebackup.v1.VolumeBackup getVolumeBackups(int index) { } } /** - * - * *
      * The list of VolumeBackups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ - public Builder setVolumeBackups(int index, com.google.cloud.gkebackup.v1.VolumeBackup value) { + public Builder setVolumeBackups( + int index, com.google.cloud.gkebackup.v1.VolumeBackup value) { if (volumeBackupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -721,8 +660,6 @@ public Builder setVolumeBackups(int index, com.google.cloud.gkebackup.v1.VolumeB return this; } /** - * - * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -741,8 +678,6 @@ public Builder setVolumeBackups( return this; } /** - * - * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -763,15 +698,14 @@ public Builder addVolumeBackups(com.google.cloud.gkebackup.v1.VolumeBackup value return this; } /** - * - * *
      * The list of VolumeBackups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ - public Builder addVolumeBackups(int index, com.google.cloud.gkebackup.v1.VolumeBackup value) { + public Builder addVolumeBackups( + int index, com.google.cloud.gkebackup.v1.VolumeBackup value) { if (volumeBackupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -785,8 +719,6 @@ public Builder addVolumeBackups(int index, com.google.cloud.gkebackup.v1.VolumeB return this; } /** - * - * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -805,8 +737,6 @@ public Builder addVolumeBackups( return this; } /** - * - * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -825,8 +755,6 @@ public Builder addVolumeBackups( return this; } /** - * - * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -837,7 +765,8 @@ public Builder addAllVolumeBackups( java.lang.Iterable values) { if (volumeBackupsBuilder_ == null) { ensureVolumeBackupsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumeBackups_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, volumeBackups_); onChanged(); } else { volumeBackupsBuilder_.addAllMessages(values); @@ -845,8 +774,6 @@ public Builder addAllVolumeBackups( return this; } /** - * - * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -864,8 +791,6 @@ public Builder clearVolumeBackups() { return this; } /** - * - * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -883,20 +808,17 @@ public Builder removeVolumeBackups(int index) { return this; } /** - * - * *
      * The list of VolumeBackups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ - public com.google.cloud.gkebackup.v1.VolumeBackup.Builder getVolumeBackupsBuilder(int index) { + public com.google.cloud.gkebackup.v1.VolumeBackup.Builder getVolumeBackupsBuilder( + int index) { return getVolumeBackupsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -906,22 +828,19 @@ public com.google.cloud.gkebackup.v1.VolumeBackup.Builder getVolumeBackupsBuilde public com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder getVolumeBackupsOrBuilder( int index) { if (volumeBackupsBuilder_ == null) { - return volumeBackups_.get(index); - } else { + return volumeBackups_.get(index); } else { return volumeBackupsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of VolumeBackups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ - public java.util.List - getVolumeBackupsOrBuilderList() { + public java.util.List + getVolumeBackupsOrBuilderList() { if (volumeBackupsBuilder_ != null) { return volumeBackupsBuilder_.getMessageOrBuilderList(); } else { @@ -929,8 +848,6 @@ public com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder getVolumeBackupsOrBui } } /** - * - * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -938,47 +855,38 @@ public com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder getVolumeBackupsOrBui * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ public com.google.cloud.gkebackup.v1.VolumeBackup.Builder addVolumeBackupsBuilder() { - return getVolumeBackupsFieldBuilder() - .addBuilder(com.google.cloud.gkebackup.v1.VolumeBackup.getDefaultInstance()); + return getVolumeBackupsFieldBuilder().addBuilder( + com.google.cloud.gkebackup.v1.VolumeBackup.getDefaultInstance()); } /** - * - * *
      * The list of VolumeBackups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ - public com.google.cloud.gkebackup.v1.VolumeBackup.Builder addVolumeBackupsBuilder(int index) { - return getVolumeBackupsFieldBuilder() - .addBuilder(index, com.google.cloud.gkebackup.v1.VolumeBackup.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.VolumeBackup.Builder addVolumeBackupsBuilder( + int index) { + return getVolumeBackupsFieldBuilder().addBuilder( + index, com.google.cloud.gkebackup.v1.VolumeBackup.getDefaultInstance()); } /** - * - * *
      * The list of VolumeBackups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ - public java.util.List - getVolumeBackupsBuilderList() { + public java.util.List + getVolumeBackupsBuilderList() { return getVolumeBackupsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.VolumeBackup, - com.google.cloud.gkebackup.v1.VolumeBackup.Builder, - com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder> + com.google.cloud.gkebackup.v1.VolumeBackup, com.google.cloud.gkebackup.v1.VolumeBackup.Builder, com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder> getVolumeBackupsFieldBuilder() { if (volumeBackupsBuilder_ == null) { - volumeBackupsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.VolumeBackup, - com.google.cloud.gkebackup.v1.VolumeBackup.Builder, - com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder>( + volumeBackupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.VolumeBackup, com.google.cloud.gkebackup.v1.VolumeBackup.Builder, com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder>( volumeBackups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -990,8 +898,6 @@ public com.google.cloud.gkebackup.v1.VolumeBackup.Builder addVolumeBackupsBuilde private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token] in a subsequent
@@ -1001,13 +907,13 @@ public com.google.cloud.gkebackup.v1.VolumeBackup.Builder addVolumeBackupsBuilde
      * 
* * 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; @@ -1016,8 +922,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token] in a subsequent
@@ -1027,14 +931,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1042,8 +947,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token] in a subsequent
@@ -1053,22 +956,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token] in a subsequent
@@ -1078,18 +979,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token] in a subsequent
@@ -1099,23 +997,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1125,12 +1023,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListVolumeBackupsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListVolumeBackupsResponse) private static final com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse(); } @@ -1139,16 +1037,16 @@ public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumeBackupsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumeBackupsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVolumeBackupsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVolumeBackupsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1163,4 +1061,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponseOrBuilder.java similarity index 71% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponseOrBuilder.java index 6e5ccb6..a6fc10d 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListVolumeBackupsResponseOrBuilder - extends +public interface ListVolumeBackupsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListVolumeBackupsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of VolumeBackups matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ - java.util.List getVolumeBackupsList(); + java.util.List + getVolumeBackupsList(); /** - * - * *
    * The list of VolumeBackups matching the given criteria.
    * 
@@ -44,8 +25,6 @@ public interface ListVolumeBackupsResponseOrBuilder */ com.google.cloud.gkebackup.v1.VolumeBackup getVolumeBackups(int index); /** - * - * *
    * The list of VolumeBackups matching the given criteria.
    * 
@@ -54,30 +33,25 @@ public interface ListVolumeBackupsResponseOrBuilder */ int getVolumeBackupsCount(); /** - * - * *
    * The list of VolumeBackups matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ - java.util.List + java.util.List getVolumeBackupsOrBuilderList(); /** - * - * *
    * The list of VolumeBackups matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ - com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder getVolumeBackupsOrBuilder(int index); + com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder getVolumeBackupsOrBuilder( + int index); /** - * - * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token] in a subsequent
@@ -87,13 +61,10 @@ public interface ListVolumeBackupsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token] in a subsequent
@@ -103,8 +74,8 @@ public interface ListVolumeBackupsResponseOrBuilder
    * 
* * 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-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequest.java similarity index 72% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequest.java index 8b4a947..30ee354 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for ListVolumeRestores.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListVolumeRestoresRequest} */ -public final class ListVolumeRestoresRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListVolumeRestoresRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListVolumeRestoresRequest) ListVolumeRestoresRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListVolumeRestoresRequest.newBuilder() to construct. private ListVolumeRestoresRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListVolumeRestoresRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListVolumeRestoresRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListVolumeRestoresRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListVolumeRestoresRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,46 +56,42 @@ private ListVolumeRestoresRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,42 +99,35 @@ private ListVolumeRestoresRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.class, - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.class, com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The Restore that contains the VolumeRestores to list.
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* - * - * string 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 @@ -164,32 +136,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The Restore that contains the VolumeRestores to list.
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* - * - * string 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 { @@ -200,8 +170,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -212,7 +180,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -223,8 +190,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
@@ -235,7 +200,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -244,15 +208,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; } } /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
@@ -263,15 +226,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 { @@ -282,14 +246,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -298,29 +259,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -331,14 +292,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -347,29 +305,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -378,7 +336,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -390,7 +347,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -419,7 +377,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_); @@ -438,19 +397,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest other = - (com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest other = (com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -478,127 +441,117 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListVolumeRestores.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListVolumeRestoresRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListVolumeRestoresRequest) com.google.cloud.gkebackup.v1.ListVolumeRestoresRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.class, - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.class, com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.newBuilder() @@ -606,15 +559,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -632,9 +586,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor; } @java.lang.Override @@ -653,8 +607,7 @@ public com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest buildPartial() { - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest result = - new com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest(this); + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest result = new com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -668,39 +621,38 @@ public com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest 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.cloud.gkebackup.v1.ListVolumeRestoresRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest)other); } else { super.mergeFrom(other); return this; @@ -708,8 +660,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest other) { - if (other == com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -748,8 +699,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -761,23 +711,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The Restore that contains the VolumeRestores to list.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * - * string 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; @@ -786,24 +732,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The Restore that contains the VolumeRestores to list.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * - * string 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 { @@ -811,79 +754,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The Restore that contains the VolumeRestores to list.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * - * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Restore that contains the VolumeRestores to list.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The Restore that contains the VolumeRestores to list.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * - * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -894,7 +822,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -902,8 +829,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -914,19 +839,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -937,11 +859,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -949,8 +870,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
@@ -961,13 +880,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; @@ -976,8 +895,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
@@ -988,14 +905,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 { @@ -1003,8 +921,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
@@ -1015,22 +931,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
@@ -1041,18 +955,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
@@ -1063,16 +974,16 @@ 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1080,20 +991,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1102,21 +1011,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1124,61 +1032,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1186,20 +1087,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1208,21 +1107,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1230,68 +1128,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1301,12 +1192,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListVolumeRestoresRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListVolumeRestoresRequest) private static final com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest(); } @@ -1315,16 +1206,16 @@ public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumeRestoresRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumeRestoresRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVolumeRestoresRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVolumeRestoresRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1339,4 +1230,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequestOrBuilder.java index bfa588a..57550f4 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListVolumeRestoresRequestOrBuilder - extends +public interface ListVolumeRestoresRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListVolumeRestoresRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Restore that contains the VolumeRestores to list.
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* - * - * string 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 Restore that contains the VolumeRestores to list.
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* - * - * string 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 target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -67,14 +40,11 @@ public interface ListVolumeRestoresRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
@@ -85,13 +55,10 @@ public interface ListVolumeRestoresRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
@@ -102,58 +69,48 @@ public interface ListVolumeRestoresRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponse.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponse.java similarity index 75% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponse.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponse.java index 0fdf44a..b96cfe2 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Response message for ListVolumeRestores.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListVolumeRestoresResponse} */ -public final class ListVolumeRestoresResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListVolumeRestoresResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListVolumeRestoresResponse) ListVolumeRestoresResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListVolumeRestoresResponse.newBuilder() to construct. private ListVolumeRestoresResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListVolumeRestoresResponse() { volumeRestores_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListVolumeRestoresResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListVolumeRestoresResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListVolumeRestoresResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private ListVolumeRestoresResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - volumeRestores_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - volumeRestores_.add( - input.readMessage( - com.google.cloud.gkebackup.v1.VolumeRestore.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + volumeRestores_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + volumeRestores_.add( + input.readMessage(com.google.cloud.gkebackup.v1.VolumeRestore.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private ListVolumeRestoresResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { volumeRestores_ = java.util.Collections.unmodifiableList(volumeRestores_); @@ -114,27 +94,22 @@ private ListVolumeRestoresResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.class, - com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.class, com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.Builder.class); } public static final int VOLUME_RESTORES_FIELD_NUMBER = 1; private java.util.List volumeRestores_; /** - * - * *
    * The list of VolumeRestores matching the given criteria.
    * 
@@ -146,8 +121,6 @@ public java.util.List getVolumeRest return volumeRestores_; } /** - * - * *
    * The list of VolumeRestores matching the given criteria.
    * 
@@ -155,13 +128,11 @@ public java.util.List getVolumeRest * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVolumeRestoresOrBuilderList() { return volumeRestores_; } /** - * - * *
    * The list of VolumeRestores matching the given criteria.
    * 
@@ -173,8 +144,6 @@ public int getVolumeRestoresCount() { return volumeRestores_.size(); } /** - * - * *
    * The list of VolumeRestores matching the given criteria.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.gkebackup.v1.VolumeRestore getVolumeRestores(int index) return volumeRestores_.get(index); } /** - * - * *
    * The list of VolumeRestores matching the given criteria.
    * 
@@ -203,8 +170,6 @@ public com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder getVolumeRestoresOrB public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token] in a subsequent
@@ -214,7 +179,6 @@ public com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder getVolumeRestoresOrB
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -223,15 +187,14 @@ 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 may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token] in a subsequent
@@ -241,15 +204,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -258,7 +222,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,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 { for (int i = 0; i < volumeRestores_.size(); i++) { output.writeMessage(1, volumeRestores_.get(i)); } @@ -287,7 +251,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < volumeRestores_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, volumeRestores_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, volumeRestores_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -300,16 +265,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse other = - (com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse) obj; + com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse other = (com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse) obj; - if (!getVolumeRestoresList().equals(other.getVolumeRestoresList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getVolumeRestoresList() + .equals(other.getVolumeRestoresList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -333,127 +299,117 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse prototype) { + public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListVolumeRestores.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListVolumeRestoresResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListVolumeRestoresResponse) com.google.cloud.gkebackup.v1.ListVolumeRestoresResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.class, - com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.class, com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.newBuilder() @@ -461,17 +417,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) { getVolumeRestoresFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor; } @java.lang.Override @@ -508,8 +464,7 @@ public com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse buildPartial() { - com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse result = - new com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse(this); + com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse result = new com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse(this); int from_bitField0_ = bitField0_; if (volumeRestoresBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -529,39 +484,38 @@ public com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse 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.cloud.gkebackup.v1.ListVolumeRestoresResponse) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse) other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse)other); } else { super.mergeFrom(other); return this; @@ -569,8 +523,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse other) { - if (other == com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.getDefaultInstance()) return this; if (volumeRestoresBuilder_ == null) { if (!other.volumeRestores_.isEmpty()) { if (volumeRestores_.isEmpty()) { @@ -589,10 +542,9 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListVolumeRestoresRespons volumeRestoresBuilder_ = null; volumeRestores_ = other.volumeRestores_; bitField0_ = (bitField0_ & ~0x00000001); - volumeRestoresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVolumeRestoresFieldBuilder() - : null; + volumeRestoresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVolumeRestoresFieldBuilder() : null; } else { volumeRestoresBuilder_.addAllMessages(other.volumeRestores_); } @@ -621,8 +573,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -631,29 +582,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List volumeRestores_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVolumeRestoresIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - volumeRestores_ = - new java.util.ArrayList(volumeRestores_); + volumeRestores_ = new java.util.ArrayList(volumeRestores_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.VolumeRestore, - com.google.cloud.gkebackup.v1.VolumeRestore.Builder, - com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder> - volumeRestoresBuilder_; + com.google.cloud.gkebackup.v1.VolumeRestore, com.google.cloud.gkebackup.v1.VolumeRestore.Builder, com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder> volumeRestoresBuilder_; /** - * - * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -668,8 +611,6 @@ public java.util.List getVolumeRest } } /** - * - * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -684,8 +625,6 @@ public int getVolumeRestoresCount() { } } /** - * - * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -700,15 +639,14 @@ public com.google.cloud.gkebackup.v1.VolumeRestore getVolumeRestores(int index) } } /** - * - * *
      * The list of VolumeRestores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ - public Builder setVolumeRestores(int index, com.google.cloud.gkebackup.v1.VolumeRestore value) { + public Builder setVolumeRestores( + int index, com.google.cloud.gkebackup.v1.VolumeRestore value) { if (volumeRestoresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -722,8 +660,6 @@ public Builder setVolumeRestores(int index, com.google.cloud.gkebackup.v1.Volume return this; } /** - * - * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -742,8 +678,6 @@ public Builder setVolumeRestores( return this; } /** - * - * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -764,15 +698,14 @@ public Builder addVolumeRestores(com.google.cloud.gkebackup.v1.VolumeRestore val return this; } /** - * - * *
      * The list of VolumeRestores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ - public Builder addVolumeRestores(int index, com.google.cloud.gkebackup.v1.VolumeRestore value) { + public Builder addVolumeRestores( + int index, com.google.cloud.gkebackup.v1.VolumeRestore value) { if (volumeRestoresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -786,8 +719,6 @@ public Builder addVolumeRestores(int index, com.google.cloud.gkebackup.v1.Volume return this; } /** - * - * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -806,8 +737,6 @@ public Builder addVolumeRestores( return this; } /** - * - * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -826,8 +755,6 @@ public Builder addVolumeRestores( return this; } /** - * - * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -838,7 +765,8 @@ public Builder addAllVolumeRestores( java.lang.Iterable values) { if (volumeRestoresBuilder_ == null) { ensureVolumeRestoresIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumeRestores_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, volumeRestores_); onChanged(); } else { volumeRestoresBuilder_.addAllMessages(values); @@ -846,8 +774,6 @@ public Builder addAllVolumeRestores( return this; } /** - * - * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -865,8 +791,6 @@ public Builder clearVolumeRestores() { return this; } /** - * - * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -884,20 +808,17 @@ public Builder removeVolumeRestores(int index) { return this; } /** - * - * *
      * The list of VolumeRestores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ - public com.google.cloud.gkebackup.v1.VolumeRestore.Builder getVolumeRestoresBuilder(int index) { + public com.google.cloud.gkebackup.v1.VolumeRestore.Builder getVolumeRestoresBuilder( + int index) { return getVolumeRestoresFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -907,22 +828,19 @@ public com.google.cloud.gkebackup.v1.VolumeRestore.Builder getVolumeRestoresBuil public com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder getVolumeRestoresOrBuilder( int index) { if (volumeRestoresBuilder_ == null) { - return volumeRestores_.get(index); - } else { + return volumeRestores_.get(index); } else { return volumeRestoresBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of VolumeRestores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ - public java.util.List - getVolumeRestoresOrBuilderList() { + public java.util.List + getVolumeRestoresOrBuilderList() { if (volumeRestoresBuilder_ != null) { return volumeRestoresBuilder_.getMessageOrBuilderList(); } else { @@ -930,8 +848,6 @@ public com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder getVolumeRestoresOrB } } /** - * - * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -939,47 +855,38 @@ public com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder getVolumeRestoresOrB * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ public com.google.cloud.gkebackup.v1.VolumeRestore.Builder addVolumeRestoresBuilder() { - return getVolumeRestoresFieldBuilder() - .addBuilder(com.google.cloud.gkebackup.v1.VolumeRestore.getDefaultInstance()); + return getVolumeRestoresFieldBuilder().addBuilder( + com.google.cloud.gkebackup.v1.VolumeRestore.getDefaultInstance()); } /** - * - * *
      * The list of VolumeRestores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ - public com.google.cloud.gkebackup.v1.VolumeRestore.Builder addVolumeRestoresBuilder(int index) { - return getVolumeRestoresFieldBuilder() - .addBuilder(index, com.google.cloud.gkebackup.v1.VolumeRestore.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.VolumeRestore.Builder addVolumeRestoresBuilder( + int index) { + return getVolumeRestoresFieldBuilder().addBuilder( + index, com.google.cloud.gkebackup.v1.VolumeRestore.getDefaultInstance()); } /** - * - * *
      * The list of VolumeRestores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ - public java.util.List - getVolumeRestoresBuilderList() { + public java.util.List + getVolumeRestoresBuilderList() { return getVolumeRestoresFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.VolumeRestore, - com.google.cloud.gkebackup.v1.VolumeRestore.Builder, - com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder> + com.google.cloud.gkebackup.v1.VolumeRestore, com.google.cloud.gkebackup.v1.VolumeRestore.Builder, com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder> getVolumeRestoresFieldBuilder() { if (volumeRestoresBuilder_ == null) { - volumeRestoresBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.VolumeRestore, - com.google.cloud.gkebackup.v1.VolumeRestore.Builder, - com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder>( + volumeRestoresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.VolumeRestore, com.google.cloud.gkebackup.v1.VolumeRestore.Builder, com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder>( volumeRestores_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -991,8 +898,6 @@ public com.google.cloud.gkebackup.v1.VolumeRestore.Builder addVolumeRestoresBuil private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token] in a subsequent
@@ -1002,13 +907,13 @@ public com.google.cloud.gkebackup.v1.VolumeRestore.Builder addVolumeRestoresBuil
      * 
* * 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; @@ -1017,8 +922,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token] in a subsequent
@@ -1028,14 +931,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1043,8 +947,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token] in a subsequent
@@ -1054,22 +956,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token] in a subsequent
@@ -1079,18 +979,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token] in a subsequent
@@ -1100,23 +997,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1126,12 +1023,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListVolumeRestoresResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListVolumeRestoresResponse) private static final com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse(); } @@ -1140,16 +1037,16 @@ public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumeRestoresResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumeRestoresResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVolumeRestoresResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVolumeRestoresResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1164,4 +1061,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponseOrBuilder.java similarity index 71% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponseOrBuilder.java index ea0e311..308240e 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListVolumeRestoresResponseOrBuilder - extends +public interface ListVolumeRestoresResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListVolumeRestoresResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of VolumeRestores matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ - java.util.List getVolumeRestoresList(); + java.util.List + getVolumeRestoresList(); /** - * - * *
    * The list of VolumeRestores matching the given criteria.
    * 
@@ -44,8 +25,6 @@ public interface ListVolumeRestoresResponseOrBuilder */ com.google.cloud.gkebackup.v1.VolumeRestore getVolumeRestores(int index); /** - * - * *
    * The list of VolumeRestores matching the given criteria.
    * 
@@ -54,30 +33,25 @@ public interface ListVolumeRestoresResponseOrBuilder */ int getVolumeRestoresCount(); /** - * - * *
    * The list of VolumeRestores matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ - java.util.List + java.util.List getVolumeRestoresOrBuilderList(); /** - * - * *
    * The list of VolumeRestores matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ - com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder getVolumeRestoresOrBuilder(int index); + com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder getVolumeRestoresOrBuilder( + int index); /** - * - * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token] in a subsequent
@@ -87,13 +61,10 @@ public interface ListVolumeRestoresResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token] in a subsequent
@@ -103,8 +74,8 @@ public interface ListVolumeRestoresResponseOrBuilder
    * 
* * 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-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/LocationName.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/LocationName.java similarity index 100% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/LocationName.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/LocationName.java diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedName.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedName.java similarity index 69% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedName.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedName.java index 76e04dc..f5bfa14 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedName.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedName.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/common.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * A reference to a namespaced resource in Kubernetes.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.NamespacedName} */ -public final class NamespacedName extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NamespacedName extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.NamespacedName) NamespacedNameOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NamespacedName.newBuilder() to construct. private NamespacedName(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NamespacedName() { namespace_ = ""; name_ = ""; @@ -44,15 +26,16 @@ private NamespacedName() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NamespacedName(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private NamespacedName( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private NamespacedName( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - namespace_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + namespace_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +80,34 @@ private NamespacedName( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.CommonProto - .internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.CommonProto - .internal_static_google_cloud_gkebackup_v1_NamespacedName_fieldAccessorTable + return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_NamespacedName_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.NamespacedName.class, - com.google.cloud.gkebackup.v1.NamespacedName.Builder.class); + com.google.cloud.gkebackup.v1.NamespacedName.class, com.google.cloud.gkebackup.v1.NamespacedName.Builder.class); } public static final int NAMESPACE_FIELD_NUMBER = 1; private volatile java.lang.Object namespace_; /** - * - * *
    * The Namespace of the Kubernetes resource.
    * 
* * string namespace = 1; - * * @return The namespace. */ @java.lang.Override @@ -140,29 +116,29 @@ public java.lang.String getNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } } /** - * - * *
    * The Namespace of the Kubernetes resource.
    * 
* * string namespace = 1; - * * @return The bytes for namespace. */ @java.lang.Override - public com.google.protobuf.ByteString getNamespaceBytes() { + public com.google.protobuf.ByteString + getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); namespace_ = b; return b; } else { @@ -173,14 +149,11 @@ public com.google.protobuf.ByteString getNamespaceBytes() { public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** - * - * *
    * The name of the Kubernetes resource.
    * 
* * string name = 2; - * * @return The name. */ @java.lang.Override @@ -189,29 +162,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; } } /** - * - * *
    * The name of the Kubernetes resource.
    * 
* * string name = 2; - * * @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 { @@ -220,7 +193,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_); } @@ -262,16 +235,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.NamespacedName)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.NamespacedName other = - (com.google.cloud.gkebackup.v1.NamespacedName) obj; + com.google.cloud.gkebackup.v1.NamespacedName other = (com.google.cloud.gkebackup.v1.NamespacedName) obj; - if (!getNamespace().equals(other.getNamespace())) return false; - if (!getName().equals(other.getName())) return false; + if (!getNamespace() + .equals(other.getNamespace())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,127 +266,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.NamespacedName parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.NamespacedName parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.NamespacedName parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.NamespacedName prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 reference to a namespaced resource in Kubernetes.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.NamespacedName} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.NamespacedName) com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.CommonProto - .internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.CommonProto - .internal_static_google_cloud_gkebackup_v1_NamespacedName_fieldAccessorTable + return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_NamespacedName_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.NamespacedName.class, - com.google.cloud.gkebackup.v1.NamespacedName.Builder.class); + com.google.cloud.gkebackup.v1.NamespacedName.class, com.google.cloud.gkebackup.v1.NamespacedName.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.NamespacedName.newBuilder() @@ -420,15 +385,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +406,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.CommonProto - .internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor; } @java.lang.Override @@ -461,8 +427,7 @@ public com.google.cloud.gkebackup.v1.NamespacedName build() { @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacedName buildPartial() { - com.google.cloud.gkebackup.v1.NamespacedName result = - new com.google.cloud.gkebackup.v1.NamespacedName(this); + com.google.cloud.gkebackup.v1.NamespacedName result = new com.google.cloud.gkebackup.v1.NamespacedName(this); result.namespace_ = namespace_; result.name_ = name_; onBuilt(); @@ -473,39 +438,38 @@ public com.google.cloud.gkebackup.v1.NamespacedName 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.cloud.gkebackup.v1.NamespacedName) { - return mergeFrom((com.google.cloud.gkebackup.v1.NamespacedName) other); + return mergeFrom((com.google.cloud.gkebackup.v1.NamespacedName)other); } else { super.mergeFrom(other); return this; @@ -553,20 +517,18 @@ public Builder mergeFrom( private java.lang.Object namespace_ = ""; /** - * - * *
      * The Namespace of the Kubernetes resource.
      * 
* * string namespace = 1; - * * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; @@ -575,21 +537,20 @@ public java.lang.String getNamespace() { } } /** - * - * *
      * The Namespace of the Kubernetes resource.
      * 
* * string namespace = 1; - * * @return The bytes for namespace. */ - public com.google.protobuf.ByteString getNamespaceBytes() { + public com.google.protobuf.ByteString + getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); namespace_ = b; return b; } else { @@ -597,61 +558,54 @@ public com.google.protobuf.ByteString getNamespaceBytes() { } } /** - * - * *
      * The Namespace of the Kubernetes resource.
      * 
* * string namespace = 1; - * * @param value The namespace to set. * @return This builder for chaining. */ - public Builder setNamespace(java.lang.String value) { + public Builder setNamespace( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + namespace_ = value; onChanged(); return this; } /** - * - * *
      * The Namespace of the Kubernetes resource.
      * 
* * string namespace = 1; - * * @return This builder for chaining. */ public Builder clearNamespace() { - + namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** - * - * *
      * The Namespace of the Kubernetes resource.
      * 
* * string namespace = 1; - * * @param value The bytes for namespace to set. * @return This builder for chaining. */ - public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { + public Builder setNamespaceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namespace_ = value; onChanged(); return this; @@ -659,20 +613,18 @@ public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
      * The name of the Kubernetes resource.
      * 
* * string name = 2; - * * @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; @@ -681,21 +633,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the Kubernetes resource.
      * 
* * string name = 2; - * * @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 { @@ -703,68 +654,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the Kubernetes resource.
      * 
* * string name = 2; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The name of the Kubernetes resource.
      * 
* * string name = 2; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the Kubernetes resource.
      * 
* * string name = 2; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -774,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.NamespacedName) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.NamespacedName) private static final com.google.cloud.gkebackup.v1.NamespacedName DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.NamespacedName(); } @@ -788,16 +732,16 @@ public static com.google.cloud.gkebackup.v1.NamespacedName getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamespacedName parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamespacedName(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamespacedName parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamespacedName(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -812,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.NamespacedName getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNameOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNameOrBuilder.java similarity index 54% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNameOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNameOrBuilder.java index 5a40267..7be179d 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNameOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNameOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/common.proto package com.google.cloud.gkebackup.v1; -public interface NamespacedNameOrBuilder - extends +public interface NamespacedNameOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.NamespacedName) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Namespace of the Kubernetes resource.
    * 
* * string namespace = 1; - * * @return The namespace. */ java.lang.String getNamespace(); /** - * - * *
    * The Namespace of the Kubernetes resource.
    * 
* * string namespace = 1; - * * @return The bytes for namespace. */ - com.google.protobuf.ByteString getNamespaceBytes(); + com.google.protobuf.ByteString + getNamespaceBytes(); /** - * - * *
    * The name of the Kubernetes resource.
    * 
* * string name = 2; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the Kubernetes resource.
    * 
* * string name = 2; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNames.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNames.java similarity index 75% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNames.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNames.java index e92b544..773fcf8 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNames.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNames.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/common.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * A list of namespaced Kubernetes resources.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.NamespacedNames} */ -public final class NamespacedNames extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NamespacedNames extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.NamespacedNames) NamespacedNamesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NamespacedNames.newBuilder() to construct. private NamespacedNames(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NamespacedNames() { namespacedNames_ = 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 NamespacedNames(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private NamespacedNames( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,25 +54,22 @@ private NamespacedNames( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - namespacedNames_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - namespacedNames_.add( - input.readMessage( - com.google.cloud.gkebackup.v1.NamespacedName.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + namespacedNames_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + namespacedNames_.add( + input.readMessage(com.google.cloud.gkebackup.v1.NamespacedName.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,7 +77,8 @@ private NamespacedNames( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { namespacedNames_ = java.util.Collections.unmodifiableList(namespacedNames_); @@ -106,27 +87,22 @@ private NamespacedNames( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.CommonProto - .internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.CommonProto - .internal_static_google_cloud_gkebackup_v1_NamespacedNames_fieldAccessorTable + return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_NamespacedNames_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.NamespacedNames.class, - com.google.cloud.gkebackup.v1.NamespacedNames.Builder.class); + com.google.cloud.gkebackup.v1.NamespacedNames.class, com.google.cloud.gkebackup.v1.NamespacedNames.Builder.class); } public static final int NAMESPACED_NAMES_FIELD_NUMBER = 1; private java.util.List namespacedNames_; /** - * - * *
    * A list of namespaced Kubernetes resources.
    * 
@@ -138,8 +114,6 @@ public java.util.List getNamespace return namespacedNames_; } /** - * - * *
    * A list of namespaced Kubernetes resources.
    * 
@@ -147,13 +121,11 @@ public java.util.List getNamespace * repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNamespacedNamesOrBuilderList() { return namespacedNames_; } /** - * - * *
    * A list of namespaced Kubernetes resources.
    * 
@@ -165,8 +137,6 @@ public int getNamespacedNamesCount() { return namespacedNames_.size(); } /** - * - * *
    * A list of namespaced Kubernetes resources.
    * 
@@ -178,8 +148,6 @@ public com.google.cloud.gkebackup.v1.NamespacedName getNamespacedNames(int index return namespacedNames_.get(index); } /** - * - * *
    * A list of namespaced Kubernetes resources.
    * 
@@ -193,7 +161,6 @@ public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getNamespacedNamesO } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < namespacedNames_.size(); i++) { output.writeMessage(1, namespacedNames_.get(i)); } @@ -219,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < namespacedNames_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, namespacedNames_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, namespacedNames_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -229,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.NamespacedNames)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.NamespacedNames other = - (com.google.cloud.gkebackup.v1.NamespacedNames) obj; + com.google.cloud.gkebackup.v1.NamespacedNames other = (com.google.cloud.gkebackup.v1.NamespacedNames) obj; - if (!getNamespacedNamesList().equals(other.getNamespacedNamesList())) return false; + if (!getNamespacedNamesList() + .equals(other.getNamespacedNamesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -258,127 +227,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.NamespacedNames parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.NamespacedNames parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.NamespacedNames parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.NamespacedNames prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 list of namespaced Kubernetes resources.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.NamespacedNames} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.NamespacedNames) com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.CommonProto - .internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.CommonProto - .internal_static_google_cloud_gkebackup_v1_NamespacedNames_fieldAccessorTable + return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_NamespacedNames_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.NamespacedNames.class, - com.google.cloud.gkebackup.v1.NamespacedNames.Builder.class); + com.google.cloud.gkebackup.v1.NamespacedNames.class, com.google.cloud.gkebackup.v1.NamespacedNames.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.NamespacedNames.newBuilder() @@ -386,17 +346,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) { getNamespacedNamesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.CommonProto - .internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor; } @java.lang.Override @@ -431,8 +391,7 @@ public com.google.cloud.gkebackup.v1.NamespacedNames build() { @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacedNames buildPartial() { - com.google.cloud.gkebackup.v1.NamespacedNames result = - new com.google.cloud.gkebackup.v1.NamespacedNames(this); + com.google.cloud.gkebackup.v1.NamespacedNames result = new com.google.cloud.gkebackup.v1.NamespacedNames(this); int from_bitField0_ = bitField0_; if (namespacedNamesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -451,39 +410,38 @@ public com.google.cloud.gkebackup.v1.NamespacedNames 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.cloud.gkebackup.v1.NamespacedNames) { - return mergeFrom((com.google.cloud.gkebackup.v1.NamespacedNames) other); + return mergeFrom((com.google.cloud.gkebackup.v1.NamespacedNames)other); } else { super.mergeFrom(other); return this; @@ -510,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.NamespacedNames other) { namespacedNamesBuilder_ = null; namespacedNames_ = other.namespacedNames_; bitField0_ = (bitField0_ & ~0x00000001); - namespacedNamesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNamespacedNamesFieldBuilder() - : null; + namespacedNamesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNamespacedNamesFieldBuilder() : null; } else { namespacedNamesBuilder_.addAllMessages(other.namespacedNames_); } @@ -547,29 +504,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List namespacedNames_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNamespacedNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - namespacedNames_ = - new java.util.ArrayList(namespacedNames_); + namespacedNames_ = new java.util.ArrayList(namespacedNames_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedName, - com.google.cloud.gkebackup.v1.NamespacedName.Builder, - com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> - namespacedNamesBuilder_; + com.google.cloud.gkebackup.v1.NamespacedName, com.google.cloud.gkebackup.v1.NamespacedName.Builder, com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> namespacedNamesBuilder_; /** - * - * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -584,8 +533,6 @@ public java.util.List getNamespace } } /** - * - * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -600,8 +547,6 @@ public int getNamespacedNamesCount() { } } /** - * - * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -616,8 +561,6 @@ public com.google.cloud.gkebackup.v1.NamespacedName getNamespacedNames(int index } } /** - * - * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -639,8 +582,6 @@ public Builder setNamespacedNames( return this; } /** - * - * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -659,8 +600,6 @@ public Builder setNamespacedNames( return this; } /** - * - * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -681,8 +620,6 @@ public Builder addNamespacedNames(com.google.cloud.gkebackup.v1.NamespacedName v return this; } /** - * - * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -704,8 +641,6 @@ public Builder addNamespacedNames( return this; } /** - * - * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -724,8 +659,6 @@ public Builder addNamespacedNames( return this; } /** - * - * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -744,8 +677,6 @@ public Builder addNamespacedNames( return this; } /** - * - * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -756,7 +687,8 @@ public Builder addAllNamespacedNames( java.lang.Iterable values) { if (namespacedNamesBuilder_ == null) { ensureNamespacedNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, namespacedNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, namespacedNames_); onChanged(); } else { namespacedNamesBuilder_.addAllMessages(values); @@ -764,8 +696,6 @@ public Builder addAllNamespacedNames( return this; } /** - * - * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -783,8 +713,6 @@ public Builder clearNamespacedNames() { return this; } /** - * - * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -802,8 +730,6 @@ public Builder removeNamespacedNames(int index) { return this; } /** - * - * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -815,8 +741,6 @@ public com.google.cloud.gkebackup.v1.NamespacedName.Builder getNamespacedNamesBu return getNamespacedNamesFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -826,22 +750,19 @@ public com.google.cloud.gkebackup.v1.NamespacedName.Builder getNamespacedNamesBu public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getNamespacedNamesOrBuilder( int index) { if (namespacedNamesBuilder_ == null) { - return namespacedNames_.get(index); - } else { + return namespacedNames_.get(index); } else { return namespacedNamesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of namespaced Kubernetes resources.
      * 
* * repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1; */ - public java.util.List - getNamespacedNamesOrBuilderList() { + public java.util.List + getNamespacedNamesOrBuilderList() { if (namespacedNamesBuilder_ != null) { return namespacedNamesBuilder_.getMessageOrBuilderList(); } else { @@ -849,8 +770,6 @@ public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getNamespacedNamesO } } /** - * - * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -858,12 +777,10 @@ public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getNamespacedNamesO * repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1; */ public com.google.cloud.gkebackup.v1.NamespacedName.Builder addNamespacedNamesBuilder() { - return getNamespacedNamesFieldBuilder() - .addBuilder(com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance()); + return getNamespacedNamesFieldBuilder().addBuilder( + com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance()); } /** - * - * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -872,34 +789,26 @@ public com.google.cloud.gkebackup.v1.NamespacedName.Builder addNamespacedNamesBu */ public com.google.cloud.gkebackup.v1.NamespacedName.Builder addNamespacedNamesBuilder( int index) { - return getNamespacedNamesFieldBuilder() - .addBuilder(index, com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance()); + return getNamespacedNamesFieldBuilder().addBuilder( + index, com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance()); } /** - * - * *
      * A list of namespaced Kubernetes resources.
      * 
* * repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1; */ - public java.util.List - getNamespacedNamesBuilderList() { + public java.util.List + getNamespacedNamesBuilderList() { return getNamespacedNamesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedName, - com.google.cloud.gkebackup.v1.NamespacedName.Builder, - com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> + com.google.cloud.gkebackup.v1.NamespacedName, com.google.cloud.gkebackup.v1.NamespacedName.Builder, com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> getNamespacedNamesFieldBuilder() { if (namespacedNamesBuilder_ == null) { - namespacedNamesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedName, - com.google.cloud.gkebackup.v1.NamespacedName.Builder, - com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder>( + namespacedNamesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.NamespacedName, com.google.cloud.gkebackup.v1.NamespacedName.Builder, com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder>( namespacedNames_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -908,9 +817,9 @@ public com.google.cloud.gkebackup.v1.NamespacedName.Builder addNamespacedNamesBu } return namespacedNamesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -920,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.NamespacedNames) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.NamespacedNames) private static final com.google.cloud.gkebackup.v1.NamespacedNames DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.NamespacedNames(); } @@ -934,16 +843,16 @@ public static com.google.cloud.gkebackup.v1.NamespacedNames getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamespacedNames parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamespacedNames(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamespacedNames parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamespacedNames(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -958,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.NamespacedNames getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNamesOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNamesOrBuilder.java similarity index 63% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNamesOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNamesOrBuilder.java index 84e4e3d..66fde02 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNamesOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNamesOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/common.proto package com.google.cloud.gkebackup.v1; -public interface NamespacedNamesOrBuilder - extends +public interface NamespacedNamesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.NamespacedNames) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of namespaced Kubernetes resources.
    * 
* * repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1; */ - java.util.List getNamespacedNamesList(); + java.util.List + getNamespacedNamesList(); /** - * - * *
    * A list of namespaced Kubernetes resources.
    * 
@@ -44,8 +25,6 @@ public interface NamespacedNamesOrBuilder */ com.google.cloud.gkebackup.v1.NamespacedName getNamespacedNames(int index); /** - * - * *
    * A list of namespaced Kubernetes resources.
    * 
@@ -54,24 +33,21 @@ public interface NamespacedNamesOrBuilder */ int getNamespacedNamesCount(); /** - * - * *
    * A list of namespaced Kubernetes resources.
    * 
* * repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1; */ - java.util.List + java.util.List getNamespacedNamesOrBuilderList(); /** - * - * *
    * A list of namespaced Kubernetes resources.
    * 
* * repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1; */ - com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getNamespacedNamesOrBuilder(int index); + com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getNamespacedNamesOrBuilder( + int index); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Namespaces.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Namespaces.java similarity index 70% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Namespaces.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Namespaces.java index c2d6387..171b99e 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Namespaces.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Namespaces.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/common.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * A list of Kubernetes Namespaces
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.Namespaces} */ -public final class Namespaces extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Namespaces extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.Namespaces) NamespacesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Namespaces.newBuilder() to construct. private Namespaces(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Namespaces() { namespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Namespaces(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Namespaces( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,23 +54,22 @@ private Namespaces( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - namespaces_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - namespaces_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + namespaces_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + namespaces_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -95,7 +77,8 @@ private Namespaces( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { namespaces_ = namespaces_.getUnmodifiableView(); @@ -104,61 +87,50 @@ private Namespaces( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.CommonProto - .internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.CommonProto - .internal_static_google_cloud_gkebackup_v1_Namespaces_fieldAccessorTable + return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_Namespaces_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.Namespaces.class, - com.google.cloud.gkebackup.v1.Namespaces.Builder.class); + com.google.cloud.gkebackup.v1.Namespaces.class, com.google.cloud.gkebackup.v1.Namespaces.Builder.class); } public static final int NAMESPACES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList namespaces_; /** - * - * *
    * A list of Kubernetes Namespaces
    * 
* * repeated string namespaces = 1; - * * @return A list containing the namespaces. */ - public com.google.protobuf.ProtocolStringList getNamespacesList() { + public com.google.protobuf.ProtocolStringList + getNamespacesList() { return namespaces_; } /** - * - * *
    * A list of Kubernetes Namespaces
    * 
* * repeated string namespaces = 1; - * * @return The count of namespaces. */ public int getNamespacesCount() { return namespaces_.size(); } /** - * - * *
    * A list of Kubernetes Namespaces
    * 
* * repeated string namespaces = 1; - * * @param index The index of the element to return. * @return The namespaces at the given index. */ @@ -166,23 +138,20 @@ public java.lang.String getNamespaces(int index) { return namespaces_.get(index); } /** - * - * *
    * A list of Kubernetes Namespaces
    * 
* * repeated string namespaces = 1; - * * @param index The index of the value to return. * @return The bytes of the namespaces at the given index. */ - public com.google.protobuf.ByteString getNamespacesBytes(int index) { + public com.google.protobuf.ByteString + getNamespacesBytes(int index) { return namespaces_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,7 +163,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < namespaces_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespaces_.getRaw(i)); } @@ -223,14 +193,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.Namespaces)) { return super.equals(obj); } com.google.cloud.gkebackup.v1.Namespaces other = (com.google.cloud.gkebackup.v1.Namespaces) obj; - if (!getNamespacesList().equals(other.getNamespacesList())) return false; + if (!getNamespacesList() + .equals(other.getNamespacesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -251,127 +222,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.Namespaces parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.Namespaces parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.Namespaces parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.Namespaces parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.Namespaces parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.Namespaces parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.Namespaces parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.Namespaces parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.Namespaces parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.Namespaces parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.Namespaces parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.Namespaces parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.Namespaces parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.Namespaces parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.Namespaces prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 list of Kubernetes Namespaces
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.Namespaces} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.Namespaces) com.google.cloud.gkebackup.v1.NamespacesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.CommonProto - .internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.CommonProto - .internal_static_google_cloud_gkebackup_v1_Namespaces_fieldAccessorTable + return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_Namespaces_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.Namespaces.class, - com.google.cloud.gkebackup.v1.Namespaces.Builder.class); + com.google.cloud.gkebackup.v1.Namespaces.class, com.google.cloud.gkebackup.v1.Namespaces.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.Namespaces.newBuilder() @@ -379,15 +341,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -397,9 +360,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.CommonProto - .internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor; } @java.lang.Override @@ -418,8 +381,7 @@ public com.google.cloud.gkebackup.v1.Namespaces build() { @java.lang.Override public com.google.cloud.gkebackup.v1.Namespaces buildPartial() { - com.google.cloud.gkebackup.v1.Namespaces result = - new com.google.cloud.gkebackup.v1.Namespaces(this); + com.google.cloud.gkebackup.v1.Namespaces result = new com.google.cloud.gkebackup.v1.Namespaces(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { namespaces_ = namespaces_.getUnmodifiableView(); @@ -434,39 +396,38 @@ public com.google.cloud.gkebackup.v1.Namespaces 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.cloud.gkebackup.v1.Namespaces) { - return mergeFrom((com.google.cloud.gkebackup.v1.Namespaces) other); + return mergeFrom((com.google.cloud.gkebackup.v1.Namespaces)other); } else { super.mergeFrom(other); return this; @@ -513,55 +474,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList namespaces_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList namespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNamespacesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { namespaces_ = new com.google.protobuf.LazyStringArrayList(namespaces_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * A list of Kubernetes Namespaces
      * 
* * repeated string namespaces = 1; - * * @return A list containing the namespaces. */ - public com.google.protobuf.ProtocolStringList getNamespacesList() { + public com.google.protobuf.ProtocolStringList + getNamespacesList() { return namespaces_.getUnmodifiableView(); } /** - * - * *
      * A list of Kubernetes Namespaces
      * 
* * repeated string namespaces = 1; - * * @return The count of namespaces. */ public int getNamespacesCount() { return namespaces_.size(); } /** - * - * *
      * A list of Kubernetes Namespaces
      * 
* * repeated string namespaces = 1; - * * @param index The index of the element to return. * @return The namespaces at the given index. */ @@ -569,90 +519,80 @@ public java.lang.String getNamespaces(int index) { return namespaces_.get(index); } /** - * - * *
      * A list of Kubernetes Namespaces
      * 
* * repeated string namespaces = 1; - * * @param index The index of the value to return. * @return The bytes of the namespaces at the given index. */ - public com.google.protobuf.ByteString getNamespacesBytes(int index) { + public com.google.protobuf.ByteString + getNamespacesBytes(int index) { return namespaces_.getByteString(index); } /** - * - * *
      * A list of Kubernetes Namespaces
      * 
* * repeated string namespaces = 1; - * * @param index The index to set the value at. * @param value The namespaces to set. * @return This builder for chaining. */ - public Builder setNamespaces(int index, java.lang.String value) { + public Builder setNamespaces( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNamespacesIsMutable(); + throw new NullPointerException(); + } + ensureNamespacesIsMutable(); namespaces_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of Kubernetes Namespaces
      * 
* * repeated string namespaces = 1; - * * @param value The namespaces to add. * @return This builder for chaining. */ - public Builder addNamespaces(java.lang.String value) { + public Builder addNamespaces( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNamespacesIsMutable(); + throw new NullPointerException(); + } + ensureNamespacesIsMutable(); namespaces_.add(value); onChanged(); return this; } /** - * - * *
      * A list of Kubernetes Namespaces
      * 
* * repeated string namespaces = 1; - * * @param values The namespaces to add. * @return This builder for chaining. */ - public Builder addAllNamespaces(java.lang.Iterable values) { + public Builder addAllNamespaces( + java.lang.Iterable values) { ensureNamespacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, namespaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, namespaces_); onChanged(); return this; } /** - * - * *
      * A list of Kubernetes Namespaces
      * 
* * repeated string namespaces = 1; - * * @return This builder for chaining. */ public Builder clearNamespaces() { @@ -662,30 +602,28 @@ public Builder clearNamespaces() { return this; } /** - * - * *
      * A list of Kubernetes Namespaces
      * 
* * repeated string namespaces = 1; - * * @param value The bytes of the namespaces to add. * @return This builder for chaining. */ - public Builder addNamespacesBytes(com.google.protobuf.ByteString value) { + public Builder addNamespacesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureNamespacesIsMutable(); namespaces_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -695,12 +633,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.Namespaces) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.Namespaces) private static final com.google.cloud.gkebackup.v1.Namespaces DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.Namespaces(); } @@ -709,16 +647,16 @@ public static com.google.cloud.gkebackup.v1.Namespaces getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Namespaces parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Namespaces(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Namespaces parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Namespaces(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -733,4 +671,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.Namespaces getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacesOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacesOrBuilder.java similarity index 58% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacesOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacesOrBuilder.java index ae7a870..ef91139 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacesOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacesOrBuilder.java @@ -1,76 +1,50 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/common.proto package com.google.cloud.gkebackup.v1; -public interface NamespacesOrBuilder - extends +public interface NamespacesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.Namespaces) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of Kubernetes Namespaces
    * 
* * repeated string namespaces = 1; - * * @return A list containing the namespaces. */ - java.util.List getNamespacesList(); + java.util.List + getNamespacesList(); /** - * - * *
    * A list of Kubernetes Namespaces
    * 
* * repeated string namespaces = 1; - * * @return The count of namespaces. */ int getNamespacesCount(); /** - * - * *
    * A list of Kubernetes Namespaces
    * 
* * repeated string namespaces = 1; - * * @param index The index of the element to return. * @return The namespaces at the given index. */ java.lang.String getNamespaces(int index); /** - * - * *
    * A list of Kubernetes Namespaces
    * 
* * repeated string namespaces = 1; - * * @param index The index of the value to return. * @return The bytes of the namespaces at the given index. */ - com.google.protobuf.ByteString getNamespacesBytes(int index); + com.google.protobuf.ByteString + getNamespacesBytes(int index); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadata.java similarity index 71% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadata.java index 33af447..aaa595f 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,15 +28,16 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,76 +56,68 @@ private OperationMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: - { - requestedCancellation_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 48: { + + requestedCancellation_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -150,40 +125,34 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.OperationMetadata.class, - com.google.cloud.gkebackup.v1.OperationMetadata.Builder.class); + com.google.cloud.gkebackup.v1.OperationMetadata.class, com.google.cloud.gkebackup.v1.OperationMetadata.Builder.class); } 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 @@ -191,15 +160,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * 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 @@ -207,14 +172,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() { @@ -224,15 +186,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 @@ -240,15 +198,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * 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 @@ -256,14 +210,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() { @@ -273,14 +224,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -289,29 +237,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -322,14 +270,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -338,29 +283,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -371,14 +316,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -387,29 +329,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -420,8 +362,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -430,7 +370,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -441,14 +380,11 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -457,29 +393,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -488,7 +424,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -500,7 +435,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -532,10 +468,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -547,7 +485,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -560,27 +499,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.cloud.gkebackup.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.OperationMetadata other = - (com.google.cloud.gkebackup.v1.OperationMetadata) obj; + com.google.cloud.gkebackup.v1.OperationMetadata other = (com.google.cloud.gkebackup.v1.OperationMetadata) 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 (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -607,7 +552,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().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) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -615,127 +561,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.OperationMetadata) com.google.cloud.gkebackup.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.OperationMetadata.class, - com.google.cloud.gkebackup.v1.OperationMetadata.Builder.class); + com.google.cloud.gkebackup.v1.OperationMetadata.class, com.google.cloud.gkebackup.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.OperationMetadata.newBuilder() @@ -743,15 +680,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -781,9 +719,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -802,8 +740,7 @@ public com.google.cloud.gkebackup.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.gkebackup.v1.OperationMetadata buildPartial() { - com.google.cloud.gkebackup.v1.OperationMetadata result = - new com.google.cloud.gkebackup.v1.OperationMetadata(this); + com.google.cloud.gkebackup.v1.OperationMetadata result = new com.google.cloud.gkebackup.v1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -827,39 +764,38 @@ public com.google.cloud.gkebackup.v1.OperationMetadata 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.cloud.gkebackup.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.gkebackup.v1.OperationMetadata) other); + return mergeFrom((com.google.cloud.gkebackup.v1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -867,8 +803,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.OperationMetadata other) { - if (other == com.google.cloud.gkebackup.v1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -925,58 +860,39 @@ public Builder mergeFrom( 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 createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * 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) { @@ -992,17 +908,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(); onChanged(); @@ -1013,21 +926,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1039,15 +948,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() { if (createTimeBuilder_ == null) { @@ -1061,64 +966,48 @@ 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() { - + onChanged(); 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_; @@ -1126,35 +1015,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 endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * 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() { @@ -1165,14 +1043,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) { @@ -1188,16 +1063,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(); onChanged(); @@ -1208,20 +1081,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 (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1233,14 +1103,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() { if (endTimeBuilder_ == null) { @@ -1254,59 +1121,48 @@ 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() { - + onChanged(); 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_; @@ -1314,20 +1170,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1336,21 +1190,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1358,61 +1211,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1420,20 +1266,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1442,21 +1286,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1464,61 +1307,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1526,20 +1362,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1548,21 +1382,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1570,70 +1403,61 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { + public Builder setStatusMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1642,7 +1466,6 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -1650,8 +1473,6 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1660,19 +1481,16 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1681,11 +1499,10 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1693,20 +1510,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1715,21 +1530,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1737,68 +1551,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1808,12 +1615,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.OperationMetadata) private static final com.google.cloud.gkebackup.v1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.OperationMetadata(); } @@ -1822,16 +1629,16 @@ public static com.google.cloud.gkebackup.v1.OperationMetadata getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1846,4 +1653,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadataOrBuilder.java similarity index 75% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadataOrBuilder.java index 15b4296..f59dd07 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.OperationMetadata) 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. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Restore.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Restore.java similarity index 69% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Restore.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Restore.java index 8ae6942..d69201c 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Restore.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Restore.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/restore.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Represents both a request to Restore some portion of a Backup into
  * a target GKE cluster and a record of the restore operation itself.
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.gkebackup.v1.Restore}
  */
-public final class Restore extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Restore extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.Restore)
     RestoreOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Restore.newBuilder() to construct.
   private Restore(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Restore() {
     name_ = "";
     uid_ = "";
@@ -52,15 +34,16 @@ private Restore() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Restore();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Restore(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -80,163 +63,146 @@ private Restore(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              uid_ = s;
-              break;
-            }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            uid_ = s;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              backup_ = s;
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              cluster_ = s;
-              break;
-            }
-          case 66:
-            {
-              com.google.cloud.gkebackup.v1.RestoreConfig.Builder subBuilder = null;
-              if (restoreConfig_ != null) {
-                subBuilder = restoreConfig_.toBuilder();
-              }
-              restoreConfig_ =
-                  input.readMessage(
-                      com.google.cloud.gkebackup.v1.RestoreConfig.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(restoreConfig_);
-                restoreConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 74:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
-            }
-          case 80:
-            {
-              int rawValue = input.readEnum();
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              state_ = rawValue;
-              break;
-            }
-          case 90:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            description_ = s;
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              stateReason_ = s;
-              break;
-            }
-          case 98:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (completeTime_ != null) {
-                subBuilder = completeTime_.toBuilder();
-              }
-              completeTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(completeTime_);
-                completeTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            backup_ = s;
+            break;
+          }
+          case 58: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            cluster_ = s;
+            break;
+          }
+          case 66: {
+            com.google.cloud.gkebackup.v1.RestoreConfig.Builder subBuilder = null;
+            if (restoreConfig_ != null) {
+              subBuilder = restoreConfig_.toBuilder();
             }
-          case 104:
-            {
-              resourcesRestoredCount_ = input.readInt32();
-              break;
+            restoreConfig_ = input.readMessage(com.google.cloud.gkebackup.v1.RestoreConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(restoreConfig_);
+              restoreConfig_ = subBuilder.buildPartial();
             }
-          case 112:
-            {
-              resourcesExcludedCount_ = input.readInt32();
-              break;
+
+            break;
+          }
+          case 74: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 120:
-            {
-              resourcesFailedCount_ = input.readInt32();
-              break;
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          case 80: {
+            int rawValue = input.readEnum();
+
+            state_ = rawValue;
+            break;
+          }
+          case 90: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            stateReason_ = s;
+            break;
+          }
+          case 98: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (completeTime_ != null) {
+              subBuilder = completeTime_.toBuilder();
             }
-          case 128:
-            {
-              volumesRestoredCount_ = input.readInt32();
-              break;
+            completeTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(completeTime_);
+              completeTime_ = subBuilder.buildPartial();
             }
-          case 138:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              etag_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          case 104: {
+
+            resourcesRestoredCount_ = input.readInt32();
+            break;
+          }
+          case 112: {
+
+            resourcesExcludedCount_ = input.readInt32();
+            break;
+          }
+          case 120: {
+
+            resourcesFailedCount_ = input.readInt32();
+            break;
+          }
+          case 128: {
+
+            volumesRestoredCount_ = input.readInt32();
+            break;
+          }
+          case 138: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            etag_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -244,52 +210,48 @@ private Restore(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkebackup.v1.RestoreProto
-        .internal_static_google_cloud_gkebackup_v1_Restore_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_Restore_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 9:
         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.cloud.gkebackup.v1.RestoreProto
-        .internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable
+    return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkebackup.v1.Restore.class,
-            com.google.cloud.gkebackup.v1.Restore.Builder.class);
+            com.google.cloud.gkebackup.v1.Restore.class, com.google.cloud.gkebackup.v1.Restore.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Possible values for state of the Restore.
    * 
* * Protobuf enum {@code google.cloud.gkebackup.v1.Restore.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The Restore resource is in the process of being created.
      * 
@@ -298,8 +260,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The Restore resource has been created and the associated RestoreJob
      * Kubernetes resource has been injected into target cluster.
@@ -309,8 +269,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CREATING(1),
     /**
-     *
-     *
      * 
      * The gkebackup agent in the cluster has begun executing the restore
      * operation.
@@ -320,8 +278,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     IN_PROGRESS(2),
     /**
-     *
-     *
      * 
      * The restore operation has completed successfully. Restored workloads may
      * not yet be operational.
@@ -331,8 +287,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     SUCCEEDED(3),
     /**
-     *
-     *
      * 
      * The restore operation has failed.
      * 
@@ -341,8 +295,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(4), /** - * - * *
      * This Restore resource is in the process of being deleted.
      * 
@@ -354,8 +306,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The Restore resource is in the process of being created.
      * 
@@ -364,8 +314,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The Restore resource has been created and the associated RestoreJob
      * Kubernetes resource has been injected into target cluster.
@@ -375,8 +323,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CREATING_VALUE = 1;
     /**
-     *
-     *
      * 
      * The gkebackup agent in the cluster has begun executing the restore
      * operation.
@@ -386,8 +332,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int IN_PROGRESS_VALUE = 2;
     /**
-     *
-     *
      * 
      * The restore operation has completed successfully. Restored workloads may
      * not yet be operational.
@@ -397,8 +341,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SUCCEEDED_VALUE = 3;
     /**
-     *
-     *
      * 
      * The restore operation has failed.
      * 
@@ -407,8 +349,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 4; /** - * - * *
      * This Restore resource is in the process of being deleted.
      * 
@@ -417,6 +357,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -441,55 +382,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return IN_PROGRESS; - case 3: - return SUCCEEDED; - case 4: - return FAILED; - case 5: - return DELETING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return IN_PROGRESS; + case 3: return SUCCEEDED; + case 4: return FAILED; + case 5: return DELETING; + 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< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.gkebackup.v1.Restore.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -509,15 +447,12 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The full name of the Restore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -526,30 +461,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 full name of the Restore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* * 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 { @@ -560,15 +495,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int UID_FIELD_NUMBER = 2; private volatile java.lang.Object uid_; /** - * - * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -577,30 +509,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** - * - * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -611,15 +543,11 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The timestamp when this Restore resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -627,15 +555,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The timestamp when this Restore resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -643,14 +567,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The timestamp when this Restore resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -660,16 +581,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The timestamp when this Restore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -677,16 +594,12 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The timestamp when this Restore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -694,15 +607,12 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The timestamp when this Restore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -712,14 +622,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** - * - * *
    * User specified descriptive string for this Restore.
    * 
* * string description = 5; - * * @return The description. */ @java.lang.Override @@ -728,29 +635,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * User specified descriptive string for this Restore.
    * 
* * string description = 5; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -761,8 +668,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int BACKUP_FIELD_NUMBER = 6; private volatile java.lang.Object backup_; /** - * - * *
    * Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore
    * will restore. Note that this Backup must be a sub-resource of the
@@ -770,10 +675,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * Format: projects/*/locations/*/backupPlans/*/backups/*.
    * 
* - * - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The backup. */ @java.lang.Override @@ -782,15 +684,14 @@ public java.lang.String getBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backup_ = s; return s; } } /** - * - * *
    * Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore
    * will restore. Note that this Backup must be a sub-resource of the
@@ -798,18 +699,17 @@ public java.lang.String getBackup() {
    * Format: projects/*/locations/*/backupPlans/*/backups/*.
    * 
* - * - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for backup. */ @java.lang.Override - public com.google.protobuf.ByteString getBackupBytes() { + public com.google.protobuf.ByteString + getBackupBytes() { java.lang.Object ref = backup_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backup_ = b; return b; } else { @@ -820,8 +720,6 @@ public com.google.protobuf.ByteString getBackupBytes() { public static final int CLUSTER_FIELD_NUMBER = 7; private volatile java.lang.Object cluster_; /** - * - * *
    * Output only. The target cluster into which this Restore will restore data.
    * Valid formats:
@@ -830,10 +728,7 @@ public com.google.protobuf.ByteString getBackupBytes() {
    * Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
    * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The cluster. */ @java.lang.Override @@ -842,15 +737,14 @@ public java.lang.String getCluster() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; } } /** - * - * *
    * Output only. The target cluster into which this Restore will restore data.
    * Valid formats:
@@ -859,18 +753,17 @@ public java.lang.String getCluster() {
    * Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
    * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for cluster. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterBytes() { + public com.google.protobuf.ByteString + getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cluster_ = b; return b; } else { @@ -881,17 +774,12 @@ public com.google.protobuf.ByteString getClusterBytes() { public static final int RESTORE_CONFIG_FIELD_NUMBER = 8; private com.google.cloud.gkebackup.v1.RestoreConfig restoreConfig_; /** - * - * *
    * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
    * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the restoreConfig field is set. */ @java.lang.Override @@ -899,36 +787,25 @@ public boolean hasRestoreConfig() { return restoreConfig_ != null; } /** - * - * *
    * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
    * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The restoreConfig. */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfig getRestoreConfig() { - return restoreConfig_ == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() - : restoreConfig_; + return restoreConfig_ == null ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() : restoreConfig_; } /** - * - * *
    * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
    * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBuilder() { @@ -936,23 +813,24 @@ public com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBu } public static final int LABELS_FIELD_NUMBER = 9; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.gkebackup.v1.RestoreProto - .internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + 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_; } @@ -961,30 +839,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 9; */ + @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(); } /** - * - * *
    * A set of custom labels supplied by user.
    * 
@@ -992,12 +868,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 9; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * A set of custom labels supplied by user.
    * 
@@ -1005,16 +880,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + 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; } /** - * - * *
    * A set of custom labels supplied by user.
    * 
@@ -1022,11 +897,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 9; */ @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(); } @@ -1036,54 +912,38 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int STATE_FIELD_NUMBER = 10; private int state_; /** - * - * *
    * Output only. The current state of the Restore.
    * 
* - * - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The current state of the Restore.
    * 
* - * - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.gkebackup.v1.Restore.State getState() { + @java.lang.Override public com.google.cloud.gkebackup.v1.Restore.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.Restore.State result = - com.google.cloud.gkebackup.v1.Restore.State.valueOf(state_); + com.google.cloud.gkebackup.v1.Restore.State result = com.google.cloud.gkebackup.v1.Restore.State.valueOf(state_); return result == null ? com.google.cloud.gkebackup.v1.Restore.State.UNRECOGNIZED : result; } public static final int STATE_REASON_FIELD_NUMBER = 11; private volatile java.lang.Object stateReason_; /** - * - * *
    * Output only. Human-readable description of why the Restore is in its current state.
    * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stateReason. */ @java.lang.Override @@ -1092,29 +952,29 @@ public java.lang.String getStateReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateReason_ = s; return s; } } /** - * - * *
    * Output only. Human-readable description of why the Restore is in its current state.
    * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stateReason. */ @java.lang.Override - public com.google.protobuf.ByteString getStateReasonBytes() { + public com.google.protobuf.ByteString + getStateReasonBytes() { java.lang.Object ref = stateReason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stateReason_ = b; return b; } else { @@ -1125,16 +985,11 @@ public com.google.protobuf.ByteString getStateReasonBytes() { public static final int COMPLETE_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp completeTime_; /** - * - * *
    * Output only. Timestamp of when the restore operation completed.
    * 
* - * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the completeTime field is set. */ @java.lang.Override @@ -1142,34 +997,23 @@ public boolean hasCompleteTime() { return completeTime_ != null; } /** - * - * *
    * Output only. Timestamp of when the restore operation completed.
    * 
* - * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The completeTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCompleteTime() { - return completeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : completeTime_; + return completeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; } /** - * - * *
    * Output only. Timestamp of when the restore operation completed.
    * 
* - * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { @@ -1179,14 +1023,11 @@ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { public static final int RESOURCES_RESTORED_COUNT_FIELD_NUMBER = 13; private int resourcesRestoredCount_; /** - * - * *
    * Output only. Number of resources restored during the restore execution.
    * 
* * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The resourcesRestoredCount. */ @java.lang.Override @@ -1197,14 +1038,11 @@ public int getResourcesRestoredCount() { public static final int RESOURCES_EXCLUDED_COUNT_FIELD_NUMBER = 14; private int resourcesExcludedCount_; /** - * - * *
    * Output only. Number of resources excluded during the restore execution.
    * 
* * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The resourcesExcludedCount. */ @java.lang.Override @@ -1215,15 +1053,12 @@ public int getResourcesExcludedCount() { public static final int RESOURCES_FAILED_COUNT_FIELD_NUMBER = 15; private int resourcesFailedCount_; /** - * - * *
    * Output only. Number of resources that failed to be restored during the restore
    * execution.
    * 
* * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The resourcesFailedCount. */ @java.lang.Override @@ -1234,14 +1069,11 @@ public int getResourcesFailedCount() { public static final int VOLUMES_RESTORED_COUNT_FIELD_NUMBER = 16; private int volumesRestoredCount_; /** - * - * *
    * Output only. Number of volumes restored during the restore execution.
    * 
* * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The volumesRestoredCount. */ @java.lang.Override @@ -1252,8 +1084,6 @@ public int getVolumesRestoredCount() { public static final int ETAG_FIELD_NUMBER = 17; private volatile java.lang.Object etag_; /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a restore from overwriting each other.
@@ -1266,7 +1096,6 @@ public int getVolumesRestoredCount() {
    * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ @java.lang.Override @@ -1275,15 +1104,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; } } /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a restore from overwriting each other.
@@ -1296,15 +1124,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1313,7 +1142,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1325,7 +1153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -1350,8 +1179,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (restoreConfig_ != null) { output.writeMessage(8, getRestoreConfig()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 9); if (state_ != com.google.cloud.gkebackup.v1.Restore.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(10, state_); } @@ -1392,10 +1225,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -1407,38 +1242,45 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, cluster_); } if (restoreConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRestoreConfig()); - } - 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(9, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getRestoreConfig()); + } + 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(9, labels__); } if (state_ != com.google.cloud.gkebackup.v1.Restore.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, stateReason_); } if (completeTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getCompleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getCompleteTime()); } if (resourcesRestoredCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, resourcesRestoredCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(13, resourcesRestoredCount_); } if (resourcesExcludedCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, resourcesExcludedCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(14, resourcesExcludedCount_); } if (resourcesFailedCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(15, resourcesFailedCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(15, resourcesFailedCount_); } if (volumesRestoredCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(16, volumesRestoredCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(16, volumesRestoredCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, etag_); @@ -1451,42 +1293,58 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.Restore)) { return super.equals(obj); } com.google.cloud.gkebackup.v1.Restore other = (com.google.cloud.gkebackup.v1.Restore) obj; - if (!getName().equals(other.getName())) return false; - if (!getUid().equals(other.getUid())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUid() + .equals(other.getUid())) 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 (!getDescription().equals(other.getDescription())) return false; - if (!getBackup().equals(other.getBackup())) return false; - if (!getCluster().equals(other.getCluster())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getBackup() + .equals(other.getBackup())) return false; + if (!getCluster() + .equals(other.getCluster())) return false; if (hasRestoreConfig() != other.hasRestoreConfig()) return false; if (hasRestoreConfig()) { - if (!getRestoreConfig().equals(other.getRestoreConfig())) return false; + if (!getRestoreConfig() + .equals(other.getRestoreConfig())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (state_ != other.state_) return false; - if (!getStateReason().equals(other.getStateReason())) return false; + if (!getStateReason() + .equals(other.getStateReason())) return false; if (hasCompleteTime() != other.hasCompleteTime()) return false; if (hasCompleteTime()) { - if (!getCompleteTime().equals(other.getCompleteTime())) return false; - } - if (getResourcesRestoredCount() != other.getResourcesRestoredCount()) return false; - if (getResourcesExcludedCount() != other.getResourcesExcludedCount()) return false; - if (getResourcesFailedCount() != other.getResourcesFailedCount()) return false; - if (getVolumesRestoredCount() != other.getVolumesRestoredCount()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getCompleteTime() + .equals(other.getCompleteTime())) return false; + } + if (getResourcesRestoredCount() + != other.getResourcesRestoredCount()) return false; + if (getResourcesExcludedCount() + != other.getResourcesExcludedCount()) return false; + if (getResourcesFailedCount() + != other.getResourcesFailedCount()) return false; + if (getVolumesRestoredCount() + != other.getVolumesRestoredCount()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1547,103 +1405,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.Restore parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.Restore parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.Restore parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.Restore parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.gkebackup.v1.Restore parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.Restore parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.Restore parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.Restore parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.Restore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.Restore parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.Restore 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.cloud.gkebackup.v1.Restore parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.Restore parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.Restore parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.Restore prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 both a request to Restore some portion of a Backup into
    * a target GKE cluster and a record of the restore operation itself.
@@ -1652,43 +1504,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.Restore}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.Restore)
       com.google.cloud.gkebackup.v1.RestoreOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkebackup.v1.RestoreProto
-          .internal_static_google_cloud_gkebackup_v1_Restore_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_Restore_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 9:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 9:
           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.cloud.gkebackup.v1.RestoreProto
-          .internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.Restore.class,
-              com.google.cloud.gkebackup.v1.Restore.Builder.class);
+              com.google.cloud.gkebackup.v1.Restore.class, com.google.cloud.gkebackup.v1.Restore.Builder.class);
     }
 
     // Construct using com.google.cloud.gkebackup.v1.Restore.newBuilder()
@@ -1696,15 +1548,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1761,9 +1614,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkebackup.v1.RestoreProto
-          .internal_static_google_cloud_gkebackup_v1_Restore_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_Restore_descriptor;
     }
 
     @java.lang.Override
@@ -1782,8 +1635,7 @@ public com.google.cloud.gkebackup.v1.Restore build() {
 
     @java.lang.Override
     public com.google.cloud.gkebackup.v1.Restore buildPartial() {
-      com.google.cloud.gkebackup.v1.Restore result =
-          new com.google.cloud.gkebackup.v1.Restore(this);
+      com.google.cloud.gkebackup.v1.Restore result = new com.google.cloud.gkebackup.v1.Restore(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.uid_ = uid_;
@@ -1827,39 +1679,38 @@ public com.google.cloud.gkebackup.v1.Restore 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.cloud.gkebackup.v1.Restore) {
-        return mergeFrom((com.google.cloud.gkebackup.v1.Restore) other);
+        return mergeFrom((com.google.cloud.gkebackup.v1.Restore)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1897,7 +1748,8 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.Restore other) {
       if (other.hasRestoreConfig()) {
         mergeRestoreConfig(other.getRestoreConfig());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (other.state_ != 0) {
         setStateValue(other.getStateValue());
       }
@@ -1952,26 +1804,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The full name of the Restore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* * 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; @@ -1980,22 +1829,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The full name of the Restore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* * 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 { @@ -2003,64 +1851,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The full name of the Restore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The full name of the Restore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The full name of the Restore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2068,21 +1909,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -2091,22 +1930,21 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -2114,64 +1952,57 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { + public Builder setUid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { + public Builder setUidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); return this; @@ -2179,58 +2010,39 @@ public Builder setUidBytes(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 timestamp when this Restore resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The timestamp when this Restore resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when this Restore resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2246,17 +2058,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this Restore resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2267,21 +2076,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when this Restore resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2293,15 +2098,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this Restore resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2315,64 +2116,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp when this Restore resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when this Restore resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The timestamp when this Restore resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2380,61 +2165,42 @@ 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 timestamp when this Restore resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The timestamp when this Restore resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this Restore resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2450,18 +2216,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this Restore resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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(); onChanged(); @@ -2472,22 +2235,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when this Restore resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2499,16 +2258,12 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this Restore resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2522,67 +2277,51 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The timestamp when this Restore resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when this Restore resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this Restore resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp 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> 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_; @@ -2590,20 +2329,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object description_ = ""; /** - * - * *
      * User specified descriptive string for this Restore.
      * 
* * string description = 5; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2612,21 +2349,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * User specified descriptive string for this Restore.
      * 
* * string description = 5; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2634,61 +2370,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * User specified descriptive string for this Restore.
      * 
* * string description = 5; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * User specified descriptive string for this Restore.
      * 
* * string description = 5; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * User specified descriptive string for this Restore.
      * 
* * string description = 5; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2696,8 +2425,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object backup_ = ""; /** - * - * *
      * Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore
      * will restore. Note that this Backup must be a sub-resource of the
@@ -2705,16 +2432,14 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      * Format: projects/*/locations/*/backupPlans/*/backups/*.
      * 
* - * - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The backup. */ public java.lang.String getBackup() { java.lang.Object ref = backup_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backup_ = s; return s; @@ -2723,8 +2448,6 @@ public java.lang.String getBackup() { } } /** - * - * *
      * Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore
      * will restore. Note that this Backup must be a sub-resource of the
@@ -2732,17 +2455,16 @@ public java.lang.String getBackup() {
      * Format: projects/*/locations/*/backupPlans/*/backups/*.
      * 
* - * - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for backup. */ - public com.google.protobuf.ByteString getBackupBytes() { + public com.google.protobuf.ByteString + getBackupBytes() { java.lang.Object ref = backup_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backup_ = b; return b; } else { @@ -2750,8 +2472,6 @@ public com.google.protobuf.ByteString getBackupBytes() { } } /** - * - * *
      * Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore
      * will restore. Note that this Backup must be a sub-resource of the
@@ -2759,25 +2479,21 @@ public com.google.protobuf.ByteString getBackupBytes() {
      * Format: projects/*/locations/*/backupPlans/*/backups/*.
      * 
* - * - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The backup to set. * @return This builder for chaining. */ - public Builder setBackup(java.lang.String value) { + public Builder setBackup( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + backup_ = value; onChanged(); return this; } /** - * - * *
      * Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore
      * will restore. Note that this Backup must be a sub-resource of the
@@ -2785,21 +2501,16 @@ public Builder setBackup(java.lang.String value) {
      * Format: projects/*/locations/*/backupPlans/*/backups/*.
      * 
* - * - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearBackup() { - + backup_ = getDefaultInstance().getBackup(); onChanged(); return this; } /** - * - * *
      * Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore
      * will restore. Note that this Backup must be a sub-resource of the
@@ -2807,19 +2518,17 @@ public Builder clearBackup() {
      * Format: projects/*/locations/*/backupPlans/*/backups/*.
      * 
* - * - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for backup to set. * @return This builder for chaining. */ - public Builder setBackupBytes(com.google.protobuf.ByteString value) { + public Builder setBackupBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backup_ = value; onChanged(); return this; @@ -2827,8 +2536,6 @@ public Builder setBackupBytes(com.google.protobuf.ByteString value) { private java.lang.Object cluster_ = ""; /** - * - * *
      * Output only. The target cluster into which this Restore will restore data.
      * Valid formats:
@@ -2837,16 +2544,14 @@ public Builder setBackupBytes(com.google.protobuf.ByteString value) {
      * Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
      * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The cluster. */ public java.lang.String getCluster() { java.lang.Object ref = cluster_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; @@ -2855,8 +2560,6 @@ public java.lang.String getCluster() { } } /** - * - * *
      * Output only. The target cluster into which this Restore will restore data.
      * Valid formats:
@@ -2865,17 +2568,16 @@ public java.lang.String getCluster() {
      * Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
      * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for cluster. */ - public com.google.protobuf.ByteString getClusterBytes() { + public com.google.protobuf.ByteString + getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cluster_ = b; return b; } else { @@ -2883,8 +2585,6 @@ public com.google.protobuf.ByteString getClusterBytes() { } } /** - * - * *
      * Output only. The target cluster into which this Restore will restore data.
      * Valid formats:
@@ -2893,25 +2593,21 @@ public com.google.protobuf.ByteString getClusterBytes() {
      * Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
      * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The cluster to set. * @return This builder for chaining. */ - public Builder setCluster(java.lang.String value) { + public Builder setCluster( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cluster_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The target cluster into which this Restore will restore data.
      * Valid formats:
@@ -2920,21 +2616,16 @@ public Builder setCluster(java.lang.String value) {
      * Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
      * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearCluster() { - + cluster_ = getDefaultInstance().getCluster(); onChanged(); return this; } /** - * - * *
      * Output only. The target cluster into which this Restore will restore data.
      * Valid formats:
@@ -2943,19 +2634,17 @@ public Builder clearCluster() {
      * Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
      * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for cluster to set. * @return This builder for chaining. */ - public Builder setClusterBytes(com.google.protobuf.ByteString value) { + public Builder setClusterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cluster_ = value; onChanged(); return this; @@ -2963,61 +2652,42 @@ public Builder setClusterBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkebackup.v1.RestoreConfig restoreConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig, - com.google.cloud.gkebackup.v1.RestoreConfig.Builder, - com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> - restoreConfigBuilder_; + com.google.cloud.gkebackup.v1.RestoreConfig, com.google.cloud.gkebackup.v1.RestoreConfig.Builder, com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> restoreConfigBuilder_; /** - * - * *
      * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
      * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the restoreConfig field is set. */ public boolean hasRestoreConfig() { return restoreConfigBuilder_ != null || restoreConfig_ != null; } /** - * - * *
      * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
      * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The restoreConfig. */ public com.google.cloud.gkebackup.v1.RestoreConfig getRestoreConfig() { if (restoreConfigBuilder_ == null) { - return restoreConfig_ == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() - : restoreConfig_; + return restoreConfig_ == null ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() : restoreConfig_; } else { return restoreConfigBuilder_.getMessage(); } } /** - * - * *
      * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
      * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig value) { if (restoreConfigBuilder_ == null) { @@ -3033,16 +2703,12 @@ public Builder setRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig valu return this; } /** - * - * *
      * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
      * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRestoreConfig( com.google.cloud.gkebackup.v1.RestoreConfig.Builder builderForValue) { @@ -3056,24 +2722,18 @@ public Builder setRestoreConfig( return this; } /** - * - * *
      * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
      * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig value) { if (restoreConfigBuilder_ == null) { if (restoreConfig_ != null) { restoreConfig_ = - com.google.cloud.gkebackup.v1.RestoreConfig.newBuilder(restoreConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkebackup.v1.RestoreConfig.newBuilder(restoreConfig_).mergeFrom(value).buildPartial(); } else { restoreConfig_ = value; } @@ -3085,16 +2745,12 @@ public Builder mergeRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig va return this; } /** - * - * *
      * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
      * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRestoreConfig() { if (restoreConfigBuilder_ == null) { @@ -3108,87 +2764,72 @@ public Builder clearRestoreConfig() { return this; } /** - * - * *
      * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
      * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkebackup.v1.RestoreConfig.Builder getRestoreConfigBuilder() { - + onChanged(); return getRestoreConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
      * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBuilder() { if (restoreConfigBuilder_ != null) { return restoreConfigBuilder_.getMessageOrBuilder(); } else { - return restoreConfig_ == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() - : restoreConfig_; + return restoreConfig_ == null ? + com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() : restoreConfig_; } } /** - * - * *
      * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
      * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig, - com.google.cloud.gkebackup.v1.RestoreConfig.Builder, - com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> + com.google.cloud.gkebackup.v1.RestoreConfig, com.google.cloud.gkebackup.v1.RestoreConfig.Builder, com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> getRestoreConfigFieldBuilder() { if (restoreConfigBuilder_ == null) { - restoreConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig, - com.google.cloud.gkebackup.v1.RestoreConfig.Builder, - com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder>( - getRestoreConfig(), getParentForChildren(), isClean()); + restoreConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig, com.google.cloud.gkebackup.v1.RestoreConfig.Builder, com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder>( + getRestoreConfig(), + getParentForChildren(), + isClean()); restoreConfig_ = null; } return restoreConfigBuilder_; } - 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() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; 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(); @@ -3200,30 +2841,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 9; */ + @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(); } /** - * - * *
      * A set of custom labels supplied by user.
      * 
@@ -3231,12 +2870,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 9; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * A set of custom labels supplied by user.
      * 
@@ -3244,17 +2882,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + 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; } /** - * - * *
      * A set of custom labels supplied by user.
      * 
@@ -3262,11 +2899,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 9; */ @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(); } @@ -3274,133 +2912,114 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 9; */ - 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() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 9; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + 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"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 9; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private int state_ = 0; /** - * - * *
      * Output only. The current state of the Restore.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The current state of the Restore.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The current state of the Restore.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.gkebackup.v1.Restore.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.Restore.State result = - com.google.cloud.gkebackup.v1.Restore.State.valueOf(state_); + com.google.cloud.gkebackup.v1.Restore.State result = com.google.cloud.gkebackup.v1.Restore.State.valueOf(state_); return result == null ? com.google.cloud.gkebackup.v1.Restore.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current state of the Restore.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3408,26 +3027,21 @@ public Builder setState(com.google.cloud.gkebackup.v1.Restore.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The current state of the Restore.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -3435,20 +3049,18 @@ public Builder clearState() { private java.lang.Object stateReason_ = ""; /** - * - * *
      * Output only. Human-readable description of why the Restore is in its current state.
      * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stateReason. */ public java.lang.String getStateReason() { java.lang.Object ref = stateReason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateReason_ = s; return s; @@ -3457,21 +3069,20 @@ public java.lang.String getStateReason() { } } /** - * - * *
      * Output only. Human-readable description of why the Restore is in its current state.
      * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stateReason. */ - public com.google.protobuf.ByteString getStateReasonBytes() { + public com.google.protobuf.ByteString + getStateReasonBytes() { java.lang.Object ref = stateReason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stateReason_ = b; return b; } else { @@ -3479,61 +3090,54 @@ public com.google.protobuf.ByteString getStateReasonBytes() { } } /** - * - * *
      * Output only. Human-readable description of why the Restore is in its current state.
      * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The stateReason to set. * @return This builder for chaining. */ - public Builder setStateReason(java.lang.String value) { + public Builder setStateReason( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stateReason_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable description of why the Restore is in its current state.
      * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStateReason() { - + stateReason_ = getDefaultInstance().getStateReason(); onChanged(); return this; } /** - * - * *
      * Output only. Human-readable description of why the Restore is in its current state.
      * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for stateReason to set. * @return This builder for chaining. */ - public Builder setStateReasonBytes(com.google.protobuf.ByteString value) { + public Builder setStateReasonBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stateReason_ = value; onChanged(); return this; @@ -3541,58 +3145,39 @@ public Builder setStateReasonBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp completeTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - completeTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completeTimeBuilder_; /** - * - * *
      * Output only. Timestamp of when the restore operation completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the completeTime field is set. */ public boolean hasCompleteTime() { return completeTimeBuilder_ != null || completeTime_ != null; } /** - * - * *
      * Output only. Timestamp of when the restore operation completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The completeTime. */ public com.google.protobuf.Timestamp getCompleteTime() { if (completeTimeBuilder_ == null) { - return completeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : completeTime_; + return completeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; } else { return completeTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Timestamp of when the restore operation completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCompleteTime(com.google.protobuf.Timestamp value) { if (completeTimeBuilder_ == null) { @@ -3608,17 +3193,14 @@ public Builder setCompleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp of when the restore operation completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCompleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (completeTimeBuilder_ == null) { completeTime_ = builderForValue.build(); onChanged(); @@ -3629,23 +3211,17 @@ public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForV return this; } /** - * - * *
      * Output only. Timestamp of when the restore operation completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { if (completeTimeBuilder_ == null) { if (completeTime_ != null) { completeTime_ = - com.google.protobuf.Timestamp.newBuilder(completeTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(completeTime_).mergeFrom(value).buildPartial(); } else { completeTime_ = value; } @@ -3657,15 +3233,11 @@ public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp of when the restore operation completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCompleteTime() { if (completeTimeBuilder_ == null) { @@ -3679,80 +3251,60 @@ public Builder clearCompleteTime() { return this; } /** - * - * *
      * Output only. Timestamp of when the restore operation completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { - + onChanged(); return getCompleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Timestamp of when the restore operation completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { if (completeTimeBuilder_ != null) { return completeTimeBuilder_.getMessageOrBuilder(); } else { - return completeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : completeTime_; + return completeTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; } } /** - * - * *
      * Output only. Timestamp of when the restore operation completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_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> getCompleteTimeFieldBuilder() { if (completeTimeBuilder_ == null) { - completeTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCompleteTime(), getParentForChildren(), isClean()); + completeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCompleteTime(), + getParentForChildren(), + isClean()); completeTime_ = null; } return completeTimeBuilder_; } - private int resourcesRestoredCount_; + private int resourcesRestoredCount_ ; /** - * - * *
      * Output only. Number of resources restored during the restore execution.
      * 
* - * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The resourcesRestoredCount. */ @java.lang.Override @@ -3760,54 +3312,42 @@ public int getResourcesRestoredCount() { return resourcesRestoredCount_; } /** - * - * *
      * Output only. Number of resources restored during the restore execution.
      * 
* - * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The resourcesRestoredCount to set. * @return This builder for chaining. */ public Builder setResourcesRestoredCount(int value) { - + resourcesRestoredCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Number of resources restored during the restore execution.
      * 
* - * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearResourcesRestoredCount() { - + resourcesRestoredCount_ = 0; onChanged(); return this; } - private int resourcesExcludedCount_; + private int resourcesExcludedCount_ ; /** - * - * *
      * Output only. Number of resources excluded during the restore execution.
      * 
* - * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The resourcesExcludedCount. */ @java.lang.Override @@ -3815,54 +3355,43 @@ public int getResourcesExcludedCount() { return resourcesExcludedCount_; } /** - * - * *
      * Output only. Number of resources excluded during the restore execution.
      * 
* - * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The resourcesExcludedCount to set. * @return This builder for chaining. */ public Builder setResourcesExcludedCount(int value) { - + resourcesExcludedCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Number of resources excluded during the restore execution.
      * 
* - * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearResourcesExcludedCount() { - + resourcesExcludedCount_ = 0; onChanged(); return this; } - private int resourcesFailedCount_; + private int resourcesFailedCount_ ; /** - * - * *
      * Output only. Number of resources that failed to be restored during the restore
      * execution.
      * 
* * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The resourcesFailedCount. */ @java.lang.Override @@ -3870,53 +3399,44 @@ public int getResourcesFailedCount() { return resourcesFailedCount_; } /** - * - * *
      * Output only. Number of resources that failed to be restored during the restore
      * execution.
      * 
* * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The resourcesFailedCount to set. * @return This builder for chaining. */ public Builder setResourcesFailedCount(int value) { - + resourcesFailedCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Number of resources that failed to be restored during the restore
      * execution.
      * 
* * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearResourcesFailedCount() { - + resourcesFailedCount_ = 0; onChanged(); return this; } - private int volumesRestoredCount_; + private int volumesRestoredCount_ ; /** - * - * *
      * Output only. Number of volumes restored during the restore execution.
      * 
* * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The volumesRestoredCount. */ @java.lang.Override @@ -3924,36 +3444,30 @@ public int getVolumesRestoredCount() { return volumesRestoredCount_; } /** - * - * *
      * Output only. Number of volumes restored during the restore execution.
      * 
* * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The volumesRestoredCount to set. * @return This builder for chaining. */ public Builder setVolumesRestoredCount(int value) { - + volumesRestoredCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Number of volumes restored during the restore execution.
      * 
* * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVolumesRestoredCount() { - + volumesRestoredCount_ = 0; onChanged(); return this; @@ -3961,8 +3475,6 @@ public Builder clearVolumesRestoredCount() { private java.lang.Object etag_ = ""; /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a restore from overwriting each other.
@@ -3975,13 +3487,13 @@ public Builder clearVolumesRestoredCount() {
      * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -3990,8 +3502,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a restore from overwriting each other.
@@ -4004,14 +3514,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -4019,8 +3530,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a restore from overwriting each other.
@@ -4033,22 +3542,20 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a restore from overwriting each other.
@@ -4061,18 +3568,15 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a restore from overwriting each other.
@@ -4085,23 +3589,23 @@ public Builder clearEtag() {
      * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4111,12 +3615,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.Restore) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.Restore) private static final com.google.cloud.gkebackup.v1.Restore DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.Restore(); } @@ -4125,16 +3629,16 @@ public static com.google.cloud.gkebackup.v1.Restore getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Restore parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Restore(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Restore parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Restore(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4149,4 +3653,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.Restore getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfig.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfig.java similarity index 74% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfig.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfig.java index 5a124f4..1f81517 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/restore.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Configuration of a restore.
  * Next id: 9
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig}
  */
-public final class RestoreConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RestoreConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.RestoreConfig)
     RestoreConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RestoreConfig.newBuilder() to construct.
   private RestoreConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RestoreConfig() {
     volumeDataRestorePolicy_ = 0;
     clusterResourceConflictPolicy_ = 0;
@@ -47,15 +29,16 @@ private RestoreConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RestoreConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RestoreConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,113 +58,86 @@ private RestoreConfig(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              volumeDataRestorePolicy_ = rawValue;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            volumeDataRestorePolicy_ = rawValue;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              clusterResourceConflictPolicy_ = rawValue;
-              break;
-            }
-          case 24:
-            {
-              int rawValue = input.readEnum();
+            clusterResourceConflictPolicy_ = rawValue;
+            break;
+          }
+          case 24: {
+            int rawValue = input.readEnum();
 
-              namespacedResourceRestoreMode_ = rawValue;
-              break;
+            namespacedResourceRestoreMode_ = rawValue;
+            break;
+          }
+          case 34: {
+            com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder subBuilder = null;
+            if (clusterResourceRestoreScope_ != null) {
+              subBuilder = clusterResourceRestoreScope_.toBuilder();
+            }
+            clusterResourceRestoreScope_ = input.readMessage(com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(clusterResourceRestoreScope_);
+              clusterResourceRestoreScope_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder
-                  subBuilder = null;
-              if (clusterResourceRestoreScope_ != null) {
-                subBuilder = clusterResourceRestoreScope_.toBuilder();
-              }
-              clusterResourceRestoreScope_ =
-                  input.readMessage(
-                      com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(clusterResourceRestoreScope_);
-                clusterResourceRestoreScope_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 40: {
+            namespacedResourceRestoreScope_ = input.readBool();
+            namespacedResourceRestoreScopeCase_ = 5;
+            break;
+          }
+          case 50: {
+            com.google.cloud.gkebackup.v1.Namespaces.Builder subBuilder = null;
+            if (namespacedResourceRestoreScopeCase_ == 6) {
+              subBuilder = ((com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_).toBuilder();
             }
-          case 40:
-            {
-              namespacedResourceRestoreScope_ = input.readBool();
-              namespacedResourceRestoreScopeCase_ = 5;
-              break;
+            namespacedResourceRestoreScope_ =
+                input.readMessage(com.google.cloud.gkebackup.v1.Namespaces.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_);
+              namespacedResourceRestoreScope_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              com.google.cloud.gkebackup.v1.Namespaces.Builder subBuilder = null;
-              if (namespacedResourceRestoreScopeCase_ == 6) {
-                subBuilder =
-                    ((com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_)
-                        .toBuilder();
-              }
-              namespacedResourceRestoreScope_ =
-                  input.readMessage(
-                      com.google.cloud.gkebackup.v1.Namespaces.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_);
-                namespacedResourceRestoreScope_ = subBuilder.buildPartial();
-              }
-              namespacedResourceRestoreScopeCase_ = 6;
-              break;
+            namespacedResourceRestoreScopeCase_ = 6;
+            break;
+          }
+          case 58: {
+            com.google.cloud.gkebackup.v1.NamespacedNames.Builder subBuilder = null;
+            if (namespacedResourceRestoreScopeCase_ == 7) {
+              subBuilder = ((com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_).toBuilder();
             }
-          case 58:
-            {
-              com.google.cloud.gkebackup.v1.NamespacedNames.Builder subBuilder = null;
-              if (namespacedResourceRestoreScopeCase_ == 7) {
-                subBuilder =
-                    ((com.google.cloud.gkebackup.v1.NamespacedNames)
-                            namespacedResourceRestoreScope_)
-                        .toBuilder();
-              }
-              namespacedResourceRestoreScope_ =
-                  input.readMessage(
-                      com.google.cloud.gkebackup.v1.NamespacedNames.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.gkebackup.v1.NamespacedNames)
-                        namespacedResourceRestoreScope_);
-                namespacedResourceRestoreScope_ = subBuilder.buildPartial();
-              }
-              namespacedResourceRestoreScopeCase_ = 7;
-              break;
+            namespacedResourceRestoreScope_ =
+                input.readMessage(com.google.cloud.gkebackup.v1.NamespacedNames.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_);
+              namespacedResourceRestoreScope_ = subBuilder.buildPartial();
             }
-          case 66:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                substitutionRules_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              substitutionRules_.add(
-                  input.readMessage(
-                      com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.parser(),
-                      extensionRegistry));
-              break;
+            namespacedResourceRestoreScopeCase_ = 7;
+            break;
+          }
+          case 66: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              substitutionRules_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            substitutionRules_.add(
+                input.readMessage(com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -189,7 +145,8 @@ private RestoreConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         substitutionRules_ = java.util.Collections.unmodifiableList(substitutionRules_);
@@ -198,35 +155,29 @@ private RestoreConfig(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkebackup.v1.RestoreProto
-        .internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkebackup.v1.RestoreProto
-        .internal_static_google_cloud_gkebackup_v1_RestoreConfig_fieldAccessorTable
+    return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkebackup.v1.RestoreConfig.class,
-            com.google.cloud.gkebackup.v1.RestoreConfig.Builder.class);
+            com.google.cloud.gkebackup.v1.RestoreConfig.class, com.google.cloud.gkebackup.v1.RestoreConfig.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Defines how volume data should be restored
    * 
* * Protobuf enum {@code google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy} */ - public enum VolumeDataRestorePolicy implements com.google.protobuf.ProtocolMessageEnum { + public enum VolumeDataRestorePolicy + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified (illegal).
      * 
@@ -235,8 +186,6 @@ public enum VolumeDataRestorePolicy implements com.google.protobuf.ProtocolMessa */ VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED(0), /** - * - * *
      * For each PVC to be restored, will create a new underlying volume (and PV)
      * from the corresponding VolumeBackup contained within the Backup.
@@ -246,8 +195,6 @@ public enum VolumeDataRestorePolicy implements com.google.protobuf.ProtocolMessa
      */
     RESTORE_VOLUME_DATA_FROM_BACKUP(1),
     /**
-     *
-     *
      * 
      * For each PVC to be restored, attempt to reuse the original PV contained
      * in the Backup (with its original underlying volume).  Note that option
@@ -258,8 +205,6 @@ public enum VolumeDataRestorePolicy implements com.google.protobuf.ProtocolMessa
      */
     REUSE_VOLUME_HANDLE_FROM_BACKUP(2),
     /**
-     *
-     *
      * 
      * For each PVC to be restored, PVCs will be created without any particular
      * action to restore data.  In this case, the normal Kubernetes provisioning
@@ -274,8 +219,6 @@ public enum VolumeDataRestorePolicy implements com.google.protobuf.ProtocolMessa
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified (illegal).
      * 
@@ -284,8 +227,6 @@ public enum VolumeDataRestorePolicy implements com.google.protobuf.ProtocolMessa */ public static final int VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED_VALUE = 0; /** - * - * *
      * For each PVC to be restored, will create a new underlying volume (and PV)
      * from the corresponding VolumeBackup contained within the Backup.
@@ -295,8 +236,6 @@ public enum VolumeDataRestorePolicy implements com.google.protobuf.ProtocolMessa
      */
     public static final int RESTORE_VOLUME_DATA_FROM_BACKUP_VALUE = 1;
     /**
-     *
-     *
      * 
      * For each PVC to be restored, attempt to reuse the original PV contained
      * in the Backup (with its original underlying volume).  Note that option
@@ -307,8 +246,6 @@ public enum VolumeDataRestorePolicy implements com.google.protobuf.ProtocolMessa
      */
     public static final int REUSE_VOLUME_HANDLE_FROM_BACKUP_VALUE = 2;
     /**
-     *
-     *
      * 
      * For each PVC to be restored, PVCs will be created without any particular
      * action to restore data.  In this case, the normal Kubernetes provisioning
@@ -320,6 +257,7 @@ public enum VolumeDataRestorePolicy implements com.google.protobuf.ProtocolMessa
      */
     public static final int NO_VOLUME_DATA_RESTORATION_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -344,16 +282,11 @@ public static VolumeDataRestorePolicy valueOf(int value) {
      */
     public static VolumeDataRestorePolicy forNumber(int value) {
       switch (value) {
-        case 0:
-          return VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED;
-        case 1:
-          return RESTORE_VOLUME_DATA_FROM_BACKUP;
-        case 2:
-          return REUSE_VOLUME_HANDLE_FROM_BACKUP;
-        case 3:
-          return NO_VOLUME_DATA_RESTORATION;
-        default:
-          return null;
+        case 0: return VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED;
+        case 1: return RESTORE_VOLUME_DATA_FROM_BACKUP;
+        case 2: return REUSE_VOLUME_HANDLE_FROM_BACKUP;
+        case 3: return NO_VOLUME_DATA_RESTORATION;
+        default: return null;
       }
     }
 
@@ -361,28 +294,28 @@ public static VolumeDataRestorePolicy forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        VolumeDataRestorePolicy> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public VolumeDataRestorePolicy findValueByNumber(int number) {
+              return VolumeDataRestorePolicy.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public VolumeDataRestorePolicy findValueByNumber(int number) {
-                return VolumeDataRestorePolicy.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.gkebackup.v1.RestoreConfig.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -391,7 +324,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static VolumeDataRestorePolicy 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;
@@ -409,8 +343,6 @@ private VolumeDataRestorePolicy(int value) {
   }
 
   /**
-   *
-   *
    * 
    * Defines the behavior for handling the situation where cluster-scoped
    * resources being restored already exist in the target cluster.
@@ -418,10 +350,9 @@ private VolumeDataRestorePolicy(int value) {
    *
    * Protobuf enum {@code google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy}
    */
-  public enum ClusterResourceConflictPolicy implements com.google.protobuf.ProtocolMessageEnum {
+  public enum ClusterResourceConflictPolicy
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Unspecified. Only allowed if no cluster-scoped resources will be
      * restored.
@@ -431,8 +362,6 @@ public enum ClusterResourceConflictPolicy implements com.google.protobuf.Protoco
      */
     CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Do not attempt to restore the conflicting resource.
      * 
@@ -441,8 +370,6 @@ public enum ClusterResourceConflictPolicy implements com.google.protobuf.Protoco */ USE_EXISTING_VERSION(1), /** - * - * *
      * Delete the existing version before re-creating it from the Backup.
      * Note that this is a dangerous option which could cause unintentional
@@ -457,8 +384,6 @@ public enum ClusterResourceConflictPolicy implements com.google.protobuf.Protoco
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified. Only allowed if no cluster-scoped resources will be
      * restored.
@@ -468,8 +393,6 @@ public enum ClusterResourceConflictPolicy implements com.google.protobuf.Protoco
      */
     public static final int CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Do not attempt to restore the conflicting resource.
      * 
@@ -478,8 +401,6 @@ public enum ClusterResourceConflictPolicy implements com.google.protobuf.Protoco */ public static final int USE_EXISTING_VERSION_VALUE = 1; /** - * - * *
      * Delete the existing version before re-creating it from the Backup.
      * Note that this is a dangerous option which could cause unintentional
@@ -491,6 +412,7 @@ public enum ClusterResourceConflictPolicy implements com.google.protobuf.Protoco
      */
     public static final int USE_BACKUP_VERSION_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -515,14 +437,10 @@ public static ClusterResourceConflictPolicy valueOf(int value) {
      */
     public static ClusterResourceConflictPolicy forNumber(int value) {
       switch (value) {
-        case 0:
-          return CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED;
-        case 1:
-          return USE_EXISTING_VERSION;
-        case 2:
-          return USE_BACKUP_VERSION;
-        default:
-          return null;
+        case 0: return CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED;
+        case 1: return USE_EXISTING_VERSION;
+        case 2: return USE_BACKUP_VERSION;
+        default: return null;
       }
     }
 
@@ -530,28 +448,28 @@ public static ClusterResourceConflictPolicy forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        ClusterResourceConflictPolicy> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public ClusterResourceConflictPolicy findValueByNumber(int number) {
+              return ClusterResourceConflictPolicy.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public ClusterResourceConflictPolicy findValueByNumber(int number) {
-                return ClusterResourceConflictPolicy.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.gkebackup.v1.RestoreConfig.getDescriptor().getEnumTypes().get(1);
     }
 
@@ -560,7 +478,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static ClusterResourceConflictPolicy 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;
@@ -578,8 +497,6 @@ private ClusterResourceConflictPolicy(int value) {
   }
 
   /**
-   *
-   *
    * 
    * Defines the behavior for handling the situation where sets of namespaced
    * resources being restored already exist in the target cluster.
@@ -587,10 +504,9 @@ private ClusterResourceConflictPolicy(int value) {
    *
    * Protobuf enum {@code google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode}
    */
-  public enum NamespacedResourceRestoreMode implements com.google.protobuf.ProtocolMessageEnum {
+  public enum NamespacedResourceRestoreMode
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Unspecified (invalid).
      * 
@@ -599,8 +515,6 @@ public enum NamespacedResourceRestoreMode implements com.google.protobuf.Protoco */ NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED(0), /** - * - * *
      * When conflicting top-level resources (either Namespaces or
      * ProtectedApplications, depending upon the scope) are encountered, this
@@ -615,8 +529,6 @@ public enum NamespacedResourceRestoreMode implements com.google.protobuf.Protoco
      */
     DELETE_AND_RESTORE(1),
     /**
-     *
-     *
      * 
      * If conflicting top-level resources (either Namespaces or
      * ProtectedApplications, depending upon the scope) are encountered at the
@@ -632,8 +544,6 @@ public enum NamespacedResourceRestoreMode implements com.google.protobuf.Protoco
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified (invalid).
      * 
@@ -642,8 +552,6 @@ public enum NamespacedResourceRestoreMode implements com.google.protobuf.Protoco */ public static final int NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * When conflicting top-level resources (either Namespaces or
      * ProtectedApplications, depending upon the scope) are encountered, this
@@ -658,8 +566,6 @@ public enum NamespacedResourceRestoreMode implements com.google.protobuf.Protoco
      */
     public static final int DELETE_AND_RESTORE_VALUE = 1;
     /**
-     *
-     *
      * 
      * If conflicting top-level resources (either Namespaces or
      * ProtectedApplications, depending upon the scope) are encountered at the
@@ -672,6 +578,7 @@ public enum NamespacedResourceRestoreMode implements com.google.protobuf.Protoco
      */
     public static final int FAIL_ON_CONFLICT_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -696,14 +603,10 @@ public static NamespacedResourceRestoreMode valueOf(int value) {
      */
     public static NamespacedResourceRestoreMode forNumber(int value) {
       switch (value) {
-        case 0:
-          return NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED;
-        case 1:
-          return DELETE_AND_RESTORE;
-        case 2:
-          return FAIL_ON_CONFLICT;
-        default:
-          return null;
+        case 0: return NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED;
+        case 1: return DELETE_AND_RESTORE;
+        case 2: return FAIL_ON_CONFLICT;
+        default: return null;
       }
     }
 
@@ -711,28 +614,28 @@ public static NamespacedResourceRestoreMode forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        NamespacedResourceRestoreMode> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public NamespacedResourceRestoreMode findValueByNumber(int number) {
+              return NamespacedResourceRestoreMode.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public NamespacedResourceRestoreMode findValueByNumber(int number) {
-                return NamespacedResourceRestoreMode.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.gkebackup.v1.RestoreConfig.getDescriptor().getEnumTypes().get(2);
     }
 
@@ -741,7 +644,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static NamespacedResourceRestoreMode 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;
@@ -758,14 +662,11 @@ private NamespacedResourceRestoreMode(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode)
   }
 
-  public interface GroupKindOrBuilder
-      extends
+  public interface GroupKindOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.RestoreConfig.GroupKind)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * API group string of a Kubernetes resource, e.g.
      * "apiextensions.k8s.io", "storage.k8s.io", etc.
@@ -773,13 +674,10 @@ public interface GroupKindOrBuilder
      * 
* * string resource_group = 1; - * * @return The resourceGroup. */ java.lang.String getResourceGroup(); /** - * - * *
      * API group string of a Kubernetes resource, e.g.
      * "apiextensions.k8s.io", "storage.k8s.io", etc.
@@ -787,41 +685,34 @@ public interface GroupKindOrBuilder
      * 
* * string resource_group = 1; - * * @return The bytes for resourceGroup. */ - com.google.protobuf.ByteString getResourceGroupBytes(); + com.google.protobuf.ByteString + getResourceGroupBytes(); /** - * - * *
      * Kind of a Kubernetes resource, e.g.
      * "CustomResourceDefinition", "StorageClass", etc.
      * 
* * string resource_kind = 2; - * * @return The resourceKind. */ java.lang.String getResourceKind(); /** - * - * *
      * Kind of a Kubernetes resource, e.g.
      * "CustomResourceDefinition", "StorageClass", etc.
      * 
* * string resource_kind = 2; - * * @return The bytes for resourceKind. */ - com.google.protobuf.ByteString getResourceKindBytes(); + com.google.protobuf.ByteString + getResourceKindBytes(); } /** - * - * *
    * This is a direct map to the Kubernetes GroupKind type
    * [GroupKind](https://godoc.org/k8s.io/apimachinery/pkg/runtime/schema#GroupKind)
@@ -830,16 +721,15 @@ public interface GroupKindOrBuilder
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig.GroupKind}
    */
-  public static final class GroupKind extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class GroupKind extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.RestoreConfig.GroupKind)
       GroupKindOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use GroupKind.newBuilder() to construct.
     private GroupKind(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private GroupKind() {
       resourceGroup_ = "";
       resourceKind_ = "";
@@ -847,15 +737,16 @@ private GroupKind() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new GroupKind();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private GroupKind(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -874,27 +765,25 @@ private GroupKind(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                resourceGroup_ = s;
-                break;
-              }
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              resourceGroup_ = s;
+              break;
+            }
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                resourceKind_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              resourceKind_ = s;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -902,33 +791,29 @@ private GroupKind(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkebackup.v1.RestoreProto
-          .internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkebackup.v1.RestoreProto
-          .internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.class,
-              com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder.class);
+              com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.class, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder.class);
     }
 
     public static final int RESOURCE_GROUP_FIELD_NUMBER = 1;
     private volatile java.lang.Object resourceGroup_;
     /**
-     *
-     *
      * 
      * API group string of a Kubernetes resource, e.g.
      * "apiextensions.k8s.io", "storage.k8s.io", etc.
@@ -936,7 +821,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string resource_group = 1; - * * @return The resourceGroup. */ @java.lang.Override @@ -945,15 +829,14 @@ public java.lang.String getResourceGroup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceGroup_ = s; return s; } } /** - * - * *
      * API group string of a Kubernetes resource, e.g.
      * "apiextensions.k8s.io", "storage.k8s.io", etc.
@@ -961,15 +844,16 @@ public java.lang.String getResourceGroup() {
      * 
* * string resource_group = 1; - * * @return The bytes for resourceGroup. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceGroupBytes() { + public com.google.protobuf.ByteString + getResourceGroupBytes() { java.lang.Object ref = resourceGroup_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceGroup_ = b; return b; } else { @@ -980,15 +864,12 @@ public com.google.protobuf.ByteString getResourceGroupBytes() { public static final int RESOURCE_KIND_FIELD_NUMBER = 2; private volatile java.lang.Object resourceKind_; /** - * - * *
      * Kind of a Kubernetes resource, e.g.
      * "CustomResourceDefinition", "StorageClass", etc.
      * 
* * string resource_kind = 2; - * * @return The resourceKind. */ @java.lang.Override @@ -997,30 +878,30 @@ public java.lang.String getResourceKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceKind_ = s; return s; } } /** - * - * *
      * Kind of a Kubernetes resource, e.g.
      * "CustomResourceDefinition", "StorageClass", etc.
      * 
* * string resource_kind = 2; - * * @return The bytes for resourceKind. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceKindBytes() { + public com.google.protobuf.ByteString + getResourceKindBytes() { java.lang.Object ref = resourceKind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceKind_ = b; return b; } else { @@ -1029,7 +910,6 @@ public com.google.protobuf.ByteString getResourceKindBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1041,7 +921,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceGroup_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceGroup_); } @@ -1071,16 +952,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind other = - (com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind) obj; + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind other = (com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind) obj; - if (!getResourceGroup().equals(other.getResourceGroup())) return false; - if (!getResourceKind().equals(other.getResourceKind())) return false; + if (!getResourceGroup() + .equals(other.getResourceGroup())) return false; + if (!getResourceKind() + .equals(other.getResourceKind())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1102,94 +984,87 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind prototype) { + public static Builder newBuilder(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1199,8 +1074,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * This is a direct map to the Kubernetes GroupKind type
      * [GroupKind](https://godoc.org/k8s.io/apimachinery/pkg/runtime/schema#GroupKind)
@@ -1209,24 +1082,21 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig.GroupKind}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.RestoreConfig.GroupKind)
         com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.gkebackup.v1.RestoreProto
-            .internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.gkebackup.v1.RestoreProto
-            .internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_fieldAccessorTable
+        return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.class,
-                com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder.class);
+                com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.class, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder.class);
       }
 
       // Construct using com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.newBuilder()
@@ -1234,15 +1104,16 @@ 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) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1254,9 +1125,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.gkebackup.v1.RestoreProto
-            .internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor;
       }
 
       @java.lang.Override
@@ -1275,8 +1146,7 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind build() {
 
       @java.lang.Override
       public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind buildPartial() {
-        com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind result =
-            new com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind(this);
+        com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind result = new com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind(this);
         result.resourceGroup_ = resourceGroup_;
         result.resourceKind_ = resourceKind_;
         onBuilt();
@@ -1287,41 +1157,38 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind 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) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind) {
-          return mergeFrom((com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind) other);
+          return mergeFrom((com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -1329,8 +1196,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind other) {
-        if (other == com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()) return this;
         if (!other.getResourceGroup().isEmpty()) {
           resourceGroup_ = other.resourceGroup_;
           onChanged();
@@ -1358,8 +1224,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind) e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1371,8 +1236,6 @@ public Builder mergeFrom(
 
       private java.lang.Object resourceGroup_ = "";
       /**
-       *
-       *
        * 
        * API group string of a Kubernetes resource, e.g.
        * "apiextensions.k8s.io", "storage.k8s.io", etc.
@@ -1380,13 +1243,13 @@ public Builder mergeFrom(
        * 
* * string resource_group = 1; - * * @return The resourceGroup. */ public java.lang.String getResourceGroup() { java.lang.Object ref = resourceGroup_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceGroup_ = s; return s; @@ -1395,8 +1258,6 @@ public java.lang.String getResourceGroup() { } } /** - * - * *
        * API group string of a Kubernetes resource, e.g.
        * "apiextensions.k8s.io", "storage.k8s.io", etc.
@@ -1404,14 +1265,15 @@ public java.lang.String getResourceGroup() {
        * 
* * string resource_group = 1; - * * @return The bytes for resourceGroup. */ - public com.google.protobuf.ByteString getResourceGroupBytes() { + public com.google.protobuf.ByteString + getResourceGroupBytes() { java.lang.Object ref = resourceGroup_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceGroup_ = b; return b; } else { @@ -1419,8 +1281,6 @@ public com.google.protobuf.ByteString getResourceGroupBytes() { } } /** - * - * *
        * API group string of a Kubernetes resource, e.g.
        * "apiextensions.k8s.io", "storage.k8s.io", etc.
@@ -1428,22 +1288,20 @@ public com.google.protobuf.ByteString getResourceGroupBytes() {
        * 
* * string resource_group = 1; - * * @param value The resourceGroup to set. * @return This builder for chaining. */ - public Builder setResourceGroup(java.lang.String value) { + public Builder setResourceGroup( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceGroup_ = value; onChanged(); return this; } /** - * - * *
        * API group string of a Kubernetes resource, e.g.
        * "apiextensions.k8s.io", "storage.k8s.io", etc.
@@ -1451,18 +1309,15 @@ public Builder setResourceGroup(java.lang.String value) {
        * 
* * string resource_group = 1; - * * @return This builder for chaining. */ public Builder clearResourceGroup() { - + resourceGroup_ = getDefaultInstance().getResourceGroup(); onChanged(); return this; } /** - * - * *
        * API group string of a Kubernetes resource, e.g.
        * "apiextensions.k8s.io", "storage.k8s.io", etc.
@@ -1470,16 +1325,16 @@ public Builder clearResourceGroup() {
        * 
* * string resource_group = 1; - * * @param value The bytes for resourceGroup to set. * @return This builder for chaining. */ - public Builder setResourceGroupBytes(com.google.protobuf.ByteString value) { + public Builder setResourceGroupBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceGroup_ = value; onChanged(); return this; @@ -1487,21 +1342,19 @@ public Builder setResourceGroupBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceKind_ = ""; /** - * - * *
        * Kind of a Kubernetes resource, e.g.
        * "CustomResourceDefinition", "StorageClass", etc.
        * 
* * string resource_kind = 2; - * * @return The resourceKind. */ public java.lang.String getResourceKind() { java.lang.Object ref = resourceKind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceKind_ = s; return s; @@ -1510,22 +1363,21 @@ public java.lang.String getResourceKind() { } } /** - * - * *
        * Kind of a Kubernetes resource, e.g.
        * "CustomResourceDefinition", "StorageClass", etc.
        * 
* * string resource_kind = 2; - * * @return The bytes for resourceKind. */ - public com.google.protobuf.ByteString getResourceKindBytes() { + public com.google.protobuf.ByteString + getResourceKindBytes() { java.lang.Object ref = resourceKind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceKind_ = b; return b; } else { @@ -1533,69 +1385,61 @@ public com.google.protobuf.ByteString getResourceKindBytes() { } } /** - * - * *
        * Kind of a Kubernetes resource, e.g.
        * "CustomResourceDefinition", "StorageClass", etc.
        * 
* * string resource_kind = 2; - * * @param value The resourceKind to set. * @return This builder for chaining. */ - public Builder setResourceKind(java.lang.String value) { + public Builder setResourceKind( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceKind_ = value; onChanged(); return this; } /** - * - * *
        * Kind of a Kubernetes resource, e.g.
        * "CustomResourceDefinition", "StorageClass", etc.
        * 
* * string resource_kind = 2; - * * @return This builder for chaining. */ public Builder clearResourceKind() { - + resourceKind_ = getDefaultInstance().getResourceKind(); onChanged(); return this; } /** - * - * *
        * Kind of a Kubernetes resource, e.g.
        * "CustomResourceDefinition", "StorageClass", etc.
        * 
* * string resource_kind = 2; - * * @param value The bytes for resourceKind to set. * @return This builder for chaining. */ - public Builder setResourceKindBytes(com.google.protobuf.ByteString value) { + public Builder setResourceKindBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceKind_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1608,12 +1452,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.RestoreConfig.GroupKind) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.RestoreConfig.GroupKind) private static final com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind(); } @@ -1622,16 +1466,16 @@ public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupKind parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupKind(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupKind parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupKind(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1646,16 +1490,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ClusterResourceRestoreScopeOrBuilder - extends + public interface ClusterResourceRestoreScopeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A list of "types" of cluster-scoped resources to be restored from the
      * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -1663,14 +1505,11 @@ public interface ClusterResourceRestoreScopeOrBuilder
      * handled separately and is not governed by this field.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ - java.util.List + java.util.List getSelectedGroupKindsList(); /** - * - * *
      * A list of "types" of cluster-scoped resources to be restored from the
      * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -1678,13 +1517,10 @@ public interface ClusterResourceRestoreScopeOrBuilder
      * handled separately and is not governed by this field.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getSelectedGroupKinds(int index); /** - * - * *
      * A list of "types" of cluster-scoped resources to be restored from the
      * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -1692,13 +1528,10 @@ public interface ClusterResourceRestoreScopeOrBuilder
      * handled separately and is not governed by this field.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ int getSelectedGroupKindsCount(); /** - * - * *
      * A list of "types" of cluster-scoped resources to be restored from the
      * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -1706,14 +1539,11 @@ public interface ClusterResourceRestoreScopeOrBuilder
      * handled separately and is not governed by this field.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ - java.util.List + java.util.List getSelectedGroupKindsOrBuilderList(); /** - * - * *
      * A list of "types" of cluster-scoped resources to be restored from the
      * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -1721,47 +1551,43 @@ public interface ClusterResourceRestoreScopeOrBuilder
      * handled separately and is not governed by this field.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getSelectedGroupKindsOrBuilder( int index); } - /** - * - * + /** *
    * Identifies the cluster-scoped resources to restore from the Backup.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope} */ - public static final class ClusterResourceRestoreScope - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ClusterResourceRestoreScope extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) ClusterResourceRestoreScopeOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClusterResourceRestoreScope.newBuilder() to construct. private ClusterResourceRestoreScope(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ClusterResourceRestoreScope() { selectedGroupKinds_ = 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 ClusterResourceRestoreScope(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ClusterResourceRestoreScope( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1781,27 +1607,22 @@ private ClusterResourceRestoreScope( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - selectedGroupKinds_ = - new java.util.ArrayList< - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind>(); - mutable_bitField0_ |= 0x00000001; - } - selectedGroupKinds_.add( - input.readMessage( - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + selectedGroupKinds_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + selectedGroupKinds_.add( + input.readMessage(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1809,7 +1630,8 @@ private ClusterResourceRestoreScope( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { selectedGroupKinds_ = java.util.Collections.unmodifiableList(selectedGroupKinds_); @@ -1818,29 +1640,22 @@ private ClusterResourceRestoreScope( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.RestoreProto - .internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.RestoreProto - .internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_fieldAccessorTable + return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.class, - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder - .class); + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.class, com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder.class); } public static final int SELECTED_GROUP_KINDS_FIELD_NUMBER = 1; - private java.util.List - selectedGroupKinds_; + private java.util.List selectedGroupKinds_; /** - * - * *
      * A list of "types" of cluster-scoped resources to be restored from the
      * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -1848,17 +1663,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * handled separately and is not governed by this field.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ @java.lang.Override - public java.util.List - getSelectedGroupKindsList() { + public java.util.List getSelectedGroupKindsList() { return selectedGroupKinds_; } /** - * - * *
      * A list of "types" of cluster-scoped resources to be restored from the
      * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -1866,17 +1677,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * handled separately and is not governed by this field.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSelectedGroupKindsOrBuilderList() { return selectedGroupKinds_; } /** - * - * *
      * A list of "types" of cluster-scoped resources to be restored from the
      * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -1884,16 +1692,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * handled separately and is not governed by this field.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ @java.lang.Override public int getSelectedGroupKindsCount() { return selectedGroupKinds_.size(); } /** - * - * *
      * A list of "types" of cluster-scoped resources to be restored from the
      * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -1901,16 +1706,13 @@ public int getSelectedGroupKindsCount() {
      * handled separately and is not governed by this field.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getSelectedGroupKinds(int index) { return selectedGroupKinds_.get(index); } /** - * - * *
      * A list of "types" of cluster-scoped resources to be restored from the
      * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -1918,17 +1720,15 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getSelectedGroupKin
      * handled separately and is not governed by this field.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder - getSelectedGroupKindsOrBuilder(int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getSelectedGroupKindsOrBuilder( + int index) { return selectedGroupKinds_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1940,7 +1740,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < selectedGroupKinds_.size(); i++) { output.writeMessage(1, selectedGroupKinds_.get(i)); } @@ -1954,8 +1755,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < selectedGroupKinds_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, selectedGroupKinds_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, selectedGroupKinds_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1965,16 +1766,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope)) { + if (!(obj instanceof com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope other = - (com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) obj; + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope other = (com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) obj; - if (!getSelectedGroupKindsList().equals(other.getSelectedGroupKindsList())) return false; + if (!getSelectedGroupKindsList() + .equals(other.getSelectedGroupKindsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1996,95 +1796,87 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope prototype) { + public static Builder newBuilder(com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2094,52 +1886,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Identifies the cluster-scoped resources to restore from the Backup.
      * 
* * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.RestoreProto - .internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.RestoreProto - .internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_fieldAccessorTable + return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.class, - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder - .class); + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.class, com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder.class); } - // Construct using - // com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.newBuilder() + // Construct using com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.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) { getSelectedGroupKindsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2153,22 +1938,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.RestoreProto - .internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor; } @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - getDefaultInstanceForType() { - return com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - .getDefaultInstance(); + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope getDefaultInstanceForType() { + return com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope build() { - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope result = - buildPartial(); + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2176,10 +1958,8 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope b } @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - buildPartial() { - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope result = - new com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope(this); + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope buildPartial() { + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope result = new com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope(this); int from_bitField0_ = bitField0_; if (selectedGroupKindsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -2198,54 +1978,46 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope b public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) { - return mergeFrom( - (com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) other); + if (other instanceof com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) { + return mergeFrom((com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope other) { - if (other - == com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope other) { + if (other == com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.getDefaultInstance()) return this; if (selectedGroupKindsBuilder_ == null) { if (!other.selectedGroupKinds_.isEmpty()) { if (selectedGroupKinds_.isEmpty()) { @@ -2264,10 +2036,9 @@ public Builder mergeFrom( selectedGroupKindsBuilder_ = null; selectedGroupKinds_ = other.selectedGroupKinds_; bitField0_ = (bitField0_ & ~0x00000001); - selectedGroupKindsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSelectedGroupKindsFieldBuilder() - : null; + selectedGroupKindsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSelectedGroupKindsFieldBuilder() : null; } else { selectedGroupKindsBuilder_.addAllMessages(other.selectedGroupKinds_); } @@ -2288,14 +2059,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parsedMessage = - null; + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2304,30 +2072,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - selectedGroupKinds_ = java.util.Collections.emptyList(); - + private java.util.List selectedGroupKinds_ = + java.util.Collections.emptyList(); private void ensureSelectedGroupKindsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - selectedGroupKinds_ = - new java.util.ArrayList( - selectedGroupKinds_); + selectedGroupKinds_ = new java.util.ArrayList(selectedGroupKinds_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> - selectedGroupKindsBuilder_; + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> selectedGroupKindsBuilder_; /** - * - * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2335,11 +2094,9 @@ private void ensureSelectedGroupKindsIsMutable() {
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ - public java.util.List - getSelectedGroupKindsList() { + public java.util.List getSelectedGroupKindsList() { if (selectedGroupKindsBuilder_ == null) { return java.util.Collections.unmodifiableList(selectedGroupKinds_); } else { @@ -2347,8 +2104,6 @@ private void ensureSelectedGroupKindsIsMutable() { } } /** - * - * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2356,8 +2111,7 @@ private void ensureSelectedGroupKindsIsMutable() {
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ public int getSelectedGroupKindsCount() { if (selectedGroupKindsBuilder_ == null) { @@ -2367,8 +2121,6 @@ public int getSelectedGroupKindsCount() { } } /** - * - * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2376,11 +2128,9 @@ public int getSelectedGroupKindsCount() {
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getSelectedGroupKinds( - int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getSelectedGroupKinds(int index) { if (selectedGroupKindsBuilder_ == null) { return selectedGroupKinds_.get(index); } else { @@ -2388,8 +2138,6 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getSelectedGroupKin } } /** - * - * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2397,8 +2145,7 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getSelectedGroupKin
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ public Builder setSelectedGroupKinds( int index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { @@ -2415,8 +2162,6 @@ public Builder setSelectedGroupKinds( return this; } /** - * - * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2424,12 +2169,10 @@ public Builder setSelectedGroupKinds(
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ public Builder setSelectedGroupKinds( - int index, - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { + int index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { if (selectedGroupKindsBuilder_ == null) { ensureSelectedGroupKindsIsMutable(); selectedGroupKinds_.set(index, builderForValue.build()); @@ -2440,8 +2183,6 @@ public Builder setSelectedGroupKinds( return this; } /** - * - * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2449,11 +2190,9 @@ public Builder setSelectedGroupKinds(
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ - public Builder addSelectedGroupKinds( - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { + public Builder addSelectedGroupKinds(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { if (selectedGroupKindsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2467,8 +2206,6 @@ public Builder addSelectedGroupKinds( return this; } /** - * - * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2476,8 +2213,7 @@ public Builder addSelectedGroupKinds(
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ public Builder addSelectedGroupKinds( int index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { @@ -2494,8 +2230,6 @@ public Builder addSelectedGroupKinds( return this; } /** - * - * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2503,8 +2237,7 @@ public Builder addSelectedGroupKinds(
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ public Builder addSelectedGroupKinds( com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { @@ -2518,8 +2251,6 @@ public Builder addSelectedGroupKinds( return this; } /** - * - * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2527,12 +2258,10 @@ public Builder addSelectedGroupKinds(
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ public Builder addSelectedGroupKinds( - int index, - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { + int index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { if (selectedGroupKindsBuilder_ == null) { ensureSelectedGroupKindsIsMutable(); selectedGroupKinds_.add(index, builderForValue.build()); @@ -2543,8 +2272,6 @@ public Builder addSelectedGroupKinds( return this; } /** - * - * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2552,15 +2279,14 @@ public Builder addSelectedGroupKinds(
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ public Builder addAllSelectedGroupKinds( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (selectedGroupKindsBuilder_ == null) { ensureSelectedGroupKindsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, selectedGroupKinds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, selectedGroupKinds_); onChanged(); } else { selectedGroupKindsBuilder_.addAllMessages(values); @@ -2568,8 +2294,6 @@ public Builder addAllSelectedGroupKinds( return this; } /** - * - * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2577,8 +2301,7 @@ public Builder addAllSelectedGroupKinds(
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ public Builder clearSelectedGroupKinds() { if (selectedGroupKindsBuilder_ == null) { @@ -2591,8 +2314,6 @@ public Builder clearSelectedGroupKinds() { return this; } /** - * - * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2600,8 +2321,7 @@ public Builder clearSelectedGroupKinds() {
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ public Builder removeSelectedGroupKinds(int index) { if (selectedGroupKindsBuilder_ == null) { @@ -2614,8 +2334,6 @@ public Builder removeSelectedGroupKinds(int index) { return this; } /** - * - * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2623,16 +2341,13 @@ public Builder removeSelectedGroupKinds(int index) {
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder - getSelectedGroupKindsBuilder(int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder getSelectedGroupKindsBuilder( + int index) { return getSelectedGroupKindsFieldBuilder().getBuilder(index); } /** - * - * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2640,20 +2355,16 @@ public Builder removeSelectedGroupKinds(int index) {
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder - getSelectedGroupKindsOrBuilder(int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getSelectedGroupKindsOrBuilder( + int index) { if (selectedGroupKindsBuilder_ == null) { - return selectedGroupKinds_.get(index); - } else { + return selectedGroupKinds_.get(index); } else { return selectedGroupKindsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2661,12 +2372,10 @@ public Builder removeSelectedGroupKinds(int index) {
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ - public java.util.List< - ? extends com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> - getSelectedGroupKindsOrBuilderList() { + public java.util.List + getSelectedGroupKindsOrBuilderList() { if (selectedGroupKindsBuilder_ != null) { return selectedGroupKindsBuilder_.getMessageOrBuilderList(); } else { @@ -2674,8 +2383,6 @@ public Builder removeSelectedGroupKinds(int index) { } } /** - * - * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2683,17 +2390,13 @@ public Builder removeSelectedGroupKinds(int index) {
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder - addSelectedGroupKindsBuilder() { - return getSelectedGroupKindsFieldBuilder() - .addBuilder(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder addSelectedGroupKindsBuilder() { + return getSelectedGroupKindsFieldBuilder().addBuilder( + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()); } /** - * - * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2701,18 +2404,14 @@ public Builder removeSelectedGroupKinds(int index) {
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder - addSelectedGroupKindsBuilder(int index) { - return getSelectedGroupKindsFieldBuilder() - .addBuilder( - index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder addSelectedGroupKindsBuilder( + int index) { + return getSelectedGroupKindsFieldBuilder().addBuilder( + index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()); } /** - * - * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2720,25 +2419,18 @@ public Builder removeSelectedGroupKinds(int index) {
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; */ - public java.util.List - getSelectedGroupKindsBuilderList() { + public java.util.List + getSelectedGroupKindsBuilderList() { return getSelectedGroupKindsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> getSelectedGroupKindsFieldBuilder() { if (selectedGroupKindsBuilder_ == null) { - selectedGroupKindsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder>( + selectedGroupKindsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder>( selectedGroupKinds_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2747,7 +2439,6 @@ public Builder removeSelectedGroupKinds(int index) { } return selectedGroupKindsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2760,33 +2451,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) - private static final com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope(); + DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope(); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - getDefaultInstance() { + public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterResourceRestoreScope parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterResourceRestoreScope(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterResourceRestoreScope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClusterResourceRestoreScope(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2798,20 +2486,17 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - getDefaultInstanceForType() { + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface SubstitutionRuleOrBuilder - extends + public interface SubstitutionRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * (Filtering parameter) Any resource subject to substitution must be
      * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -2823,13 +2508,11 @@ public interface SubstitutionRuleOrBuilder
      * 
* * repeated string target_namespaces = 1; - * * @return A list containing the targetNamespaces. */ - java.util.List getTargetNamespacesList(); + java.util.List + getTargetNamespacesList(); /** - * - * *
      * (Filtering parameter) Any resource subject to substitution must be
      * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -2841,13 +2524,10 @@ public interface SubstitutionRuleOrBuilder
      * 
* * repeated string target_namespaces = 1; - * * @return The count of targetNamespaces. */ int getTargetNamespacesCount(); /** - * - * *
      * (Filtering parameter) Any resource subject to substitution must be
      * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -2859,14 +2539,11 @@ public interface SubstitutionRuleOrBuilder
      * 
* * repeated string target_namespaces = 1; - * * @param index The index of the element to return. * @return The targetNamespaces at the given index. */ java.lang.String getTargetNamespaces(int index); /** - * - * *
      * (Filtering parameter) Any resource subject to substitution must be
      * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -2878,15 +2555,13 @@ public interface SubstitutionRuleOrBuilder
      * 
* * repeated string target_namespaces = 1; - * * @param index The index of the value to return. * @return The bytes of the targetNamespaces at the given index. */ - com.google.protobuf.ByteString getTargetNamespacesBytes(int index); + com.google.protobuf.ByteString + getTargetNamespacesBytes(int index); /** - * - * *
      * (Filtering parameter) Any resource subject to substitution must belong to
      * one of the listed "types".
@@ -2895,13 +2570,11 @@ public interface SubstitutionRuleOrBuilder
      * candidates for substitution).
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ - java.util.List getTargetGroupKindsList(); + java.util.List + getTargetGroupKindsList(); /** - * - * *
      * (Filtering parameter) Any resource subject to substitution must belong to
      * one of the listed "types".
@@ -2910,13 +2583,10 @@ public interface SubstitutionRuleOrBuilder
      * candidates for substitution).
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getTargetGroupKinds(int index); /** - * - * *
      * (Filtering parameter) Any resource subject to substitution must belong to
      * one of the listed "types".
@@ -2925,13 +2595,10 @@ public interface SubstitutionRuleOrBuilder
      * candidates for substitution).
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ int getTargetGroupKindsCount(); /** - * - * *
      * (Filtering parameter) Any resource subject to substitution must belong to
      * one of the listed "types".
@@ -2940,14 +2607,11 @@ public interface SubstitutionRuleOrBuilder
      * candidates for substitution).
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ - java.util.List + java.util.List getTargetGroupKindsOrBuilderList(); /** - * - * *
      * (Filtering parameter) Any resource subject to substitution must belong to
      * one of the listed "types".
@@ -2956,15 +2620,12 @@ public interface SubstitutionRuleOrBuilder
      * candidates for substitution).
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetGroupKindsOrBuilder( int index); /** - * - * *
      * Required. This is a [JSONPath]
      * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
@@ -2976,13 +2637,10 @@ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetGroupKin
      * 
* * string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetJsonPath. */ java.lang.String getTargetJsonPath(); /** - * - * *
      * Required. This is a [JSONPath]
      * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
@@ -2994,14 +2652,12 @@ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetGroupKin
      * 
* * string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetJsonPath. */ - com.google.protobuf.ByteString getTargetJsonPathBytes(); + com.google.protobuf.ByteString + getTargetJsonPathBytes(); /** - * - * *
      * (Filtering parameter) This is a [regular expression]
      * (https://en.wikipedia.org/wiki/Regular_expression)
@@ -3015,13 +2671,10 @@ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetGroupKin
      * 
* * string original_value_pattern = 4; - * * @return The originalValuePattern. */ java.lang.String getOriginalValuePattern(); /** - * - * *
      * (Filtering parameter) This is a [regular expression]
      * (https://en.wikipedia.org/wiki/Regular_expression)
@@ -3035,14 +2688,12 @@ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetGroupKin
      * 
* * string original_value_pattern = 4; - * * @return The bytes for originalValuePattern. */ - com.google.protobuf.ByteString getOriginalValuePatternBytes(); + com.google.protobuf.ByteString + getOriginalValuePatternBytes(); /** - * - * *
      * This is the new value to set for any fields that pass the filtering and
      * selection criteria. To remove a value from a Kubernetes resource, either
@@ -3050,13 +2701,10 @@ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetGroupKin
      * 
* * string new_value = 5; - * * @return The newValue. */ java.lang.String getNewValue(); /** - * - * *
      * This is the new value to set for any fields that pass the filtering and
      * selection criteria. To remove a value from a Kubernetes resource, either
@@ -3064,14 +2712,12 @@ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetGroupKin
      * 
* * string new_value = 5; - * * @return The bytes for newValue. */ - com.google.protobuf.ByteString getNewValueBytes(); + com.google.protobuf.ByteString + getNewValueBytes(); } /** - * - * *
    * A transformation rule to be applied against Kubernetes resources as they
    * are selected for restoration from a Backup. A rule contains both filtering
@@ -3080,16 +2726,15 @@ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetGroupKin
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule}
    */
-  public static final class SubstitutionRule extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class SubstitutionRule extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule)
       SubstitutionRuleOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use SubstitutionRule.newBuilder() to construct.
     private SubstitutionRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private SubstitutionRule() {
       targetNamespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY;
       targetGroupKinds_ = java.util.Collections.emptyList();
@@ -3100,15 +2745,16 @@ private SubstitutionRule() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new SubstitutionRule();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private SubstitutionRule(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -3128,58 +2774,49 @@ private SubstitutionRule(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  targetNamespaces_ = new com.google.protobuf.LazyStringArrayList();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                targetNamespaces_.add(s);
-                break;
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                targetNamespaces_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
               }
-            case 18:
-              {
-                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                  targetGroupKinds_ =
-                      new java.util.ArrayList<
-                          com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind>();
-                  mutable_bitField0_ |= 0x00000002;
-                }
-                targetGroupKinds_.add(
-                    input.readMessage(
-                        com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.parser(),
-                        extensionRegistry));
-                break;
+              targetNamespaces_.add(s);
+              break;
+            }
+            case 18: {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                targetGroupKinds_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
               }
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              targetGroupKinds_.add(
+                  input.readMessage(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.parser(), extensionRegistry));
+              break;
+            }
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                targetJsonPath_ = s;
-                break;
-              }
-            case 34:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              targetJsonPath_ = s;
+              break;
+            }
+            case 34: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                originalValuePattern_ = s;
-                break;
-              }
-            case 42:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              originalValuePattern_ = s;
+              break;
+            }
+            case 42: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                newValue_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              newValue_ = s;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3187,7 +2824,8 @@ private SubstitutionRule(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           targetNamespaces_ = targetNamespaces_.getUnmodifiableView();
@@ -3199,27 +2837,22 @@ private SubstitutionRule(
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkebackup.v1.RestoreProto
-          .internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkebackup.v1.RestoreProto
-          .internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.class,
-              com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder.class);
+              com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.class, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder.class);
     }
 
     public static final int TARGET_NAMESPACES_FIELD_NUMBER = 1;
     private com.google.protobuf.LazyStringList targetNamespaces_;
     /**
-     *
-     *
      * 
      * (Filtering parameter) Any resource subject to substitution must be
      * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -3231,15 +2864,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * repeated string target_namespaces = 1; - * * @return A list containing the targetNamespaces. */ - public com.google.protobuf.ProtocolStringList getTargetNamespacesList() { + public com.google.protobuf.ProtocolStringList + getTargetNamespacesList() { return targetNamespaces_; } /** - * - * *
      * (Filtering parameter) Any resource subject to substitution must be
      * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -3251,15 +2882,12 @@ public com.google.protobuf.ProtocolStringList getTargetNamespacesList() {
      * 
* * repeated string target_namespaces = 1; - * * @return The count of targetNamespaces. */ public int getTargetNamespacesCount() { return targetNamespaces_.size(); } /** - * - * *
      * (Filtering parameter) Any resource subject to substitution must be
      * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -3271,7 +2899,6 @@ public int getTargetNamespacesCount() {
      * 
* * repeated string target_namespaces = 1; - * * @param index The index of the element to return. * @return The targetNamespaces at the given index. */ @@ -3279,8 +2906,6 @@ public java.lang.String getTargetNamespaces(int index) { return targetNamespaces_.get(index); } /** - * - * *
      * (Filtering parameter) Any resource subject to substitution must be
      * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -3292,19 +2917,17 @@ public java.lang.String getTargetNamespaces(int index) {
      * 
* * repeated string target_namespaces = 1; - * * @param index The index of the value to return. * @return The bytes of the targetNamespaces at the given index. */ - public com.google.protobuf.ByteString getTargetNamespacesBytes(int index) { + public com.google.protobuf.ByteString + getTargetNamespacesBytes(int index) { return targetNamespaces_.getByteString(index); } public static final int TARGET_GROUP_KINDS_FIELD_NUMBER = 2; private java.util.List targetGroupKinds_; /** - * - * *
      * (Filtering parameter) Any resource subject to substitution must belong to
      * one of the listed "types".
@@ -3313,17 +2936,13 @@ public com.google.protobuf.ByteString getTargetNamespacesBytes(int index) {
      * candidates for substitution).
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ @java.lang.Override - public java.util.List - getTargetGroupKindsList() { + public java.util.List getTargetGroupKindsList() { return targetGroupKinds_; } /** - * - * *
      * (Filtering parameter) Any resource subject to substitution must belong to
      * one of the listed "types".
@@ -3332,17 +2951,14 @@ public com.google.protobuf.ByteString getTargetNamespacesBytes(int index) {
      * candidates for substitution).
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ @java.lang.Override - public java.util.List + public java.util.List getTargetGroupKindsOrBuilderList() { return targetGroupKinds_; } /** - * - * *
      * (Filtering parameter) Any resource subject to substitution must belong to
      * one of the listed "types".
@@ -3351,16 +2967,13 @@ public com.google.protobuf.ByteString getTargetNamespacesBytes(int index) {
      * candidates for substitution).
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ @java.lang.Override public int getTargetGroupKindsCount() { return targetGroupKinds_.size(); } /** - * - * *
      * (Filtering parameter) Any resource subject to substitution must belong to
      * one of the listed "types".
@@ -3369,16 +2982,13 @@ public int getTargetGroupKindsCount() {
      * candidates for substitution).
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getTargetGroupKinds(int index) { return targetGroupKinds_.get(index); } /** - * - * *
      * (Filtering parameter) Any resource subject to substitution must belong to
      * one of the listed "types".
@@ -3387,20 +2997,17 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getTargetGroupKinds
      * candidates for substitution).
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder - getTargetGroupKindsOrBuilder(int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetGroupKindsOrBuilder( + int index) { return targetGroupKinds_.get(index); } public static final int TARGET_JSON_PATH_FIELD_NUMBER = 3; private volatile java.lang.Object targetJsonPath_; /** - * - * *
      * Required. This is a [JSONPath]
      * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
@@ -3412,7 +3019,6 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getTargetGroupKinds
      * 
* * string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetJsonPath. */ @java.lang.Override @@ -3421,15 +3027,14 @@ public java.lang.String getTargetJsonPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetJsonPath_ = s; return s; } } /** - * - * *
      * Required. This is a [JSONPath]
      * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
@@ -3441,15 +3046,16 @@ public java.lang.String getTargetJsonPath() {
      * 
* * string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetJsonPath. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetJsonPathBytes() { + public com.google.protobuf.ByteString + getTargetJsonPathBytes() { java.lang.Object ref = targetJsonPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetJsonPath_ = b; return b; } else { @@ -3460,8 +3066,6 @@ public com.google.protobuf.ByteString getTargetJsonPathBytes() { public static final int ORIGINAL_VALUE_PATTERN_FIELD_NUMBER = 4; private volatile java.lang.Object originalValuePattern_; /** - * - * *
      * (Filtering parameter) This is a [regular expression]
      * (https://en.wikipedia.org/wiki/Regular_expression)
@@ -3475,7 +3079,6 @@ public com.google.protobuf.ByteString getTargetJsonPathBytes() {
      * 
* * string original_value_pattern = 4; - * * @return The originalValuePattern. */ @java.lang.Override @@ -3484,15 +3087,14 @@ public java.lang.String getOriginalValuePattern() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalValuePattern_ = s; return s; } } /** - * - * *
      * (Filtering parameter) This is a [regular expression]
      * (https://en.wikipedia.org/wiki/Regular_expression)
@@ -3506,15 +3108,16 @@ public java.lang.String getOriginalValuePattern() {
      * 
* * string original_value_pattern = 4; - * * @return The bytes for originalValuePattern. */ @java.lang.Override - public com.google.protobuf.ByteString getOriginalValuePatternBytes() { + public com.google.protobuf.ByteString + getOriginalValuePatternBytes() { java.lang.Object ref = originalValuePattern_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); originalValuePattern_ = b; return b; } else { @@ -3525,8 +3128,6 @@ public com.google.protobuf.ByteString getOriginalValuePatternBytes() { public static final int NEW_VALUE_FIELD_NUMBER = 5; private volatile java.lang.Object newValue_; /** - * - * *
      * This is the new value to set for any fields that pass the filtering and
      * selection criteria. To remove a value from a Kubernetes resource, either
@@ -3534,7 +3135,6 @@ public com.google.protobuf.ByteString getOriginalValuePatternBytes() {
      * 
* * string new_value = 5; - * * @return The newValue. */ @java.lang.Override @@ -3543,15 +3143,14 @@ public java.lang.String getNewValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); newValue_ = s; return s; } } /** - * - * *
      * This is the new value to set for any fields that pass the filtering and
      * selection criteria. To remove a value from a Kubernetes resource, either
@@ -3559,15 +3158,16 @@ public java.lang.String getNewValue() {
      * 
* * string new_value = 5; - * * @return The bytes for newValue. */ @java.lang.Override - public com.google.protobuf.ByteString getNewValueBytes() { + public com.google.protobuf.ByteString + getNewValueBytes() { java.lang.Object ref = newValue_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); newValue_ = b; return b; } else { @@ -3576,7 +3176,6 @@ public com.google.protobuf.ByteString getNewValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3588,7 +3187,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < targetNamespaces_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetNamespaces_.getRaw(i)); } @@ -3622,8 +3222,8 @@ public int getSerializedSize() { size += 1 * getTargetNamespacesList().size(); } for (int i = 0; i < targetGroupKinds_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, targetGroupKinds_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, targetGroupKinds_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetJsonPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetJsonPath_); @@ -3642,19 +3242,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule other = - (com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule) obj; - - if (!getTargetNamespacesList().equals(other.getTargetNamespacesList())) return false; - if (!getTargetGroupKindsList().equals(other.getTargetGroupKindsList())) return false; - if (!getTargetJsonPath().equals(other.getTargetJsonPath())) return false; - if (!getOriginalValuePattern().equals(other.getOriginalValuePattern())) return false; - if (!getNewValue().equals(other.getNewValue())) return false; + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule other = (com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule) obj; + + if (!getTargetNamespacesList() + .equals(other.getTargetNamespacesList())) return false; + if (!getTargetGroupKindsList() + .equals(other.getTargetGroupKindsList())) return false; + if (!getTargetJsonPath() + .equals(other.getTargetJsonPath())) return false; + if (!getOriginalValuePattern() + .equals(other.getOriginalValuePattern())) return false; + if (!getNewValue() + .equals(other.getNewValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3686,94 +3290,87 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule prototype) { + public static Builder newBuilder(com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3783,8 +3380,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A transformation rule to be applied against Kubernetes resources as they
      * are selected for restoration from a Backup. A rule contains both filtering
@@ -3793,24 +3388,21 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule)
         com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.gkebackup.v1.RestoreProto
-            .internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.gkebackup.v1.RestoreProto
-            .internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_fieldAccessorTable
+        return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.class,
-                com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder.class);
+                com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.class, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder.class);
       }
 
       // Construct using com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.newBuilder()
@@ -3818,17 +3410,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) {
           getTargetGroupKindsFieldBuilder();
         }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -3850,14 +3442,13 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.gkebackup.v1.RestoreProto
-            .internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule
-          getDefaultInstanceForType() {
+      public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getDefaultInstanceForType() {
         return com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.getDefaultInstance();
       }
 
@@ -3872,8 +3463,7 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule build() {
 
       @java.lang.Override
       public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule buildPartial() {
-        com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule result =
-            new com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule(this);
+        com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule result = new com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule(this);
         int from_bitField0_ = bitField0_;
         if (((bitField0_ & 0x00000001) != 0)) {
           targetNamespaces_ = targetNamespaces_.getUnmodifiableView();
@@ -3900,41 +3490,38 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule 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) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule) {
-          return mergeFrom((com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule) other);
+          return mergeFrom((com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -3942,9 +3529,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule other) {
-        if (other
-            == com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.getDefaultInstance()) return this;
         if (!other.targetNamespaces_.isEmpty()) {
           if (targetNamespaces_.isEmpty()) {
             targetNamespaces_ = other.targetNamespaces_;
@@ -3973,10 +3558,9 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.RestoreConfig.Substitutio
               targetGroupKindsBuilder_ = null;
               targetGroupKinds_ = other.targetGroupKinds_;
               bitField0_ = (bitField0_ & ~0x00000002);
-              targetGroupKindsBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getTargetGroupKindsFieldBuilder()
-                      : null;
+              targetGroupKindsBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getTargetGroupKindsFieldBuilder() : null;
             } else {
               targetGroupKindsBuilder_.addAllMessages(other.targetGroupKinds_);
             }
@@ -4013,9 +3597,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -4024,21 +3606,16 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int bitField0_;
 
-      private com.google.protobuf.LazyStringList targetNamespaces_ =
-          com.google.protobuf.LazyStringArrayList.EMPTY;
-
+      private com.google.protobuf.LazyStringList targetNamespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY;
       private void ensureTargetNamespacesIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
           targetNamespaces_ = new com.google.protobuf.LazyStringArrayList(targetNamespaces_);
           bitField0_ |= 0x00000001;
-        }
+         }
       }
       /**
-       *
-       *
        * 
        * (Filtering parameter) Any resource subject to substitution must be
        * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -4050,15 +3627,13 @@ private void ensureTargetNamespacesIsMutable() {
        * 
* * repeated string target_namespaces = 1; - * * @return A list containing the targetNamespaces. */ - public com.google.protobuf.ProtocolStringList getTargetNamespacesList() { + public com.google.protobuf.ProtocolStringList + getTargetNamespacesList() { return targetNamespaces_.getUnmodifiableView(); } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must be
        * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -4070,15 +3645,12 @@ public com.google.protobuf.ProtocolStringList getTargetNamespacesList() {
        * 
* * repeated string target_namespaces = 1; - * * @return The count of targetNamespaces. */ public int getTargetNamespacesCount() { return targetNamespaces_.size(); } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must be
        * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -4090,7 +3662,6 @@ public int getTargetNamespacesCount() {
        * 
* * repeated string target_namespaces = 1; - * * @param index The index of the element to return. * @return The targetNamespaces at the given index. */ @@ -4098,8 +3669,6 @@ public java.lang.String getTargetNamespaces(int index) { return targetNamespaces_.get(index); } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must be
        * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -4111,16 +3680,14 @@ public java.lang.String getTargetNamespaces(int index) {
        * 
* * repeated string target_namespaces = 1; - * * @param index The index of the value to return. * @return The bytes of the targetNamespaces at the given index. */ - public com.google.protobuf.ByteString getTargetNamespacesBytes(int index) { + public com.google.protobuf.ByteString + getTargetNamespacesBytes(int index) { return targetNamespaces_.getByteString(index); } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must be
        * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -4132,23 +3699,21 @@ public com.google.protobuf.ByteString getTargetNamespacesBytes(int index) {
        * 
* * repeated string target_namespaces = 1; - * * @param index The index to set the value at. * @param value The targetNamespaces to set. * @return This builder for chaining. */ - public Builder setTargetNamespaces(int index, java.lang.String value) { + public Builder setTargetNamespaces( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTargetNamespacesIsMutable(); + throw new NullPointerException(); + } + ensureTargetNamespacesIsMutable(); targetNamespaces_.set(index, value); onChanged(); return this; } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must be
        * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -4160,22 +3725,20 @@ public Builder setTargetNamespaces(int index, java.lang.String value) {
        * 
* * repeated string target_namespaces = 1; - * * @param value The targetNamespaces to add. * @return This builder for chaining. */ - public Builder addTargetNamespaces(java.lang.String value) { + public Builder addTargetNamespaces( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTargetNamespacesIsMutable(); + throw new NullPointerException(); + } + ensureTargetNamespacesIsMutable(); targetNamespaces_.add(value); onChanged(); return this; } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must be
        * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -4187,19 +3750,18 @@ public Builder addTargetNamespaces(java.lang.String value) {
        * 
* * repeated string target_namespaces = 1; - * * @param values The targetNamespaces to add. * @return This builder for chaining. */ - public Builder addAllTargetNamespaces(java.lang.Iterable values) { + public Builder addAllTargetNamespaces( + java.lang.Iterable values) { ensureTargetNamespacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetNamespaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targetNamespaces_); onChanged(); return this; } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must be
        * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -4211,7 +3773,6 @@ public Builder addAllTargetNamespaces(java.lang.Iterable value
        * 
* * repeated string target_namespaces = 1; - * * @return This builder for chaining. */ public Builder clearTargetNamespaces() { @@ -4221,8 +3782,6 @@ public Builder clearTargetNamespaces() { return this; } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must be
        * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -4234,42 +3793,34 @@ public Builder clearTargetNamespaces() {
        * 
* * repeated string target_namespaces = 1; - * * @param value The bytes of the targetNamespaces to add. * @return This builder for chaining. */ - public Builder addTargetNamespacesBytes(com.google.protobuf.ByteString value) { + public Builder addTargetNamespacesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTargetNamespacesIsMutable(); targetNamespaces_.add(value); onChanged(); return this; } - private java.util.List - targetGroupKinds_ = java.util.Collections.emptyList(); - + private java.util.List targetGroupKinds_ = + java.util.Collections.emptyList(); private void ensureTargetGroupKindsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - targetGroupKinds_ = - new java.util.ArrayList( - targetGroupKinds_); + targetGroupKinds_ = new java.util.ArrayList(targetGroupKinds_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> - targetGroupKindsBuilder_; + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> targetGroupKindsBuilder_; /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4278,11 +3829,9 @@ private void ensureTargetGroupKindsIsMutable() {
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ - public java.util.List - getTargetGroupKindsList() { + public java.util.List getTargetGroupKindsList() { if (targetGroupKindsBuilder_ == null) { return java.util.Collections.unmodifiableList(targetGroupKinds_); } else { @@ -4290,8 +3839,6 @@ private void ensureTargetGroupKindsIsMutable() { } } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4300,8 +3847,7 @@ private void ensureTargetGroupKindsIsMutable() {
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ public int getTargetGroupKindsCount() { if (targetGroupKindsBuilder_ == null) { @@ -4311,8 +3857,6 @@ public int getTargetGroupKindsCount() { } } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4321,8 +3865,7 @@ public int getTargetGroupKindsCount() {
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getTargetGroupKinds(int index) { if (targetGroupKindsBuilder_ == null) { @@ -4332,8 +3875,6 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getTargetGroupKinds } } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4342,8 +3883,7 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getTargetGroupKinds
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ public Builder setTargetGroupKinds( int index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { @@ -4360,8 +3900,6 @@ public Builder setTargetGroupKinds( return this; } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4370,12 +3908,10 @@ public Builder setTargetGroupKinds(
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ public Builder setTargetGroupKinds( - int index, - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { + int index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { if (targetGroupKindsBuilder_ == null) { ensureTargetGroupKindsIsMutable(); targetGroupKinds_.set(index, builderForValue.build()); @@ -4386,8 +3922,6 @@ public Builder setTargetGroupKinds( return this; } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4396,11 +3930,9 @@ public Builder setTargetGroupKinds(
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ - public Builder addTargetGroupKinds( - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { + public Builder addTargetGroupKinds(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { if (targetGroupKindsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4414,8 +3946,6 @@ public Builder addTargetGroupKinds( return this; } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4424,8 +3954,7 @@ public Builder addTargetGroupKinds(
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ public Builder addTargetGroupKinds( int index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { @@ -4442,8 +3971,6 @@ public Builder addTargetGroupKinds( return this; } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4452,8 +3979,7 @@ public Builder addTargetGroupKinds(
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ public Builder addTargetGroupKinds( com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { @@ -4467,8 +3993,6 @@ public Builder addTargetGroupKinds( return this; } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4477,12 +4001,10 @@ public Builder addTargetGroupKinds(
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ public Builder addTargetGroupKinds( - int index, - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { + int index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { if (targetGroupKindsBuilder_ == null) { ensureTargetGroupKindsIsMutable(); targetGroupKinds_.add(index, builderForValue.build()); @@ -4493,8 +4015,6 @@ public Builder addTargetGroupKinds( return this; } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4503,15 +4023,14 @@ public Builder addTargetGroupKinds(
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ public Builder addAllTargetGroupKinds( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (targetGroupKindsBuilder_ == null) { ensureTargetGroupKindsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetGroupKinds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targetGroupKinds_); onChanged(); } else { targetGroupKindsBuilder_.addAllMessages(values); @@ -4519,8 +4038,6 @@ public Builder addAllTargetGroupKinds( return this; } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4529,8 +4046,7 @@ public Builder addAllTargetGroupKinds(
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ public Builder clearTargetGroupKinds() { if (targetGroupKindsBuilder_ == null) { @@ -4543,8 +4059,6 @@ public Builder clearTargetGroupKinds() { return this; } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4553,8 +4067,7 @@ public Builder clearTargetGroupKinds() {
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ public Builder removeTargetGroupKinds(int index) { if (targetGroupKindsBuilder_ == null) { @@ -4567,8 +4080,6 @@ public Builder removeTargetGroupKinds(int index) { return this; } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4577,16 +4088,13 @@ public Builder removeTargetGroupKinds(int index) {
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder - getTargetGroupKindsBuilder(int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder getTargetGroupKindsBuilder( + int index) { return getTargetGroupKindsFieldBuilder().getBuilder(index); } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4595,20 +4103,16 @@ public Builder removeTargetGroupKinds(int index) {
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder - getTargetGroupKindsOrBuilder(int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetGroupKindsOrBuilder( + int index) { if (targetGroupKindsBuilder_ == null) { - return targetGroupKinds_.get(index); - } else { + return targetGroupKinds_.get(index); } else { return targetGroupKindsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4617,12 +4121,10 @@ public Builder removeTargetGroupKinds(int index) {
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ - public java.util.List< - ? extends com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> - getTargetGroupKindsOrBuilderList() { + public java.util.List + getTargetGroupKindsOrBuilderList() { if (targetGroupKindsBuilder_ != null) { return targetGroupKindsBuilder_.getMessageOrBuilderList(); } else { @@ -4630,8 +4132,6 @@ public Builder removeTargetGroupKinds(int index) { } } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4640,17 +4140,13 @@ public Builder removeTargetGroupKinds(int index) {
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder - addTargetGroupKindsBuilder() { - return getTargetGroupKindsFieldBuilder() - .addBuilder(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder addTargetGroupKindsBuilder() { + return getTargetGroupKindsFieldBuilder().addBuilder( + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()); } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4659,18 +4155,14 @@ public Builder removeTargetGroupKinds(int index) {
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder - addTargetGroupKindsBuilder(int index) { - return getTargetGroupKindsFieldBuilder() - .addBuilder( - index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder addTargetGroupKindsBuilder( + int index) { + return getTargetGroupKindsFieldBuilder().addBuilder( + index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()); } /** - * - * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4679,25 +4171,18 @@ public Builder removeTargetGroupKinds(int index) {
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; */ - public java.util.List - getTargetGroupKindsBuilderList() { + public java.util.List + getTargetGroupKindsBuilderList() { return getTargetGroupKindsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> getTargetGroupKindsFieldBuilder() { if (targetGroupKindsBuilder_ == null) { - targetGroupKindsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder>( + targetGroupKindsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder>( targetGroupKinds_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -4709,8 +4194,6 @@ public Builder removeTargetGroupKinds(int index) { private java.lang.Object targetJsonPath_ = ""; /** - * - * *
        * Required. This is a [JSONPath]
        * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
@@ -4722,13 +4205,13 @@ public Builder removeTargetGroupKinds(int index) {
        * 
* * string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetJsonPath. */ public java.lang.String getTargetJsonPath() { java.lang.Object ref = targetJsonPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetJsonPath_ = s; return s; @@ -4737,8 +4220,6 @@ public java.lang.String getTargetJsonPath() { } } /** - * - * *
        * Required. This is a [JSONPath]
        * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
@@ -4750,14 +4231,15 @@ public java.lang.String getTargetJsonPath() {
        * 
* * string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetJsonPath. */ - public com.google.protobuf.ByteString getTargetJsonPathBytes() { + public com.google.protobuf.ByteString + getTargetJsonPathBytes() { java.lang.Object ref = targetJsonPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetJsonPath_ = b; return b; } else { @@ -4765,8 +4247,6 @@ public com.google.protobuf.ByteString getTargetJsonPathBytes() { } } /** - * - * *
        * Required. This is a [JSONPath]
        * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
@@ -4778,22 +4258,20 @@ public com.google.protobuf.ByteString getTargetJsonPathBytes() {
        * 
* * string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The targetJsonPath to set. * @return This builder for chaining. */ - public Builder setTargetJsonPath(java.lang.String value) { + public Builder setTargetJsonPath( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetJsonPath_ = value; onChanged(); return this; } /** - * - * *
        * Required. This is a [JSONPath]
        * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
@@ -4805,18 +4283,15 @@ public Builder setTargetJsonPath(java.lang.String value) {
        * 
* * string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTargetJsonPath() { - + targetJsonPath_ = getDefaultInstance().getTargetJsonPath(); onChanged(); return this; } /** - * - * *
        * Required. This is a [JSONPath]
        * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
@@ -4828,16 +4303,16 @@ public Builder clearTargetJsonPath() {
        * 
* * string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for targetJsonPath to set. * @return This builder for chaining. */ - public Builder setTargetJsonPathBytes(com.google.protobuf.ByteString value) { + public Builder setTargetJsonPathBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetJsonPath_ = value; onChanged(); return this; @@ -4845,8 +4320,6 @@ public Builder setTargetJsonPathBytes(com.google.protobuf.ByteString value) { private java.lang.Object originalValuePattern_ = ""; /** - * - * *
        * (Filtering parameter) This is a [regular expression]
        * (https://en.wikipedia.org/wiki/Regular_expression)
@@ -4860,13 +4333,13 @@ public Builder setTargetJsonPathBytes(com.google.protobuf.ByteString value) {
        * 
* * string original_value_pattern = 4; - * * @return The originalValuePattern. */ public java.lang.String getOriginalValuePattern() { java.lang.Object ref = originalValuePattern_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalValuePattern_ = s; return s; @@ -4875,8 +4348,6 @@ public java.lang.String getOriginalValuePattern() { } } /** - * - * *
        * (Filtering parameter) This is a [regular expression]
        * (https://en.wikipedia.org/wiki/Regular_expression)
@@ -4890,14 +4361,15 @@ public java.lang.String getOriginalValuePattern() {
        * 
* * string original_value_pattern = 4; - * * @return The bytes for originalValuePattern. */ - public com.google.protobuf.ByteString getOriginalValuePatternBytes() { + public com.google.protobuf.ByteString + getOriginalValuePatternBytes() { java.lang.Object ref = originalValuePattern_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); originalValuePattern_ = b; return b; } else { @@ -4905,8 +4377,6 @@ public com.google.protobuf.ByteString getOriginalValuePatternBytes() { } } /** - * - * *
        * (Filtering parameter) This is a [regular expression]
        * (https://en.wikipedia.org/wiki/Regular_expression)
@@ -4920,22 +4390,20 @@ public com.google.protobuf.ByteString getOriginalValuePatternBytes() {
        * 
* * string original_value_pattern = 4; - * * @param value The originalValuePattern to set. * @return This builder for chaining. */ - public Builder setOriginalValuePattern(java.lang.String value) { + public Builder setOriginalValuePattern( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + originalValuePattern_ = value; onChanged(); return this; } /** - * - * *
        * (Filtering parameter) This is a [regular expression]
        * (https://en.wikipedia.org/wiki/Regular_expression)
@@ -4949,18 +4417,15 @@ public Builder setOriginalValuePattern(java.lang.String value) {
        * 
* * string original_value_pattern = 4; - * * @return This builder for chaining. */ public Builder clearOriginalValuePattern() { - + originalValuePattern_ = getDefaultInstance().getOriginalValuePattern(); onChanged(); return this; } /** - * - * *
        * (Filtering parameter) This is a [regular expression]
        * (https://en.wikipedia.org/wiki/Regular_expression)
@@ -4974,16 +4439,16 @@ public Builder clearOriginalValuePattern() {
        * 
* * string original_value_pattern = 4; - * * @param value The bytes for originalValuePattern to set. * @return This builder for chaining. */ - public Builder setOriginalValuePatternBytes(com.google.protobuf.ByteString value) { + public Builder setOriginalValuePatternBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + originalValuePattern_ = value; onChanged(); return this; @@ -4991,8 +4456,6 @@ public Builder setOriginalValuePatternBytes(com.google.protobuf.ByteString value private java.lang.Object newValue_ = ""; /** - * - * *
        * This is the new value to set for any fields that pass the filtering and
        * selection criteria. To remove a value from a Kubernetes resource, either
@@ -5000,13 +4463,13 @@ public Builder setOriginalValuePatternBytes(com.google.protobuf.ByteString value
        * 
* * string new_value = 5; - * * @return The newValue. */ public java.lang.String getNewValue() { java.lang.Object ref = newValue_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); newValue_ = s; return s; @@ -5015,8 +4478,6 @@ public java.lang.String getNewValue() { } } /** - * - * *
        * This is the new value to set for any fields that pass the filtering and
        * selection criteria. To remove a value from a Kubernetes resource, either
@@ -5024,14 +4485,15 @@ public java.lang.String getNewValue() {
        * 
* * string new_value = 5; - * * @return The bytes for newValue. */ - public com.google.protobuf.ByteString getNewValueBytes() { + public com.google.protobuf.ByteString + getNewValueBytes() { java.lang.Object ref = newValue_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); newValue_ = b; return b; } else { @@ -5039,8 +4501,6 @@ public com.google.protobuf.ByteString getNewValueBytes() { } } /** - * - * *
        * This is the new value to set for any fields that pass the filtering and
        * selection criteria. To remove a value from a Kubernetes resource, either
@@ -5048,22 +4508,20 @@ public com.google.protobuf.ByteString getNewValueBytes() {
        * 
* * string new_value = 5; - * * @param value The newValue to set. * @return This builder for chaining. */ - public Builder setNewValue(java.lang.String value) { + public Builder setNewValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + newValue_ = value; onChanged(); return this; } /** - * - * *
        * This is the new value to set for any fields that pass the filtering and
        * selection criteria. To remove a value from a Kubernetes resource, either
@@ -5071,18 +4529,15 @@ public Builder setNewValue(java.lang.String value) {
        * 
* * string new_value = 5; - * * @return This builder for chaining. */ public Builder clearNewValue() { - + newValue_ = getDefaultInstance().getNewValue(); onChanged(); return this; } /** - * - * *
        * This is the new value to set for any fields that pass the filtering and
        * selection criteria. To remove a value from a Kubernetes resource, either
@@ -5090,21 +4545,20 @@ public Builder clearNewValue() {
        * 
* * string new_value = 5; - * * @param value The bytes for newValue to set. * @return This builder for chaining. */ - public Builder setNewValueBytes(com.google.protobuf.ByteString value) { + public Builder setNewValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + newValue_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5117,32 +4571,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule) - private static final com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule(); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule - getDefaultInstance() { + public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubstitutionRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubstitutionRule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubstitutionRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubstitutionRule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5154,25 +4606,22 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule - getDefaultInstanceForType() { + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int namespacedResourceRestoreScopeCase_ = 0; private java.lang.Object namespacedResourceRestoreScope_; - public enum NamespacedResourceRestoreScopeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ALL_NAMESPACES(5), SELECTED_NAMESPACES(6), SELECTED_APPLICATIONS(7), NAMESPACEDRESOURCERESTORESCOPE_NOT_SET(0); private final int value; - private NamespacedResourceRestoreScopeCase(int value) { this.value = value; } @@ -5188,81 +4637,58 @@ public static NamespacedResourceRestoreScopeCase valueOf(int value) { public static NamespacedResourceRestoreScopeCase forNumber(int value) { switch (value) { - case 5: - return ALL_NAMESPACES; - case 6: - return SELECTED_NAMESPACES; - case 7: - return SELECTED_APPLICATIONS; - case 0: - return NAMESPACEDRESOURCERESTORESCOPE_NOT_SET; - default: - return null; + case 5: return ALL_NAMESPACES; + case 6: return SELECTED_NAMESPACES; + case 7: return SELECTED_APPLICATIONS; + case 0: return NAMESPACEDRESOURCERESTORESCOPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public NamespacedResourceRestoreScopeCase getNamespacedResourceRestoreScopeCase() { - return NamespacedResourceRestoreScopeCase.forNumber(namespacedResourceRestoreScopeCase_); + public NamespacedResourceRestoreScopeCase + getNamespacedResourceRestoreScopeCase() { + return NamespacedResourceRestoreScopeCase.forNumber( + namespacedResourceRestoreScopeCase_); } public static final int VOLUME_DATA_RESTORE_POLICY_FIELD_NUMBER = 1; private int volumeDataRestorePolicy_; /** - * - * *
    * Specifies the mechanism to be used to restore volume data.
    * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
    * NO_VOLUME_DATA_RESTORATION).
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; * @return The enum numeric value on the wire for volumeDataRestorePolicy. */ - @java.lang.Override - public int getVolumeDataRestorePolicyValue() { + @java.lang.Override public int getVolumeDataRestorePolicyValue() { return volumeDataRestorePolicy_; } /** - * - * *
    * Specifies the mechanism to be used to restore volume data.
    * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
    * NO_VOLUME_DATA_RESTORATION).
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; * @return The volumeDataRestorePolicy. */ - @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy - getVolumeDataRestorePolicy() { + @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy getVolumeDataRestorePolicy() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy result = - com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.valueOf( - volumeDataRestorePolicy_); - return result == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.UNRECOGNIZED - : result; + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy result = com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.valueOf(volumeDataRestorePolicy_); + return result == null ? com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.UNRECOGNIZED : result; } public static final int CLUSTER_RESOURCE_CONFLICT_POLICY_FIELD_NUMBER = 2; private int clusterResourceConflictPolicy_; /** - * - * *
    * Defines the behavior for handling the situation where cluster-scoped
    * resources being restored already exist in the target cluster. This MUST be
@@ -5270,19 +4696,13 @@ public int getVolumeDataRestorePolicyValue() {
    * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope] is not empty.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; * @return The enum numeric value on the wire for clusterResourceConflictPolicy. */ - @java.lang.Override - public int getClusterResourceConflictPolicyValue() { + @java.lang.Override public int getClusterResourceConflictPolicyValue() { return clusterResourceConflictPolicy_; } /** - * - * *
    * Defines the behavior for handling the situation where cluster-scoped
    * resources being restored already exist in the target cluster. This MUST be
@@ -5290,87 +4710,55 @@ public int getClusterResourceConflictPolicyValue() {
    * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope] is not empty.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; * @return The clusterResourceConflictPolicy. */ - @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy - getClusterResourceConflictPolicy() { + @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy getClusterResourceConflictPolicy() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy result = - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.valueOf( - clusterResourceConflictPolicy_); - return result == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.UNRECOGNIZED - : result; + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy result = com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.valueOf(clusterResourceConflictPolicy_); + return result == null ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.UNRECOGNIZED : result; } public static final int NAMESPACED_RESOURCE_RESTORE_MODE_FIELD_NUMBER = 3; private int namespacedResourceRestoreMode_; /** - * - * *
    * Defines the behavior for handling the situation where sets of namespaced
    * resources being restored already exist in the target cluster. This MUST be
    * set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; * @return The enum numeric value on the wire for namespacedResourceRestoreMode. */ - @java.lang.Override - public int getNamespacedResourceRestoreModeValue() { + @java.lang.Override public int getNamespacedResourceRestoreModeValue() { return namespacedResourceRestoreMode_; } /** - * - * *
    * Defines the behavior for handling the situation where sets of namespaced
    * resources being restored already exist in the target cluster. This MUST be
    * set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; * @return The namespacedResourceRestoreMode. */ - @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode - getNamespacedResourceRestoreMode() { + @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode getNamespacedResourceRestoreMode() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode result = - com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.valueOf( - namespacedResourceRestoreMode_); - return result == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.UNRECOGNIZED - : result; + com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode result = com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.valueOf(namespacedResourceRestoreMode_); + return result == null ? com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.UNRECOGNIZED : result; } public static final int CLUSTER_RESOURCE_RESTORE_SCOPE_FIELD_NUMBER = 4; - private com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - clusterResourceRestoreScope_; + private com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope clusterResourceRestoreScope_; /** - * - * *
    * Identifies the cluster-scoped resources to restore from the Backup.
    * Not specifying it means NO cluster resource will be restored.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; * @return Whether the clusterResourceRestoreScope field is set. */ @java.lang.Override @@ -5378,56 +4766,39 @@ public boolean hasClusterResourceRestoreScope() { return clusterResourceRestoreScope_ != null; } /** - * - * *
    * Identifies the cluster-scoped resources to restore from the Backup.
    * Not specifying it means NO cluster resource will be restored.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; * @return The clusterResourceRestoreScope. */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - getClusterResourceRestoreScope() { - return clusterResourceRestoreScope_ == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - .getDefaultInstance() - : clusterResourceRestoreScope_; + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope getClusterResourceRestoreScope() { + return clusterResourceRestoreScope_ == null ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.getDefaultInstance() : clusterResourceRestoreScope_; } /** - * - * *
    * Identifies the cluster-scoped resources to restore from the Backup.
    * Not specifying it means NO cluster resource will be restored.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder - getClusterResourceRestoreScopeOrBuilder() { + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder getClusterResourceRestoreScopeOrBuilder() { return getClusterResourceRestoreScope(); } public static final int ALL_NAMESPACES_FIELD_NUMBER = 5; /** - * - * *
    * Restore all namespaced resources in the Backup if set to "True".
    * Specifying this field to "False" is an error.
    * 
* * bool all_namespaces = 5; - * * @return Whether the allNamespaces field is set. */ @java.lang.Override @@ -5435,15 +4806,12 @@ public boolean hasAllNamespaces() { return namespacedResourceRestoreScopeCase_ == 5; } /** - * - * *
    * Restore all namespaced resources in the Backup if set to "True".
    * Specifying this field to "False" is an error.
    * 
* * bool all_namespaces = 5; - * * @return The allNamespaces. */ @java.lang.Override @@ -5456,15 +4824,12 @@ public boolean getAllNamespaces() { public static final int SELECTED_NAMESPACES_FIELD_NUMBER = 6; /** - * - * *
    * A list of selected Namespaces to restore from the Backup. The listed
    * Namespaces and all resources contained in them will be restored.
    * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; - * * @return Whether the selectedNamespaces field is set. */ @java.lang.Override @@ -5472,27 +4837,22 @@ public boolean hasSelectedNamespaces() { return namespacedResourceRestoreScopeCase_ == 6; } /** - * - * *
    * A list of selected Namespaces to restore from the Backup. The listed
    * Namespaces and all resources contained in them will be restored.
    * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; - * * @return The selectedNamespaces. */ @java.lang.Override public com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces() { if (namespacedResourceRestoreScopeCase_ == 6) { - return (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_; + return (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_; } return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); } /** - * - * *
    * A list of selected Namespaces to restore from the Backup. The listed
    * Namespaces and all resources contained in them will be restored.
@@ -5503,15 +4863,13 @@ public com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces() {
   @java.lang.Override
   public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOrBuilder() {
     if (namespacedResourceRestoreScopeCase_ == 6) {
-      return (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_;
+       return (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_;
     }
     return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance();
   }
 
   public static final int SELECTED_APPLICATIONS_FIELD_NUMBER = 7;
   /**
-   *
-   *
    * 
    * A list of selected ProtectedApplications to restore. The listed
    * ProtectedApplications and all the resources to which they refer will be
@@ -5519,7 +4877,6 @@ public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOr
    * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; - * * @return Whether the selectedApplications field is set. */ @java.lang.Override @@ -5527,8 +4884,6 @@ public boolean hasSelectedApplications() { return namespacedResourceRestoreScopeCase_ == 7; } /** - * - * *
    * A list of selected ProtectedApplications to restore. The listed
    * ProtectedApplications and all the resources to which they refer will be
@@ -5536,19 +4891,16 @@ public boolean hasSelectedApplications() {
    * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; - * * @return The selectedApplications. */ @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications() { if (namespacedResourceRestoreScopeCase_ == 7) { - return (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_; + return (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_; } return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); } /** - * - * *
    * A list of selected ProtectedApplications to restore. The listed
    * ProtectedApplications and all the resources to which they refer will be
@@ -5560,17 +4912,14 @@ public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications() {
   @java.lang.Override
   public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder() {
     if (namespacedResourceRestoreScopeCase_ == 7) {
-      return (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_;
+       return (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_;
     }
     return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance();
   }
 
   public static final int SUBSTITUTION_RULES_FIELD_NUMBER = 8;
-  private java.util.List
-      substitutionRules_;
+  private java.util.List substitutionRules_;
   /**
-   *
-   *
    * 
    * A list of transformation rules to be applied against Kubernetes resources
    * as they are selected for restoration from a Backup. Rules are executed in
@@ -5579,18 +4928,13 @@ public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplica
    * substitution will occur.
    * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ @java.lang.Override - public java.util.List - getSubstitutionRulesList() { + public java.util.List getSubstitutionRulesList() { return substitutionRules_; } /** - * - * *
    * A list of transformation rules to be applied against Kubernetes resources
    * as they are selected for restoration from a Backup. Rules are executed in
@@ -5599,19 +4943,14 @@ public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplica
    * substitution will occur.
    * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder> + public java.util.List getSubstitutionRulesOrBuilderList() { return substitutionRules_; } - /** - * - * + /** *
    * A list of transformation rules to be applied against Kubernetes resources
    * as they are selected for restoration from a Backup. Rules are executed in
@@ -5620,17 +4959,13 @@ public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplica
    * substitution will occur.
    * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ @java.lang.Override public int getSubstitutionRulesCount() { return substitutionRules_.size(); } /** - * - * *
    * A list of transformation rules to be applied against Kubernetes resources
    * as they are selected for restoration from a Backup. Rules are executed in
@@ -5639,18 +4974,13 @@ public int getSubstitutionRulesCount() {
    * substitution will occur.
    * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getSubstitutionRules( - int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getSubstitutionRules(int index) { return substitutionRules_.get(index); } /** - * - * *
    * A list of transformation rules to be applied against Kubernetes resources
    * as they are selected for restoration from a Backup. Rules are executed in
@@ -5659,18 +4989,15 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getSubstitut
    * substitution will occur.
    * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder - getSubstitutionRulesOrBuilder(int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder getSubstitutionRulesOrBuilder( + int index) { return substitutionRules_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5682,38 +5009,29 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (volumeDataRestorePolicy_ - != com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy - .VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (volumeDataRestorePolicy_ != com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED.getNumber()) { output.writeEnum(1, volumeDataRestorePolicy_); } - if (clusterResourceConflictPolicy_ - != com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy - .CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED - .getNumber()) { + if (clusterResourceConflictPolicy_ != com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED.getNumber()) { output.writeEnum(2, clusterResourceConflictPolicy_); } - if (namespacedResourceRestoreMode_ - != com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode - .NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED - .getNumber()) { + if (namespacedResourceRestoreMode_ != com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(3, namespacedResourceRestoreMode_); } if (clusterResourceRestoreScope_ != null) { output.writeMessage(4, getClusterResourceRestoreScope()); } if (namespacedResourceRestoreScopeCase_ == 5) { - output.writeBool(5, (boolean) ((java.lang.Boolean) namespacedResourceRestoreScope_)); + output.writeBool( + 5, (boolean)((java.lang.Boolean) namespacedResourceRestoreScope_)); } if (namespacedResourceRestoreScopeCase_ == 6) { - output.writeMessage( - 6, (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_); + output.writeMessage(6, (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_); } if (namespacedResourceRestoreScopeCase_ == 7) { - output.writeMessage( - 7, (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_); + output.writeMessage(7, (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_); } for (int i = 0; i < substitutionRules_.size(); i++) { output.writeMessage(8, substitutionRules_.get(i)); @@ -5727,49 +5045,38 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (volumeDataRestorePolicy_ - != com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy - .VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, volumeDataRestorePolicy_); - } - if (clusterResourceConflictPolicy_ - != com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy - .CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED - .getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(2, clusterResourceConflictPolicy_); - } - if (namespacedResourceRestoreMode_ - != com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode - .NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED - .getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(3, namespacedResourceRestoreMode_); + if (volumeDataRestorePolicy_ != com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, volumeDataRestorePolicy_); + } + if (clusterResourceConflictPolicy_ != com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, clusterResourceConflictPolicy_); + } + if (namespacedResourceRestoreMode_ != com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, namespacedResourceRestoreMode_); } if (clusterResourceRestoreScope_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, getClusterResourceRestoreScope()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getClusterResourceRestoreScope()); } if (namespacedResourceRestoreScopeCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 5, (boolean) ((java.lang.Boolean) namespacedResourceRestoreScope_)); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 5, (boolean)((java.lang.Boolean) namespacedResourceRestoreScope_)); } if (namespacedResourceRestoreScopeCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_); } if (namespacedResourceRestoreScopeCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_); } for (int i = 0; i < substitutionRules_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(8, substitutionRules_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, substitutionRules_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5779,34 +5086,36 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.RestoreConfig)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.RestoreConfig other = - (com.google.cloud.gkebackup.v1.RestoreConfig) obj; + com.google.cloud.gkebackup.v1.RestoreConfig other = (com.google.cloud.gkebackup.v1.RestoreConfig) obj; if (volumeDataRestorePolicy_ != other.volumeDataRestorePolicy_) return false; if (clusterResourceConflictPolicy_ != other.clusterResourceConflictPolicy_) return false; if (namespacedResourceRestoreMode_ != other.namespacedResourceRestoreMode_) return false; if (hasClusterResourceRestoreScope() != other.hasClusterResourceRestoreScope()) return false; if (hasClusterResourceRestoreScope()) { - if (!getClusterResourceRestoreScope().equals(other.getClusterResourceRestoreScope())) - return false; + if (!getClusterResourceRestoreScope() + .equals(other.getClusterResourceRestoreScope())) return false; } - if (!getSubstitutionRulesList().equals(other.getSubstitutionRulesList())) return false; - if (!getNamespacedResourceRestoreScopeCase() - .equals(other.getNamespacedResourceRestoreScopeCase())) return false; + if (!getSubstitutionRulesList() + .equals(other.getSubstitutionRulesList())) return false; + if (!getNamespacedResourceRestoreScopeCase().equals(other.getNamespacedResourceRestoreScopeCase())) return false; switch (namespacedResourceRestoreScopeCase_) { case 5: - if (getAllNamespaces() != other.getAllNamespaces()) return false; + if (getAllNamespaces() + != other.getAllNamespaces()) return false; break; case 6: - if (!getSelectedNamespaces().equals(other.getSelectedNamespaces())) return false; + if (!getSelectedNamespaces() + .equals(other.getSelectedNamespaces())) return false; break; case 7: - if (!getSelectedApplications().equals(other.getSelectedApplications())) return false; + if (!getSelectedApplications() + .equals(other.getSelectedApplications())) return false; break; case 0: default: @@ -5839,7 +5148,8 @@ public int hashCode() { switch (namespacedResourceRestoreScopeCase_) { case 5: hash = (37 * hash) + ALL_NAMESPACES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllNamespaces()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllNamespaces()); break; case 6: hash = (37 * hash) + SELECTED_NAMESPACES_FIELD_NUMBER; @@ -5857,104 +5167,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.RestoreConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.RestoreConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.RestoreConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.RestoreConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configuration of a restore.
    * Next id: 9
@@ -5962,23 +5265,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.RestoreConfig)
       com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkebackup.v1.RestoreProto
-          .internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkebackup.v1.RestoreProto
-          .internal_static_google_cloud_gkebackup_v1_RestoreConfig_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.RestoreConfig.class,
-              com.google.cloud.gkebackup.v1.RestoreConfig.Builder.class);
+              com.google.cloud.gkebackup.v1.RestoreConfig.class, com.google.cloud.gkebackup.v1.RestoreConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.gkebackup.v1.RestoreConfig.newBuilder()
@@ -5986,17 +5287,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) {
         getSubstitutionRulesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -6024,9 +5325,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkebackup.v1.RestoreProto
-          .internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor;
     }
 
     @java.lang.Override
@@ -6045,8 +5346,7 @@ public com.google.cloud.gkebackup.v1.RestoreConfig build() {
 
     @java.lang.Override
     public com.google.cloud.gkebackup.v1.RestoreConfig buildPartial() {
-      com.google.cloud.gkebackup.v1.RestoreConfig result =
-          new com.google.cloud.gkebackup.v1.RestoreConfig(this);
+      com.google.cloud.gkebackup.v1.RestoreConfig result = new com.google.cloud.gkebackup.v1.RestoreConfig(this);
       int from_bitField0_ = bitField0_;
       result.volumeDataRestorePolicy_ = volumeDataRestorePolicy_;
       result.clusterResourceConflictPolicy_ = clusterResourceConflictPolicy_;
@@ -6091,39 +5391,38 @@ public com.google.cloud.gkebackup.v1.RestoreConfig 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.cloud.gkebackup.v1.RestoreConfig) {
-        return mergeFrom((com.google.cloud.gkebackup.v1.RestoreConfig) other);
+        return mergeFrom((com.google.cloud.gkebackup.v1.RestoreConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -6162,35 +5461,30 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.RestoreConfig other) {
             substitutionRulesBuilder_ = null;
             substitutionRules_ = other.substitutionRules_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            substitutionRulesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSubstitutionRulesFieldBuilder()
-                    : null;
+            substitutionRulesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSubstitutionRulesFieldBuilder() : null;
           } else {
             substitutionRulesBuilder_.addAllMessages(other.substitutionRules_);
           }
         }
       }
       switch (other.getNamespacedResourceRestoreScopeCase()) {
-        case ALL_NAMESPACES:
-          {
-            setAllNamespaces(other.getAllNamespaces());
-            break;
-          }
-        case SELECTED_NAMESPACES:
-          {
-            mergeSelectedNamespaces(other.getSelectedNamespaces());
-            break;
-          }
-        case SELECTED_APPLICATIONS:
-          {
-            mergeSelectedApplications(other.getSelectedApplications());
-            break;
-          }
-        case NAMESPACEDRESOURCERESTORESCOPE_NOT_SET:
-          {
-            break;
-          }
+        case ALL_NAMESPACES: {
+          setAllNamespaces(other.getAllNamespaces());
+          break;
+        }
+        case SELECTED_NAMESPACES: {
+          mergeSelectedNamespaces(other.getSelectedNamespaces());
+          break;
+        }
+        case SELECTED_APPLICATIONS: {
+          mergeSelectedApplications(other.getSelectedApplications());
+          break;
+        }
+        case NAMESPACEDRESOURCERESTORESCOPE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -6220,12 +5514,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int namespacedResourceRestoreScopeCase_ = 0;
     private java.lang.Object namespacedResourceRestoreScope_;
-
-    public NamespacedResourceRestoreScopeCase getNamespacedResourceRestoreScopeCase() {
-      return NamespacedResourceRestoreScopeCase.forNumber(namespacedResourceRestoreScopeCase_);
+    public NamespacedResourceRestoreScopeCase
+        getNamespacedResourceRestoreScopeCase() {
+      return NamespacedResourceRestoreScopeCase.forNumber(
+          namespacedResourceRestoreScopeCase_);
     }
 
     public Builder clearNamespacedResourceRestoreScope() {
@@ -6239,115 +5533,83 @@ public Builder clearNamespacedResourceRestoreScope() {
 
     private int volumeDataRestorePolicy_ = 0;
     /**
-     *
-     *
      * 
      * Specifies the mechanism to be used to restore volume data.
      * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
      * NO_VOLUME_DATA_RESTORATION).
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; * @return The enum numeric value on the wire for volumeDataRestorePolicy. */ - @java.lang.Override - public int getVolumeDataRestorePolicyValue() { + @java.lang.Override public int getVolumeDataRestorePolicyValue() { return volumeDataRestorePolicy_; } /** - * - * *
      * Specifies the mechanism to be used to restore volume data.
      * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
      * NO_VOLUME_DATA_RESTORATION).
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; * @param value The enum numeric value on the wire for volumeDataRestorePolicy to set. * @return This builder for chaining. */ public Builder setVolumeDataRestorePolicyValue(int value) { - + volumeDataRestorePolicy_ = value; onChanged(); return this; } /** - * - * *
      * Specifies the mechanism to be used to restore volume data.
      * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
      * NO_VOLUME_DATA_RESTORATION).
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; * @return The volumeDataRestorePolicy. */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy - getVolumeDataRestorePolicy() { + public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy getVolumeDataRestorePolicy() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy result = - com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.valueOf( - volumeDataRestorePolicy_); - return result == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.UNRECOGNIZED - : result; + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy result = com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.valueOf(volumeDataRestorePolicy_); + return result == null ? com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.UNRECOGNIZED : result; } /** - * - * *
      * Specifies the mechanism to be used to restore volume data.
      * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
      * NO_VOLUME_DATA_RESTORATION).
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; * @param value The volumeDataRestorePolicy to set. * @return This builder for chaining. */ - public Builder setVolumeDataRestorePolicy( - com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy value) { + public Builder setVolumeDataRestorePolicy(com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy value) { if (value == null) { throw new NullPointerException(); } - + volumeDataRestorePolicy_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Specifies the mechanism to be used to restore volume data.
      * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
      * NO_VOLUME_DATA_RESTORATION).
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; * @return This builder for chaining. */ public Builder clearVolumeDataRestorePolicy() { - + volumeDataRestorePolicy_ = 0; onChanged(); return this; @@ -6355,8 +5617,6 @@ public Builder clearVolumeDataRestorePolicy() { private int clusterResourceConflictPolicy_ = 0; /** - * - * *
      * Defines the behavior for handling the situation where cluster-scoped
      * resources being restored already exist in the target cluster. This MUST be
@@ -6364,19 +5624,13 @@ public Builder clearVolumeDataRestorePolicy() {
      * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope] is not empty.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; * @return The enum numeric value on the wire for clusterResourceConflictPolicy. */ - @java.lang.Override - public int getClusterResourceConflictPolicyValue() { + @java.lang.Override public int getClusterResourceConflictPolicyValue() { return clusterResourceConflictPolicy_; } /** - * - * *
      * Defines the behavior for handling the situation where cluster-scoped
      * resources being restored already exist in the target cluster. This MUST be
@@ -6384,22 +5638,17 @@ public int getClusterResourceConflictPolicyValue() {
      * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope] is not empty.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; * @param value The enum numeric value on the wire for clusterResourceConflictPolicy to set. * @return This builder for chaining. */ public Builder setClusterResourceConflictPolicyValue(int value) { - + clusterResourceConflictPolicy_ = value; onChanged(); return this; } /** - * - * *
      * Defines the behavior for handling the situation where cluster-scoped
      * resources being restored already exist in the target cluster. This MUST be
@@ -6407,26 +5656,16 @@ public Builder setClusterResourceConflictPolicyValue(int value) {
      * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope] is not empty.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; * @return The clusterResourceConflictPolicy. */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy - getClusterResourceConflictPolicy() { + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy getClusterResourceConflictPolicy() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy result = - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.valueOf( - clusterResourceConflictPolicy_); - return result == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.UNRECOGNIZED - : result; + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy result = com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.valueOf(clusterResourceConflictPolicy_); + return result == null ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.UNRECOGNIZED : result; } /** - * - * *
      * Defines the behavior for handling the situation where cluster-scoped
      * resources being restored already exist in the target cluster. This MUST be
@@ -6434,26 +5673,20 @@ public Builder setClusterResourceConflictPolicyValue(int value) {
      * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope] is not empty.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; * @param value The clusterResourceConflictPolicy to set. * @return This builder for chaining. */ - public Builder setClusterResourceConflictPolicy( - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy value) { + public Builder setClusterResourceConflictPolicy(com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy value) { if (value == null) { throw new NullPointerException(); } - + clusterResourceConflictPolicy_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Defines the behavior for handling the situation where cluster-scoped
      * resources being restored already exist in the target cluster. This MUST be
@@ -6461,14 +5694,11 @@ public Builder setClusterResourceConflictPolicy(
      * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope] is not empty.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; * @return This builder for chaining. */ public Builder clearClusterResourceConflictPolicy() { - + clusterResourceConflictPolicy_ = 0; onChanged(); return this; @@ -6476,183 +5706,128 @@ public Builder clearClusterResourceConflictPolicy() { private int namespacedResourceRestoreMode_ = 0; /** - * - * *
      * Defines the behavior for handling the situation where sets of namespaced
      * resources being restored already exist in the target cluster. This MUST be
      * set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; * @return The enum numeric value on the wire for namespacedResourceRestoreMode. */ - @java.lang.Override - public int getNamespacedResourceRestoreModeValue() { + @java.lang.Override public int getNamespacedResourceRestoreModeValue() { return namespacedResourceRestoreMode_; } /** - * - * *
      * Defines the behavior for handling the situation where sets of namespaced
      * resources being restored already exist in the target cluster. This MUST be
      * set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; * @param value The enum numeric value on the wire for namespacedResourceRestoreMode to set. * @return This builder for chaining. */ public Builder setNamespacedResourceRestoreModeValue(int value) { - + namespacedResourceRestoreMode_ = value; onChanged(); return this; } /** - * - * *
      * Defines the behavior for handling the situation where sets of namespaced
      * resources being restored already exist in the target cluster. This MUST be
      * set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; * @return The namespacedResourceRestoreMode. */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode - getNamespacedResourceRestoreMode() { + public com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode getNamespacedResourceRestoreMode() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode result = - com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.valueOf( - namespacedResourceRestoreMode_); - return result == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.UNRECOGNIZED - : result; + com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode result = com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.valueOf(namespacedResourceRestoreMode_); + return result == null ? com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.UNRECOGNIZED : result; } /** - * - * *
      * Defines the behavior for handling the situation where sets of namespaced
      * resources being restored already exist in the target cluster. This MUST be
      * set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; * @param value The namespacedResourceRestoreMode to set. * @return This builder for chaining. */ - public Builder setNamespacedResourceRestoreMode( - com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode value) { + public Builder setNamespacedResourceRestoreMode(com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode value) { if (value == null) { throw new NullPointerException(); } - + namespacedResourceRestoreMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Defines the behavior for handling the situation where sets of namespaced
      * resources being restored already exist in the target cluster. This MUST be
      * set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; * @return This builder for chaining. */ public Builder clearNamespacedResourceRestoreMode() { - + namespacedResourceRestoreMode_ = 0; onChanged(); return this; } - private com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - clusterResourceRestoreScope_; + private com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope clusterResourceRestoreScope_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope, - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder, - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder> - clusterResourceRestoreScopeBuilder_; + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope, com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder> clusterResourceRestoreScopeBuilder_; /** - * - * *
      * Identifies the cluster-scoped resources to restore from the Backup.
      * Not specifying it means NO cluster resource will be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; * @return Whether the clusterResourceRestoreScope field is set. */ public boolean hasClusterResourceRestoreScope() { return clusterResourceRestoreScopeBuilder_ != null || clusterResourceRestoreScope_ != null; } /** - * - * *
      * Identifies the cluster-scoped resources to restore from the Backup.
      * Not specifying it means NO cluster resource will be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; * @return The clusterResourceRestoreScope. */ - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - getClusterResourceRestoreScope() { + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope getClusterResourceRestoreScope() { if (clusterResourceRestoreScopeBuilder_ == null) { - return clusterResourceRestoreScope_ == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - .getDefaultInstance() - : clusterResourceRestoreScope_; + return clusterResourceRestoreScope_ == null ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.getDefaultInstance() : clusterResourceRestoreScope_; } else { return clusterResourceRestoreScopeBuilder_.getMessage(); } } /** - * - * *
      * Identifies the cluster-scoped resources to restore from the Backup.
      * Not specifying it means NO cluster resource will be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; */ - public Builder setClusterResourceRestoreScope( - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope value) { + public Builder setClusterResourceRestoreScope(com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope value) { if (clusterResourceRestoreScopeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6666,20 +5841,15 @@ public Builder setClusterResourceRestoreScope( return this; } /** - * - * *
      * Identifies the cluster-scoped resources to restore from the Backup.
      * Not specifying it means NO cluster resource will be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; */ public Builder setClusterResourceRestoreScope( - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder - builderForValue) { + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder builderForValue) { if (clusterResourceRestoreScopeBuilder_ == null) { clusterResourceRestoreScope_ = builderForValue.build(); onChanged(); @@ -6690,26 +5860,18 @@ public Builder setClusterResourceRestoreScope( return this; } /** - * - * *
      * Identifies the cluster-scoped resources to restore from the Backup.
      * Not specifying it means NO cluster resource will be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; */ - public Builder mergeClusterResourceRestoreScope( - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope value) { + public Builder mergeClusterResourceRestoreScope(com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope value) { if (clusterResourceRestoreScopeBuilder_ == null) { if (clusterResourceRestoreScope_ != null) { clusterResourceRestoreScope_ = - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.newBuilder( - clusterResourceRestoreScope_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.newBuilder(clusterResourceRestoreScope_).mergeFrom(value).buildPartial(); } else { clusterResourceRestoreScope_ = value; } @@ -6721,16 +5883,12 @@ public Builder mergeClusterResourceRestoreScope( return this; } /** - * - * *
      * Identifies the cluster-scoped resources to restore from the Backup.
      * Not specifying it means NO cluster resource will be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; */ public Builder clearClusterResourceRestoreScope() { if (clusterResourceRestoreScopeBuilder_ == null) { @@ -6744,100 +5902,75 @@ public Builder clearClusterResourceRestoreScope() { return this; } /** - * - * *
      * Identifies the cluster-scoped resources to restore from the Backup.
      * Not specifying it means NO cluster resource will be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; */ - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder - getClusterResourceRestoreScopeBuilder() { - + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder getClusterResourceRestoreScopeBuilder() { + onChanged(); return getClusterResourceRestoreScopeFieldBuilder().getBuilder(); } /** - * - * *
      * Identifies the cluster-scoped resources to restore from the Backup.
      * Not specifying it means NO cluster resource will be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; */ - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder - getClusterResourceRestoreScopeOrBuilder() { + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder getClusterResourceRestoreScopeOrBuilder() { if (clusterResourceRestoreScopeBuilder_ != null) { return clusterResourceRestoreScopeBuilder_.getMessageOrBuilder(); } else { - return clusterResourceRestoreScope_ == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - .getDefaultInstance() - : clusterResourceRestoreScope_; + return clusterResourceRestoreScope_ == null ? + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.getDefaultInstance() : clusterResourceRestoreScope_; } } /** - * - * *
      * Identifies the cluster-scoped resources to restore from the Backup.
      * Not specifying it means NO cluster resource will be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope, - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder, - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder> + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope, com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder> getClusterResourceRestoreScopeFieldBuilder() { if (clusterResourceRestoreScopeBuilder_ == null) { - clusterResourceRestoreScopeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope, - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder, - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder>( - getClusterResourceRestoreScope(), getParentForChildren(), isClean()); + clusterResourceRestoreScopeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope, com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder>( + getClusterResourceRestoreScope(), + getParentForChildren(), + isClean()); clusterResourceRestoreScope_ = null; } return clusterResourceRestoreScopeBuilder_; } /** - * - * *
      * Restore all namespaced resources in the Backup if set to "True".
      * Specifying this field to "False" is an error.
      * 
* * bool all_namespaces = 5; - * * @return Whether the allNamespaces field is set. */ public boolean hasAllNamespaces() { return namespacedResourceRestoreScopeCase_ == 5; } /** - * - * *
      * Restore all namespaced resources in the Backup if set to "True".
      * Specifying this field to "False" is an error.
      * 
* * bool all_namespaces = 5; - * * @return The allNamespaces. */ public boolean getAllNamespaces() { @@ -6847,15 +5980,12 @@ public boolean getAllNamespaces() { return false; } /** - * - * *
      * Restore all namespaced resources in the Backup if set to "True".
      * Specifying this field to "False" is an error.
      * 
* * bool all_namespaces = 5; - * * @param value The allNamespaces to set. * @return This builder for chaining. */ @@ -6866,15 +5996,12 @@ public Builder setAllNamespaces(boolean value) { return this; } /** - * - * *
      * Restore all namespaced resources in the Backup if set to "True".
      * Specifying this field to "False" is an error.
      * 
* * bool all_namespaces = 5; - * * @return This builder for chaining. */ public Builder clearAllNamespaces() { @@ -6887,20 +6014,14 @@ public Builder clearAllNamespaces() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Namespaces, - com.google.cloud.gkebackup.v1.Namespaces.Builder, - com.google.cloud.gkebackup.v1.NamespacesOrBuilder> - selectedNamespacesBuilder_; + com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, com.google.cloud.gkebackup.v1.NamespacesOrBuilder> selectedNamespacesBuilder_; /** - * - * *
      * A list of selected Namespaces to restore from the Backup. The listed
      * Namespaces and all resources contained in them will be restored.
      * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; - * * @return Whether the selectedNamespaces field is set. */ @java.lang.Override @@ -6908,15 +6029,12 @@ public boolean hasSelectedNamespaces() { return namespacedResourceRestoreScopeCase_ == 6; } /** - * - * *
      * A list of selected Namespaces to restore from the Backup. The listed
      * Namespaces and all resources contained in them will be restored.
      * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; - * * @return The selectedNamespaces. */ @java.lang.Override @@ -6934,8 +6052,6 @@ public com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces() { } } /** - * - * *
      * A list of selected Namespaces to restore from the Backup. The listed
      * Namespaces and all resources contained in them will be restored.
@@ -6957,8 +6073,6 @@ public Builder setSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces va
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of selected Namespaces to restore from the Backup. The listed
      * Namespaces and all resources contained in them will be restored.
@@ -6978,8 +6092,6 @@ public Builder setSelectedNamespaces(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of selected Namespaces to restore from the Backup. The listed
      * Namespaces and all resources contained in them will be restored.
@@ -6989,14 +6101,10 @@ public Builder setSelectedNamespaces(
      */
     public Builder mergeSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces value) {
       if (selectedNamespacesBuilder_ == null) {
-        if (namespacedResourceRestoreScopeCase_ == 6
-            && namespacedResourceRestoreScope_
-                != com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance()) {
-          namespacedResourceRestoreScope_ =
-              com.google.cloud.gkebackup.v1.Namespaces.newBuilder(
-                      (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (namespacedResourceRestoreScopeCase_ == 6 &&
+            namespacedResourceRestoreScope_ != com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance()) {
+          namespacedResourceRestoreScope_ = com.google.cloud.gkebackup.v1.Namespaces.newBuilder((com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_)
+              .mergeFrom(value).buildPartial();
         } else {
           namespacedResourceRestoreScope_ = value;
         }
@@ -7012,8 +6120,6 @@ public Builder mergeSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of selected Namespaces to restore from the Backup. The listed
      * Namespaces and all resources contained in them will be restored.
@@ -7038,8 +6144,6 @@ public Builder clearSelectedNamespaces() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of selected Namespaces to restore from the Backup. The listed
      * Namespaces and all resources contained in them will be restored.
@@ -7051,8 +6155,6 @@ public com.google.cloud.gkebackup.v1.Namespaces.Builder getSelectedNamespacesBui
       return getSelectedNamespacesFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A list of selected Namespaces to restore from the Backup. The listed
      * Namespaces and all resources contained in them will be restored.
@@ -7072,8 +6174,6 @@ public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOr
       }
     }
     /**
-     *
-     *
      * 
      * A list of selected Namespaces to restore from the Backup. The listed
      * Namespaces and all resources contained in them will be restored.
@@ -7082,39 +6182,27 @@ public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOr
      * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkebackup.v1.Namespaces,
-            com.google.cloud.gkebackup.v1.Namespaces.Builder,
-            com.google.cloud.gkebackup.v1.NamespacesOrBuilder>
+        com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, com.google.cloud.gkebackup.v1.NamespacesOrBuilder> 
         getSelectedNamespacesFieldBuilder() {
       if (selectedNamespacesBuilder_ == null) {
         if (!(namespacedResourceRestoreScopeCase_ == 6)) {
-          namespacedResourceRestoreScope_ =
-              com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance();
+          namespacedResourceRestoreScope_ = com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance();
         }
-        selectedNamespacesBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.gkebackup.v1.Namespaces,
-                com.google.cloud.gkebackup.v1.Namespaces.Builder,
-                com.google.cloud.gkebackup.v1.NamespacesOrBuilder>(
+        selectedNamespacesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, com.google.cloud.gkebackup.v1.NamespacesOrBuilder>(
                 (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_,
                 getParentForChildren(),
                 isClean());
         namespacedResourceRestoreScope_ = null;
       }
       namespacedResourceRestoreScopeCase_ = 6;
-      onChanged();
-      ;
+      onChanged();;
       return selectedNamespacesBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkebackup.v1.NamespacedNames,
-            com.google.cloud.gkebackup.v1.NamespacedNames.Builder,
-            com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>
-        selectedApplicationsBuilder_;
+        com.google.cloud.gkebackup.v1.NamespacedNames, com.google.cloud.gkebackup.v1.NamespacedNames.Builder, com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> selectedApplicationsBuilder_;
     /**
-     *
-     *
      * 
      * A list of selected ProtectedApplications to restore. The listed
      * ProtectedApplications and all the resources to which they refer will be
@@ -7122,7 +6210,6 @@ public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOr
      * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; - * * @return Whether the selectedApplications field is set. */ @java.lang.Override @@ -7130,8 +6217,6 @@ public boolean hasSelectedApplications() { return namespacedResourceRestoreScopeCase_ == 7; } /** - * - * *
      * A list of selected ProtectedApplications to restore. The listed
      * ProtectedApplications and all the resources to which they refer will be
@@ -7139,7 +6224,6 @@ public boolean hasSelectedApplications() {
      * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; - * * @return The selectedApplications. */ @java.lang.Override @@ -7157,8 +6241,6 @@ public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications() { } } /** - * - * *
      * A list of selected ProtectedApplications to restore. The listed
      * ProtectedApplications and all the resources to which they refer will be
@@ -7181,8 +6263,6 @@ public Builder setSelectedApplications(com.google.cloud.gkebackup.v1.NamespacedN
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of selected ProtectedApplications to restore. The listed
      * ProtectedApplications and all the resources to which they refer will be
@@ -7203,8 +6283,6 @@ public Builder setSelectedApplications(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of selected ProtectedApplications to restore. The listed
      * ProtectedApplications and all the resources to which they refer will be
@@ -7215,15 +6293,10 @@ public Builder setSelectedApplications(
      */
     public Builder mergeSelectedApplications(com.google.cloud.gkebackup.v1.NamespacedNames value) {
       if (selectedApplicationsBuilder_ == null) {
-        if (namespacedResourceRestoreScopeCase_ == 7
-            && namespacedResourceRestoreScope_
-                != com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance()) {
-          namespacedResourceRestoreScope_ =
-              com.google.cloud.gkebackup.v1.NamespacedNames.newBuilder(
-                      (com.google.cloud.gkebackup.v1.NamespacedNames)
-                          namespacedResourceRestoreScope_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (namespacedResourceRestoreScopeCase_ == 7 &&
+            namespacedResourceRestoreScope_ != com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance()) {
+          namespacedResourceRestoreScope_ = com.google.cloud.gkebackup.v1.NamespacedNames.newBuilder((com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_)
+              .mergeFrom(value).buildPartial();
         } else {
           namespacedResourceRestoreScope_ = value;
         }
@@ -7239,8 +6312,6 @@ public Builder mergeSelectedApplications(com.google.cloud.gkebackup.v1.Namespace
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of selected ProtectedApplications to restore. The listed
      * ProtectedApplications and all the resources to which they refer will be
@@ -7266,8 +6337,6 @@ public Builder clearSelectedApplications() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of selected ProtectedApplications to restore. The listed
      * ProtectedApplications and all the resources to which they refer will be
@@ -7280,8 +6349,6 @@ public com.google.cloud.gkebackup.v1.NamespacedNames.Builder getSelectedApplicat
       return getSelectedApplicationsFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A list of selected ProtectedApplications to restore. The listed
      * ProtectedApplications and all the resources to which they refer will be
@@ -7291,8 +6358,7 @@ public com.google.cloud.gkebackup.v1.NamespacedNames.Builder getSelectedApplicat
      * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7;
      */
     @java.lang.Override
-    public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder
-        getSelectedApplicationsOrBuilder() {
+    public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder() {
       if ((namespacedResourceRestoreScopeCase_ == 7) && (selectedApplicationsBuilder_ != null)) {
         return selectedApplicationsBuilder_.getMessageOrBuilder();
       } else {
@@ -7303,8 +6369,6 @@ public com.google.cloud.gkebackup.v1.NamespacedNames.Builder getSelectedApplicat
       }
     }
     /**
-     *
-     *
      * 
      * A list of selected ProtectedApplications to restore. The listed
      * ProtectedApplications and all the resources to which they refer will be
@@ -7314,52 +6378,37 @@ public com.google.cloud.gkebackup.v1.NamespacedNames.Builder getSelectedApplicat
      * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkebackup.v1.NamespacedNames,
-            com.google.cloud.gkebackup.v1.NamespacedNames.Builder,
-            com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>
+        com.google.cloud.gkebackup.v1.NamespacedNames, com.google.cloud.gkebackup.v1.NamespacedNames.Builder, com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> 
         getSelectedApplicationsFieldBuilder() {
       if (selectedApplicationsBuilder_ == null) {
         if (!(namespacedResourceRestoreScopeCase_ == 7)) {
-          namespacedResourceRestoreScope_ =
-              com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance();
+          namespacedResourceRestoreScope_ = com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance();
         }
-        selectedApplicationsBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.gkebackup.v1.NamespacedNames,
-                com.google.cloud.gkebackup.v1.NamespacedNames.Builder,
-                com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>(
+        selectedApplicationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.gkebackup.v1.NamespacedNames, com.google.cloud.gkebackup.v1.NamespacedNames.Builder, com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>(
                 (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_,
                 getParentForChildren(),
                 isClean());
         namespacedResourceRestoreScope_ = null;
       }
       namespacedResourceRestoreScopeCase_ = 7;
-      onChanged();
-      ;
+      onChanged();;
       return selectedApplicationsBuilder_;
     }
 
-    private java.util.List
-        substitutionRules_ = java.util.Collections.emptyList();
-
+    private java.util.List substitutionRules_ =
+      java.util.Collections.emptyList();
     private void ensureSubstitutionRulesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        substitutionRules_ =
-            new java.util.ArrayList(
-                substitutionRules_);
+        substitutionRules_ = new java.util.ArrayList(substitutionRules_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule,
-            com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder,
-            com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder>
-        substitutionRulesBuilder_;
+        com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder> substitutionRulesBuilder_;
 
     /**
-     *
-     *
      * 
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -7368,12 +6417,9 @@ private void ensureSubstitutionRulesIsMutable() {
      * substitution will occur.
      * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ - public java.util.List - getSubstitutionRulesList() { + public java.util.List getSubstitutionRulesList() { if (substitutionRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(substitutionRules_); } else { @@ -7381,8 +6427,6 @@ private void ensureSubstitutionRulesIsMutable() { } } /** - * - * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -7391,9 +6435,7 @@ private void ensureSubstitutionRulesIsMutable() {
      * substitution will occur.
      * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ public int getSubstitutionRulesCount() { if (substitutionRulesBuilder_ == null) { @@ -7403,8 +6445,6 @@ public int getSubstitutionRulesCount() { } } /** - * - * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -7413,12 +6453,9 @@ public int getSubstitutionRulesCount() {
      * substitution will occur.
      * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getSubstitutionRules( - int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getSubstitutionRules(int index) { if (substitutionRulesBuilder_ == null) { return substitutionRules_.get(index); } else { @@ -7426,8 +6463,6 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getSubstitut } } /** - * - * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -7436,9 +6471,7 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getSubstitut
      * substitution will occur.
      * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ public Builder setSubstitutionRules( int index, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule value) { @@ -7455,8 +6488,6 @@ public Builder setSubstitutionRules( return this; } /** - * - * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -7465,13 +6496,10 @@ public Builder setSubstitutionRules(
      * substitution will occur.
      * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ public Builder setSubstitutionRules( - int index, - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder builderForValue) { + int index, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder builderForValue) { if (substitutionRulesBuilder_ == null) { ensureSubstitutionRulesIsMutable(); substitutionRules_.set(index, builderForValue.build()); @@ -7482,8 +6510,6 @@ public Builder setSubstitutionRules( return this; } /** - * - * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -7492,12 +6518,9 @@ public Builder setSubstitutionRules(
      * substitution will occur.
      * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ - public Builder addSubstitutionRules( - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule value) { + public Builder addSubstitutionRules(com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule value) { if (substitutionRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7511,8 +6534,6 @@ public Builder addSubstitutionRules( return this; } /** - * - * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -7521,9 +6542,7 @@ public Builder addSubstitutionRules(
      * substitution will occur.
      * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ public Builder addSubstitutionRules( int index, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule value) { @@ -7540,8 +6559,6 @@ public Builder addSubstitutionRules( return this; } /** - * - * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -7550,9 +6567,7 @@ public Builder addSubstitutionRules(
      * substitution will occur.
      * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ public Builder addSubstitutionRules( com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder builderForValue) { @@ -7566,8 +6581,6 @@ public Builder addSubstitutionRules( return this; } /** - * - * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -7576,13 +6589,10 @@ public Builder addSubstitutionRules(
      * substitution will occur.
      * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ public Builder addSubstitutionRules( - int index, - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder builderForValue) { + int index, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder builderForValue) { if (substitutionRulesBuilder_ == null) { ensureSubstitutionRulesIsMutable(); substitutionRules_.add(index, builderForValue.build()); @@ -7593,8 +6603,6 @@ public Builder addSubstitutionRules( return this; } /** - * - * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -7603,16 +6611,14 @@ public Builder addSubstitutionRules(
      * substitution will occur.
      * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ public Builder addAllSubstitutionRules( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (substitutionRulesBuilder_ == null) { ensureSubstitutionRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, substitutionRules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, substitutionRules_); onChanged(); } else { substitutionRulesBuilder_.addAllMessages(values); @@ -7620,8 +6626,6 @@ public Builder addAllSubstitutionRules( return this; } /** - * - * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -7630,9 +6634,7 @@ public Builder addAllSubstitutionRules(
      * substitution will occur.
      * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ public Builder clearSubstitutionRules() { if (substitutionRulesBuilder_ == null) { @@ -7645,8 +6647,6 @@ public Builder clearSubstitutionRules() { return this; } /** - * - * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -7655,9 +6655,7 @@ public Builder clearSubstitutionRules() {
      * substitution will occur.
      * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ public Builder removeSubstitutionRules(int index) { if (substitutionRulesBuilder_ == null) { @@ -7670,8 +6668,6 @@ public Builder removeSubstitutionRules(int index) { return this; } /** - * - * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -7680,17 +6676,13 @@ public Builder removeSubstitutionRules(int index) {
      * substitution will occur.
      * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder - getSubstitutionRulesBuilder(int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder getSubstitutionRulesBuilder( + int index) { return getSubstitutionRulesFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -7699,21 +6691,16 @@ public Builder removeSubstitutionRules(int index) {
      * substitution will occur.
      * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder - getSubstitutionRulesOrBuilder(int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder getSubstitutionRulesOrBuilder( + int index) { if (substitutionRulesBuilder_ == null) { - return substitutionRules_.get(index); - } else { + return substitutionRules_.get(index); } else { return substitutionRulesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -7722,13 +6709,10 @@ public Builder removeSubstitutionRules(int index) {
      * substitution will occur.
      * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ - public java.util.List< - ? extends com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder> - getSubstitutionRulesOrBuilderList() { + public java.util.List + getSubstitutionRulesOrBuilderList() { if (substitutionRulesBuilder_ != null) { return substitutionRulesBuilder_.getMessageOrBuilderList(); } else { @@ -7736,8 +6720,6 @@ public Builder removeSubstitutionRules(int index) { } } /** - * - * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -7746,19 +6728,13 @@ public Builder removeSubstitutionRules(int index) {
      * substitution will occur.
      * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder - addSubstitutionRulesBuilder() { - return getSubstitutionRulesFieldBuilder() - .addBuilder( - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder addSubstitutionRulesBuilder() { + return getSubstitutionRulesFieldBuilder().addBuilder( + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.getDefaultInstance()); } /** - * - * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -7767,20 +6743,14 @@ public Builder removeSubstitutionRules(int index) {
      * substitution will occur.
      * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder - addSubstitutionRulesBuilder(int index) { - return getSubstitutionRulesFieldBuilder() - .addBuilder( - index, - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder addSubstitutionRulesBuilder( + int index) { + return getSubstitutionRulesFieldBuilder().addBuilder( + index, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.getDefaultInstance()); } /** - * - * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -7789,26 +6759,18 @@ public Builder removeSubstitutionRules(int index) {
      * substitution will occur.
      * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ - public java.util.List - getSubstitutionRulesBuilderList() { + public java.util.List + getSubstitutionRulesBuilderList() { return getSubstitutionRulesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule, - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder, - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder> + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder> getSubstitutionRulesFieldBuilder() { if (substitutionRulesBuilder_ == null) { - substitutionRulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule, - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder, - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder>( + substitutionRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder>( substitutionRules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -7817,9 +6779,9 @@ public Builder removeSubstitutionRules(int index) { } return substitutionRulesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -7829,12 +6791,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.RestoreConfig) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.RestoreConfig) private static final com.google.cloud.gkebackup.v1.RestoreConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.RestoreConfig(); } @@ -7843,16 +6805,16 @@ public static com.google.cloud.gkebackup.v1.RestoreConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestoreConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RestoreConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RestoreConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7867,4 +6829,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.RestoreConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfigOrBuilder.java similarity index 73% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfigOrBuilder.java index 32ac4d0..e71fbb1 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfigOrBuilder.java @@ -1,64 +1,36 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/restore.proto package com.google.cloud.gkebackup.v1; -public interface RestoreConfigOrBuilder - extends +public interface RestoreConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.RestoreConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Specifies the mechanism to be used to restore volume data.
    * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
    * NO_VOLUME_DATA_RESTORATION).
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; * @return The enum numeric value on the wire for volumeDataRestorePolicy. */ int getVolumeDataRestorePolicyValue(); /** - * - * *
    * Specifies the mechanism to be used to restore volume data.
    * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
    * NO_VOLUME_DATA_RESTORATION).
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; * @return The volumeDataRestorePolicy. */ com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy getVolumeDataRestorePolicy(); /** - * - * *
    * Defines the behavior for handling the situation where cluster-scoped
    * resources being restored already exist in the target cluster. This MUST be
@@ -66,16 +38,11 @@ public interface RestoreConfigOrBuilder
    * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope] is not empty.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; * @return The enum numeric value on the wire for clusterResourceConflictPolicy. */ int getClusterResourceConflictPolicyValue(); /** - * - * *
    * Defines the behavior for handling the situation where cluster-scoped
    * resources being restored already exist in the target cluster. This MUST be
@@ -83,151 +50,106 @@ public interface RestoreConfigOrBuilder
    * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope] is not empty.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; * @return The clusterResourceConflictPolicy. */ - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy - getClusterResourceConflictPolicy(); + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy getClusterResourceConflictPolicy(); /** - * - * *
    * Defines the behavior for handling the situation where sets of namespaced
    * resources being restored already exist in the target cluster. This MUST be
    * set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; * @return The enum numeric value on the wire for namespacedResourceRestoreMode. */ int getNamespacedResourceRestoreModeValue(); /** - * - * *
    * Defines the behavior for handling the situation where sets of namespaced
    * resources being restored already exist in the target cluster. This MUST be
    * set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; * @return The namespacedResourceRestoreMode. */ - com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode - getNamespacedResourceRestoreMode(); + com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode getNamespacedResourceRestoreMode(); /** - * - * *
    * Identifies the cluster-scoped resources to restore from the Backup.
    * Not specifying it means NO cluster resource will be restored.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; * @return Whether the clusterResourceRestoreScope field is set. */ boolean hasClusterResourceRestoreScope(); /** - * - * *
    * Identifies the cluster-scoped resources to restore from the Backup.
    * Not specifying it means NO cluster resource will be restored.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; * @return The clusterResourceRestoreScope. */ - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - getClusterResourceRestoreScope(); + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope getClusterResourceRestoreScope(); /** - * - * *
    * Identifies the cluster-scoped resources to restore from the Backup.
    * Not specifying it means NO cluster resource will be restored.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; - * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; */ - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder - getClusterResourceRestoreScopeOrBuilder(); + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder getClusterResourceRestoreScopeOrBuilder(); /** - * - * *
    * Restore all namespaced resources in the Backup if set to "True".
    * Specifying this field to "False" is an error.
    * 
* * bool all_namespaces = 5; - * * @return Whether the allNamespaces field is set. */ boolean hasAllNamespaces(); /** - * - * *
    * Restore all namespaced resources in the Backup if set to "True".
    * Specifying this field to "False" is an error.
    * 
* * bool all_namespaces = 5; - * * @return The allNamespaces. */ boolean getAllNamespaces(); /** - * - * *
    * A list of selected Namespaces to restore from the Backup. The listed
    * Namespaces and all resources contained in them will be restored.
    * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; - * * @return Whether the selectedNamespaces field is set. */ boolean hasSelectedNamespaces(); /** - * - * *
    * A list of selected Namespaces to restore from the Backup. The listed
    * Namespaces and all resources contained in them will be restored.
    * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; - * * @return The selectedNamespaces. */ com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces(); /** - * - * *
    * A list of selected Namespaces to restore from the Backup. The listed
    * Namespaces and all resources contained in them will be restored.
@@ -238,8 +160,6 @@ public interface RestoreConfigOrBuilder
   com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOrBuilder();
 
   /**
-   *
-   *
    * 
    * A list of selected ProtectedApplications to restore. The listed
    * ProtectedApplications and all the resources to which they refer will be
@@ -247,13 +167,10 @@ public interface RestoreConfigOrBuilder
    * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; - * * @return Whether the selectedApplications field is set. */ boolean hasSelectedApplications(); /** - * - * *
    * A list of selected ProtectedApplications to restore. The listed
    * ProtectedApplications and all the resources to which they refer will be
@@ -261,13 +178,10 @@ public interface RestoreConfigOrBuilder
    * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; - * * @return The selectedApplications. */ com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications(); /** - * - * *
    * A list of selected ProtectedApplications to restore. The listed
    * ProtectedApplications and all the resources to which they refer will be
@@ -279,8 +193,6 @@ public interface RestoreConfigOrBuilder
   com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder();
 
   /**
-   *
-   *
    * 
    * A list of transformation rules to be applied against Kubernetes resources
    * as they are selected for restoration from a Backup. Rules are executed in
@@ -289,15 +201,11 @@ public interface RestoreConfigOrBuilder
    * substitution will occur.
    * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ - java.util.List + java.util.List getSubstitutionRulesList(); /** - * - * *
    * A list of transformation rules to be applied against Kubernetes resources
    * as they are selected for restoration from a Backup. Rules are executed in
@@ -306,14 +214,10 @@ public interface RestoreConfigOrBuilder
    * substitution will occur.
    * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getSubstitutionRules(int index); /** - * - * *
    * A list of transformation rules to be applied against Kubernetes resources
    * as they are selected for restoration from a Backup. Rules are executed in
@@ -322,14 +226,10 @@ public interface RestoreConfigOrBuilder
    * substitution will occur.
    * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ int getSubstitutionRulesCount(); /** - * - * *
    * A list of transformation rules to be applied against Kubernetes resources
    * as they are selected for restoration from a Backup. Rules are executed in
@@ -338,15 +238,11 @@ public interface RestoreConfigOrBuilder
    * substitution will occur.
    * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ - java.util.List + java.util.List getSubstitutionRulesOrBuilderList(); /** - * - * *
    * A list of transformation rules to be applied against Kubernetes resources
    * as they are selected for restoration from a Backup. Rules are executed in
@@ -355,13 +251,10 @@ public interface RestoreConfigOrBuilder
    * substitution will occur.
    * 
* - * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; - * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; */ - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder - getSubstitutionRulesOrBuilder(int index); + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder getSubstitutionRulesOrBuilder( + int index); - public com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreScopeCase - getNamespacedResourceRestoreScopeCase(); + public com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreScopeCase getNamespacedResourceRestoreScopeCase(); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreName.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreName.java similarity index 100% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreName.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreName.java diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreOrBuilder.java similarity index 74% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreOrBuilder.java index eb897be..5c941d2 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreOrBuilder.java @@ -1,189 +1,134 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/restore.proto package com.google.cloud.gkebackup.v1; -public interface RestoreOrBuilder - extends +public interface RestoreOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.Restore) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The full name of the Restore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The full name of the Restore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* * 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. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. The timestamp when this Restore resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The timestamp when this Restore resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The timestamp when this Restore resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The timestamp when this Restore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The timestamp when this Restore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The timestamp when this Restore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * User specified descriptive string for this Restore.
    * 
* * string description = 5; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * User specified descriptive string for this Restore.
    * 
* * string description = 5; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore
    * will restore. Note that this Backup must be a sub-resource of the
@@ -191,16 +136,11 @@ public interface RestoreOrBuilder
    * Format: projects/*/locations/*/backupPlans/*/backups/*.
    * 
* - * - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The backup. */ java.lang.String getBackup(); /** - * - * *
    * Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore
    * will restore. Note that this Backup must be a sub-resource of the
@@ -208,17 +148,13 @@ public interface RestoreOrBuilder
    * Format: projects/*/locations/*/backupPlans/*/backups/*.
    * 
* - * - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for backup. */ - com.google.protobuf.ByteString getBackupBytes(); + com.google.protobuf.ByteString + getBackupBytes(); /** - * - * *
    * Output only. The target cluster into which this Restore will restore data.
    * Valid formats:
@@ -227,16 +163,11 @@ public interface RestoreOrBuilder
    * Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
    * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The cluster. */ java.lang.String getCluster(); /** - * - * *
    * Output only. The target cluster into which this Restore will restore data.
    * Valid formats:
@@ -245,61 +176,43 @@ public interface RestoreOrBuilder
    * Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
    * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for cluster. */ - com.google.protobuf.ByteString getClusterBytes(); + com.google.protobuf.ByteString + getClusterBytes(); /** - * - * *
    * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
    * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the restoreConfig field is set. */ boolean hasRestoreConfig(); /** - * - * *
    * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
    * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The restoreConfig. */ com.google.cloud.gkebackup.v1.RestoreConfig getRestoreConfig(); /** - * - * *
    * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
    * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBuilder(); /** - * - * *
    * A set of custom labels supplied by user.
    * 
@@ -308,31 +221,30 @@ public interface RestoreOrBuilder */ int getLabelsCount(); /** - * - * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 9; */ - 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(); /** - * - * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 9; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * A set of custom labels supplied by user.
    * 
@@ -341,172 +253,129 @@ public interface RestoreOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 9; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Output only. The current state of the Restore.
    * 
* - * - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current state of the Restore.
    * 
* - * - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.gkebackup.v1.Restore.State getState(); /** - * - * *
    * Output only. Human-readable description of why the Restore is in its current state.
    * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stateReason. */ java.lang.String getStateReason(); /** - * - * *
    * Output only. Human-readable description of why the Restore is in its current state.
    * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stateReason. */ - com.google.protobuf.ByteString getStateReasonBytes(); + com.google.protobuf.ByteString + getStateReasonBytes(); /** - * - * *
    * Output only. Timestamp of when the restore operation completed.
    * 
* - * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the completeTime field is set. */ boolean hasCompleteTime(); /** - * - * *
    * Output only. Timestamp of when the restore operation completed.
    * 
* - * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The completeTime. */ com.google.protobuf.Timestamp getCompleteTime(); /** - * - * *
    * Output only. Timestamp of when the restore operation completed.
    * 
* - * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder(); /** - * - * *
    * Output only. Number of resources restored during the restore execution.
    * 
* * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The resourcesRestoredCount. */ int getResourcesRestoredCount(); /** - * - * *
    * Output only. Number of resources excluded during the restore execution.
    * 
* * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The resourcesExcludedCount. */ int getResourcesExcludedCount(); /** - * - * *
    * Output only. Number of resources that failed to be restored during the restore
    * execution.
    * 
* * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The resourcesFailedCount. */ int getResourcesFailedCount(); /** - * - * *
    * Output only. Number of volumes restored during the restore execution.
    * 
* * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The volumesRestoredCount. */ int getVolumesRestoredCount(); /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a restore from overwriting each other.
@@ -519,13 +388,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a restore from overwriting each other.
@@ -538,8 +404,8 @@ java.lang.String getLabelsOrDefault(
    * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlan.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlan.java similarity index 67% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlan.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlan.java index 642260e..6621c9c 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlan.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlan.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/restore_plan.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * The configuration of a potential series of Restore operations to be performed
  * against Backups belong to a particular BackupPlan.
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.gkebackup.v1.RestorePlan}
  */
-public final class RestorePlan extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RestorePlan extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.RestorePlan)
     RestorePlanOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RestorePlan.newBuilder() to construct.
   private RestorePlan(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RestorePlan() {
     name_ = "";
     uid_ = "";
@@ -50,15 +32,16 @@ private RestorePlan() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RestorePlan();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RestorePlan(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -78,114 +61,101 @@ private RestorePlan(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              uid_ = s;
-              break;
-            }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            uid_ = s;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              backupPlan_ = s;
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              cluster_ = s;
-              break;
-            }
-          case 66:
-            {
-              com.google.cloud.gkebackup.v1.RestoreConfig.Builder subBuilder = null;
-              if (restoreConfig_ != null) {
-                subBuilder = restoreConfig_.toBuilder();
-              }
-              restoreConfig_ =
-                  input.readMessage(
-                      com.google.cloud.gkebackup.v1.RestoreConfig.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(restoreConfig_);
-                restoreConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            description_ = s;
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            backupPlan_ = s;
+            break;
+          }
+          case 58: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            cluster_ = s;
+            break;
+          }
+          case 66: {
+            com.google.cloud.gkebackup.v1.RestoreConfig.Builder subBuilder = null;
+            if (restoreConfig_ != null) {
+              subBuilder = restoreConfig_.toBuilder();
             }
-          case 74:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            restoreConfig_ = input.readMessage(com.google.cloud.gkebackup.v1.RestoreConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(restoreConfig_);
+              restoreConfig_ = subBuilder.buildPartial();
             }
-          case 82:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              etag_ = s;
-              break;
+            break;
+          }
+          case 74: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          case 82: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            etag_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -193,51 +163,47 @@ private RestorePlan(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkebackup.v1.RestorePlanProto
-        .internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkebackup.v1.RestorePlanProto.internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 9:
         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.cloud.gkebackup.v1.RestorePlanProto
-        .internal_static_google_cloud_gkebackup_v1_RestorePlan_fieldAccessorTable
+    return com.google.cloud.gkebackup.v1.RestorePlanProto.internal_static_google_cloud_gkebackup_v1_RestorePlan_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkebackup.v1.RestorePlan.class,
-            com.google.cloud.gkebackup.v1.RestorePlan.Builder.class);
+            com.google.cloud.gkebackup.v1.RestorePlan.class, com.google.cloud.gkebackup.v1.RestorePlan.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. The full name of the RestorePlan resource.
    * Format: projects/*/locations/*/restorePlans/*.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -246,30 +212,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 full name of the RestorePlan resource.
    * Format: projects/*/locations/*/restorePlans/*.
    * 
* * 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 { @@ -280,15 +246,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int UID_FIELD_NUMBER = 2; private volatile java.lang.Object uid_; /** - * - * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -297,30 +260,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** - * - * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -331,16 +294,12 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The timestamp when this RestorePlan resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -348,16 +307,12 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The timestamp when this RestorePlan resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -365,15 +320,12 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The timestamp when this RestorePlan resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -383,16 +335,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The timestamp when this RestorePlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -400,16 +348,12 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The timestamp when this RestorePlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -417,15 +361,12 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The timestamp when this RestorePlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -435,14 +376,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** - * - * *
    * User specified descriptive string for this RestorePlan.
    * 
* * string description = 5; - * * @return The description. */ @java.lang.Override @@ -451,29 +389,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * User specified descriptive string for this RestorePlan.
    * 
* * string description = 5; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -484,18 +422,13 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int BACKUP_PLAN_FIELD_NUMBER = 6; private volatile java.lang.Object backupPlan_; /** - * - * *
    * Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the
    * source for Restores created via this RestorePlan.
    * Format: projects/*/locations/*/backupPlans/*.
    * 
* - * - * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The backupPlan. */ @java.lang.Override @@ -504,33 +437,31 @@ public java.lang.String getBackupPlan() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupPlan_ = s; return s; } } /** - * - * *
    * Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the
    * source for Restores created via this RestorePlan.
    * Format: projects/*/locations/*/backupPlans/*.
    * 
* - * - * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for backupPlan. */ @java.lang.Override - public com.google.protobuf.ByteString getBackupPlanBytes() { + public com.google.protobuf.ByteString + getBackupPlanBytes() { java.lang.Object ref = backupPlan_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupPlan_ = b; return b; } else { @@ -541,8 +472,6 @@ public com.google.protobuf.ByteString getBackupPlanBytes() { public static final int CLUSTER_FIELD_NUMBER = 7; private volatile java.lang.Object cluster_; /** - * - * *
    * Required. Immutable. The target cluster into which Restores created via this RestorePlan
    * will restore data. NOTE: the cluster's region must be the same as the
@@ -552,10 +481,7 @@ public com.google.protobuf.ByteString getBackupPlanBytes() {
    *   - projects/*/zones/*/clusters/*
    * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The cluster. */ @java.lang.Override @@ -564,15 +490,14 @@ public java.lang.String getCluster() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; } } /** - * - * *
    * Required. Immutable. The target cluster into which Restores created via this RestorePlan
    * will restore data. NOTE: the cluster's region must be the same as the
@@ -582,18 +507,17 @@ public java.lang.String getCluster() {
    *   - projects/*/zones/*/clusters/*
    * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for cluster. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterBytes() { + public com.google.protobuf.ByteString + getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cluster_ = b; return b; } else { @@ -604,16 +528,11 @@ public com.google.protobuf.ByteString getClusterBytes() { public static final int RESTORE_CONFIG_FIELD_NUMBER = 8; private com.google.cloud.gkebackup.v1.RestoreConfig restoreConfig_; /** - * - * *
    * Required. Configuration of Restores created via this RestorePlan.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the restoreConfig field is set. */ @java.lang.Override @@ -621,34 +540,23 @@ public boolean hasRestoreConfig() { return restoreConfig_ != null; } /** - * - * *
    * Required. Configuration of Restores created via this RestorePlan.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; * @return The restoreConfig. */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfig getRestoreConfig() { - return restoreConfig_ == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() - : restoreConfig_; + return restoreConfig_ == null ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() : restoreConfig_; } /** - * - * *
    * Required. Configuration of Restores created via this RestorePlan.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBuilder() { @@ -656,23 +564,24 @@ public com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBu } public static final int LABELS_FIELD_NUMBER = 9; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.gkebackup.v1.RestorePlanProto - .internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.gkebackup.v1.RestorePlanProto.internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + 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_; } @@ -681,30 +590,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 9; */ + @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(); } /** - * - * *
    * A set of custom labels supplied by user.
    * 
@@ -712,12 +619,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 9; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * A set of custom labels supplied by user.
    * 
@@ -725,16 +631,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + 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; } /** - * - * *
    * A set of custom labels supplied by user.
    * 
@@ -742,11 +648,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 9; */ @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(); } @@ -756,8 +663,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int ETAG_FIELD_NUMBER = 10; private volatile java.lang.Object etag_; /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a restore from overwriting each other.
@@ -770,7 +675,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ @java.lang.Override @@ -779,15 +683,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; } } /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a restore from overwriting each other.
@@ -800,15 +703,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -817,7 +721,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -829,7 +732,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -854,8 +758,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (restoreConfig_ != null) { output.writeMessage(8, getRestoreConfig()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 9); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, etag_); } @@ -875,10 +783,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -890,17 +800,18 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, cluster_); } if (restoreConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRestoreConfig()); - } - 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(9, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getRestoreConfig()); + } + 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(9, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, etag_); @@ -913,33 +824,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.RestorePlan)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.RestorePlan other = - (com.google.cloud.gkebackup.v1.RestorePlan) obj; + com.google.cloud.gkebackup.v1.RestorePlan other = (com.google.cloud.gkebackup.v1.RestorePlan) obj; - if (!getName().equals(other.getName())) return false; - if (!getUid().equals(other.getUid())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUid() + .equals(other.getUid())) 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 (!getDescription().equals(other.getDescription())) return false; - if (!getBackupPlan().equals(other.getBackupPlan())) return false; - if (!getCluster().equals(other.getCluster())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getBackupPlan() + .equals(other.getBackupPlan())) return false; + if (!getCluster() + .equals(other.getCluster())) return false; if (hasRestoreConfig() != other.hasRestoreConfig()) return false; if (hasRestoreConfig()) { - if (!getRestoreConfig().equals(other.getRestoreConfig())) return false; + if (!getRestoreConfig() + .equals(other.getRestoreConfig())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -984,104 +904,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.RestorePlan parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.RestorePlan parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.RestorePlan parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.RestorePlan prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 configuration of a potential series of Restore operations to be performed
    * against Backups belong to a particular BackupPlan.
@@ -1090,43 +1003,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.RestorePlan}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.RestorePlan)
       com.google.cloud.gkebackup.v1.RestorePlanOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkebackup.v1.RestorePlanProto
-          .internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkebackup.v1.RestorePlanProto.internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 9:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 9:
           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.cloud.gkebackup.v1.RestorePlanProto
-          .internal_static_google_cloud_gkebackup_v1_RestorePlan_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.RestorePlanProto.internal_static_google_cloud_gkebackup_v1_RestorePlan_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.RestorePlan.class,
-              com.google.cloud.gkebackup.v1.RestorePlan.Builder.class);
+              com.google.cloud.gkebackup.v1.RestorePlan.class, com.google.cloud.gkebackup.v1.RestorePlan.Builder.class);
     }
 
     // Construct using com.google.cloud.gkebackup.v1.RestorePlan.newBuilder()
@@ -1134,15 +1047,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1181,9 +1095,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkebackup.v1.RestorePlanProto
-          .internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkebackup.v1.RestorePlanProto.internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor;
     }
 
     @java.lang.Override
@@ -1202,8 +1116,7 @@ public com.google.cloud.gkebackup.v1.RestorePlan build() {
 
     @java.lang.Override
     public com.google.cloud.gkebackup.v1.RestorePlan buildPartial() {
-      com.google.cloud.gkebackup.v1.RestorePlan result =
-          new com.google.cloud.gkebackup.v1.RestorePlan(this);
+      com.google.cloud.gkebackup.v1.RestorePlan result = new com.google.cloud.gkebackup.v1.RestorePlan(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.uid_ = uid_;
@@ -1236,39 +1149,38 @@ public com.google.cloud.gkebackup.v1.RestorePlan 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.cloud.gkebackup.v1.RestorePlan) {
-        return mergeFrom((com.google.cloud.gkebackup.v1.RestorePlan) other);
+        return mergeFrom((com.google.cloud.gkebackup.v1.RestorePlan)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1306,7 +1218,8 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.RestorePlan other) {
       if (other.hasRestoreConfig()) {
         mergeRestoreConfig(other.getRestoreConfig());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (!other.getEtag().isEmpty()) {
         etag_ = other.etag_;
         onChanged();
@@ -1339,26 +1252,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The full name of the RestorePlan resource.
      * Format: projects/*/locations/*/restorePlans/*.
      * 
* * 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; @@ -1367,22 +1277,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The full name of the RestorePlan resource.
      * Format: projects/*/locations/*/restorePlans/*.
      * 
* * 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 { @@ -1390,64 +1299,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The full name of the RestorePlan resource.
      * Format: projects/*/locations/*/restorePlans/*.
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The full name of the RestorePlan resource.
      * Format: projects/*/locations/*/restorePlans/*.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The full name of the RestorePlan resource.
      * Format: projects/*/locations/*/restorePlans/*.
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1455,21 +1357,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -1478,22 +1378,21 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -1501,64 +1400,57 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { + public Builder setUid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { + public Builder setUidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); return this; @@ -1566,61 +1458,42 @@ public Builder setUidBytes(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 timestamp when this RestorePlan resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The timestamp when this RestorePlan resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when this RestorePlan resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1636,18 +1509,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this RestorePlan resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1658,22 +1528,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when this RestorePlan resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1685,16 +1551,12 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this RestorePlan resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1708,67 +1570,51 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp when this RestorePlan resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when this RestorePlan resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The timestamp when this RestorePlan resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1776,61 +1622,42 @@ 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 timestamp when this RestorePlan resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The timestamp when this RestorePlan resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this RestorePlan resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1846,18 +1673,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this RestorePlan resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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(); onChanged(); @@ -1868,22 +1692,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when this RestorePlan resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1895,16 +1715,12 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this RestorePlan resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1918,67 +1734,51 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The timestamp when this RestorePlan resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when this RestorePlan resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this RestorePlan resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp 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> 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_; @@ -1986,20 +1786,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object description_ = ""; /** - * - * *
      * User specified descriptive string for this RestorePlan.
      * 
* * string description = 5; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2008,21 +1806,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * User specified descriptive string for this RestorePlan.
      * 
* * string description = 5; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2030,61 +1827,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * User specified descriptive string for this RestorePlan.
      * 
* * string description = 5; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * User specified descriptive string for this RestorePlan.
      * 
* * string description = 5; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * User specified descriptive string for this RestorePlan.
      * 
* * string description = 5; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2092,24 +1882,20 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object backupPlan_ = ""; /** - * - * *
      * Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the
      * source for Restores created via this RestorePlan.
      * Format: projects/*/locations/*/backupPlans/*.
      * 
* - * - * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The backupPlan. */ public java.lang.String getBackupPlan() { java.lang.Object ref = backupPlan_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupPlan_ = s; return s; @@ -2118,25 +1904,22 @@ public java.lang.String getBackupPlan() { } } /** - * - * *
      * Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the
      * source for Restores created via this RestorePlan.
      * Format: projects/*/locations/*/backupPlans/*.
      * 
* - * - * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for backupPlan. */ - public com.google.protobuf.ByteString getBackupPlanBytes() { + public com.google.protobuf.ByteString + getBackupPlanBytes() { java.lang.Object ref = backupPlan_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupPlan_ = b; return b; } else { @@ -2144,73 +1927,60 @@ public com.google.protobuf.ByteString getBackupPlanBytes() { } } /** - * - * *
      * Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the
      * source for Restores created via this RestorePlan.
      * Format: projects/*/locations/*/backupPlans/*.
      * 
* - * - * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The backupPlan to set. * @return This builder for chaining. */ - public Builder setBackupPlan(java.lang.String value) { + public Builder setBackupPlan( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + backupPlan_ = value; onChanged(); return this; } /** - * - * *
      * Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the
      * source for Restores created via this RestorePlan.
      * Format: projects/*/locations/*/backupPlans/*.
      * 
* - * - * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearBackupPlan() { - + backupPlan_ = getDefaultInstance().getBackupPlan(); onChanged(); return this; } /** - * - * *
      * Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the
      * source for Restores created via this RestorePlan.
      * Format: projects/*/locations/*/backupPlans/*.
      * 
* - * - * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for backupPlan to set. * @return This builder for chaining. */ - public Builder setBackupPlanBytes(com.google.protobuf.ByteString value) { + public Builder setBackupPlanBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backupPlan_ = value; onChanged(); return this; @@ -2218,8 +1988,6 @@ public Builder setBackupPlanBytes(com.google.protobuf.ByteString value) { private java.lang.Object cluster_ = ""; /** - * - * *
      * Required. Immutable. The target cluster into which Restores created via this RestorePlan
      * will restore data. NOTE: the cluster's region must be the same as the
@@ -2229,16 +1997,14 @@ public Builder setBackupPlanBytes(com.google.protobuf.ByteString value) {
      *   - projects/*/zones/*/clusters/*
      * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The cluster. */ public java.lang.String getCluster() { java.lang.Object ref = cluster_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; @@ -2247,8 +2013,6 @@ public java.lang.String getCluster() { } } /** - * - * *
      * Required. Immutable. The target cluster into which Restores created via this RestorePlan
      * will restore data. NOTE: the cluster's region must be the same as the
@@ -2258,17 +2022,16 @@ public java.lang.String getCluster() {
      *   - projects/*/zones/*/clusters/*
      * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for cluster. */ - public com.google.protobuf.ByteString getClusterBytes() { + public com.google.protobuf.ByteString + getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cluster_ = b; return b; } else { @@ -2276,8 +2039,6 @@ public com.google.protobuf.ByteString getClusterBytes() { } } /** - * - * *
      * Required. Immutable. The target cluster into which Restores created via this RestorePlan
      * will restore data. NOTE: the cluster's region must be the same as the
@@ -2287,25 +2048,21 @@ public com.google.protobuf.ByteString getClusterBytes() {
      *   - projects/*/zones/*/clusters/*
      * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The cluster to set. * @return This builder for chaining. */ - public Builder setCluster(java.lang.String value) { + public Builder setCluster( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cluster_ = value; onChanged(); return this; } /** - * - * *
      * Required. Immutable. The target cluster into which Restores created via this RestorePlan
      * will restore data. NOTE: the cluster's region must be the same as the
@@ -2315,21 +2072,16 @@ public Builder setCluster(java.lang.String value) {
      *   - projects/*/zones/*/clusters/*
      * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearCluster() { - + cluster_ = getDefaultInstance().getCluster(); onChanged(); return this; } /** - * - * *
      * Required. Immutable. The target cluster into which Restores created via this RestorePlan
      * will restore data. NOTE: the cluster's region must be the same as the
@@ -2339,19 +2091,17 @@ public Builder clearCluster() {
      *   - projects/*/zones/*/clusters/*
      * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for cluster to set. * @return This builder for chaining. */ - public Builder setClusterBytes(com.google.protobuf.ByteString value) { + public Builder setClusterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cluster_ = value; onChanged(); return this; @@ -2359,58 +2109,39 @@ public Builder setClusterBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkebackup.v1.RestoreConfig restoreConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig, - com.google.cloud.gkebackup.v1.RestoreConfig.Builder, - com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> - restoreConfigBuilder_; + com.google.cloud.gkebackup.v1.RestoreConfig, com.google.cloud.gkebackup.v1.RestoreConfig.Builder, com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> restoreConfigBuilder_; /** - * - * *
      * Required. Configuration of Restores created via this RestorePlan.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the restoreConfig field is set. */ public boolean hasRestoreConfig() { return restoreConfigBuilder_ != null || restoreConfig_ != null; } /** - * - * *
      * Required. Configuration of Restores created via this RestorePlan.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; * @return The restoreConfig. */ public com.google.cloud.gkebackup.v1.RestoreConfig getRestoreConfig() { if (restoreConfigBuilder_ == null) { - return restoreConfig_ == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() - : restoreConfig_; + return restoreConfig_ == null ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() : restoreConfig_; } else { return restoreConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Configuration of Restores created via this RestorePlan.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig value) { if (restoreConfigBuilder_ == null) { @@ -2426,15 +2157,11 @@ public Builder setRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig valu return this; } /** - * - * *
      * Required. Configuration of Restores created via this RestorePlan.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRestoreConfig( com.google.cloud.gkebackup.v1.RestoreConfig.Builder builderForValue) { @@ -2448,23 +2175,17 @@ public Builder setRestoreConfig( return this; } /** - * - * *
      * Required. Configuration of Restores created via this RestorePlan.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig value) { if (restoreConfigBuilder_ == null) { if (restoreConfig_ != null) { restoreConfig_ = - com.google.cloud.gkebackup.v1.RestoreConfig.newBuilder(restoreConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkebackup.v1.RestoreConfig.newBuilder(restoreConfig_).mergeFrom(value).buildPartial(); } else { restoreConfig_ = value; } @@ -2476,15 +2197,11 @@ public Builder mergeRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig va return this; } /** - * - * *
      * Required. Configuration of Restores created via this RestorePlan.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRestoreConfig() { if (restoreConfigBuilder_ == null) { @@ -2498,84 +2215,69 @@ public Builder clearRestoreConfig() { return this; } /** - * - * *
      * Required. Configuration of Restores created via this RestorePlan.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkebackup.v1.RestoreConfig.Builder getRestoreConfigBuilder() { - + onChanged(); return getRestoreConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Configuration of Restores created via this RestorePlan.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBuilder() { if (restoreConfigBuilder_ != null) { return restoreConfigBuilder_.getMessageOrBuilder(); } else { - return restoreConfig_ == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() - : restoreConfig_; + return restoreConfig_ == null ? + com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() : restoreConfig_; } } /** - * - * *
      * Required. Configuration of Restores created via this RestorePlan.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig, - com.google.cloud.gkebackup.v1.RestoreConfig.Builder, - com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> + com.google.cloud.gkebackup.v1.RestoreConfig, com.google.cloud.gkebackup.v1.RestoreConfig.Builder, com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> getRestoreConfigFieldBuilder() { if (restoreConfigBuilder_ == null) { - restoreConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig, - com.google.cloud.gkebackup.v1.RestoreConfig.Builder, - com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder>( - getRestoreConfig(), getParentForChildren(), isClean()); + restoreConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig, com.google.cloud.gkebackup.v1.RestoreConfig.Builder, com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder>( + getRestoreConfig(), + getParentForChildren(), + isClean()); restoreConfig_ = null; } return restoreConfigBuilder_; } - 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() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; 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(); @@ -2587,30 +2289,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 9; */ + @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(); } /** - * - * *
      * A set of custom labels supplied by user.
      * 
@@ -2618,12 +2318,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 9; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * A set of custom labels supplied by user.
      * 
@@ -2631,17 +2330,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + 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; } /** - * - * *
      * A set of custom labels supplied by user.
      * 
@@ -2649,11 +2347,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 9; */ @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(); } @@ -2661,68 +2360,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 9; */ - 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() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 9; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + 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"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 9; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private java.lang.Object etag_ = ""; /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a restore from overwriting each other.
@@ -2735,13 +2435,13 @@ public Builder putAllLabels(java.util.Map va
      * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -2750,8 +2450,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a restore from overwriting each other.
@@ -2764,14 +2462,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -2779,8 +2478,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a restore from overwriting each other.
@@ -2793,22 +2490,20 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a restore from overwriting each other.
@@ -2821,18 +2516,15 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a restore from overwriting each other.
@@ -2845,23 +2537,23 @@ public Builder clearEtag() {
      * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2871,12 +2563,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.RestorePlan) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.RestorePlan) private static final com.google.cloud.gkebackup.v1.RestorePlan DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.RestorePlan(); } @@ -2885,16 +2577,16 @@ public static com.google.cloud.gkebackup.v1.RestorePlan getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestorePlan parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RestorePlan(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestorePlan parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RestorePlan(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2909,4 +2601,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.RestorePlan getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanName.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanName.java similarity index 100% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanName.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanName.java diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanOrBuilder.java similarity index 72% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanOrBuilder.java index c4b84e2..3a00261 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanOrBuilder.java @@ -1,225 +1,161 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/restore_plan.proto package com.google.cloud.gkebackup.v1; -public interface RestorePlanOrBuilder - extends +public interface RestorePlanOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.RestorePlan) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The full name of the RestorePlan resource.
    * Format: projects/*/locations/*/restorePlans/*.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The full name of the RestorePlan resource.
    * Format: projects/*/locations/*/restorePlans/*.
    * 
* * 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. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. The timestamp when this RestorePlan resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The timestamp when this RestorePlan resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The timestamp when this RestorePlan resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The timestamp when this RestorePlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The timestamp when this RestorePlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The timestamp when this RestorePlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * User specified descriptive string for this RestorePlan.
    * 
* * string description = 5; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * User specified descriptive string for this RestorePlan.
    * 
* * string description = 5; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the
    * source for Restores created via this RestorePlan.
    * Format: projects/*/locations/*/backupPlans/*.
    * 
* - * - * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The backupPlan. */ java.lang.String getBackupPlan(); /** - * - * *
    * Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the
    * source for Restores created via this RestorePlan.
    * Format: projects/*/locations/*/backupPlans/*.
    * 
* - * - * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for backupPlan. */ - com.google.protobuf.ByteString getBackupPlanBytes(); + com.google.protobuf.ByteString + getBackupPlanBytes(); /** - * - * *
    * Required. Immutable. The target cluster into which Restores created via this RestorePlan
    * will restore data. NOTE: the cluster's region must be the same as the
@@ -229,16 +165,11 @@ public interface RestorePlanOrBuilder
    *   - projects/*/zones/*/clusters/*
    * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The cluster. */ java.lang.String getCluster(); /** - * - * *
    * Required. Immutable. The target cluster into which Restores created via this RestorePlan
    * will restore data. NOTE: the cluster's region must be the same as the
@@ -248,58 +179,40 @@ public interface RestorePlanOrBuilder
    *   - projects/*/zones/*/clusters/*
    * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for cluster. */ - com.google.protobuf.ByteString getClusterBytes(); + com.google.protobuf.ByteString + getClusterBytes(); /** - * - * *
    * Required. Configuration of Restores created via this RestorePlan.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the restoreConfig field is set. */ boolean hasRestoreConfig(); /** - * - * *
    * Required. Configuration of Restores created via this RestorePlan.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; * @return The restoreConfig. */ com.google.cloud.gkebackup.v1.RestoreConfig getRestoreConfig(); /** - * - * *
    * Required. Configuration of Restores created via this RestorePlan.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBuilder(); /** - * - * *
    * A set of custom labels supplied by user.
    * 
@@ -308,31 +221,30 @@ public interface RestorePlanOrBuilder */ int getLabelsCount(); /** - * - * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 9; */ - 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(); /** - * - * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 9; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * A set of custom labels supplied by user.
    * 
@@ -341,24 +253,22 @@ public interface RestorePlanOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 9; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a restore from overwriting each other.
@@ -371,13 +281,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a restore from overwriting each other.
@@ -390,8 +297,8 @@ java.lang.String getLabelsOrDefault(
    * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanProto.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanProto.java new file mode 100644 index 0000000..1c91c66 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanProto.java @@ -0,0 +1,98 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/restore_plan.proto + +package com.google.cloud.gkebackup.v1; + +public final class RestorePlanProto { + private RestorePlanProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_RestorePlan_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/gkebackup/v1/restore_plan" + + ".proto\022\031google.cloud.gkebackup.v1\032\037googl" + + "e/api/field_behavior.proto\032\031google/api/r" + + "esource.proto\032\'google/cloud/gkebackup/v1" + + "/restore.proto\032\037google/protobuf/timestam" + + "p.proto\"\363\004\n\013RestorePlan\022\021\n\004name\030\001 \001(\tB\003\340" + + "A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + + "date_time\030\004 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022\023\n\013description\030\005 \001(\t\022C\n\013backup_" + + "plan\030\006 \001(\tB.\340A\005\340A\002\372A%\n#gkebackup.googlea" + + "pis.com/BackupPlan\022<\n\007cluster\030\007 \001(\tB+\340A\005" + + "\340A\002\372A\"\n container.googleapis.com/Cluster" + + "\022E\n\016restore_config\030\010 \001(\0132(.google.cloud." + + "gkebackup.v1.RestoreConfigB\003\340A\002\022B\n\006label" + + "s\030\t \003(\01322.google.cloud.gkebackup.v1.Rest" + + "orePlan.LabelsEntry\022\021\n\004etag\030\n \001(\tB\003\340A\003\032-" + + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001:n\352Ak\n$gkebackup.googleapis.com/Res" + + "torePlan\022Cprojects/{project}/locations/{" + + "location}/restorePlans/{restore_plan}B\316\001" + + "\n\035com.google.cloud.gkebackup.v1B\020Restore" + + "PlanProtoP\001ZBgoogle.golang.org/genproto/" + + "googleapis/cloud/gkebackup/v1;gkebackup\252" + + "\002\031Google.Cloud.GkeBackup.V1\312\002\031Google\\Clo" + + "ud\\GkeBackup\\V1\352\002\034Google::Cloud::GkeBack" + + "up::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.gkebackup.v1.RestoreProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkebackup_v1_RestorePlan_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor, + new java.lang.String[] { "Name", "Uid", "CreateTime", "UpdateTime", "Description", "BackupPlan", "Cluster", "RestoreConfig", "Labels", "Etag", }); + internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_descriptor = + internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.gkebackup.v1.RestoreProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreProto.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreProto.java new file mode 100644 index 0000000..9e254e6 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreProto.java @@ -0,0 +1,191 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/restore.proto + +package com.google.cloud.gkebackup.v1; + +public final class RestoreProto { + private RestoreProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_Restore_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_RestoreConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'google/cloud/gkebackup/v1/restore.prot" + + "o\022\031google.cloud.gkebackup.v1\032\037google/api" + + "/field_behavior.proto\032\031google/api/resour" + + "ce.proto\032&google/cloud/gkebackup/v1/comm" + + "on.proto\032\037google/protobuf/timestamp.prot" + + "o\"\377\007\n\007Restore\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030" + + "\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" + + "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023" + + "\n\013description\030\005 \001(\t\022:\n\006backup\030\006 \001(\tB*\340A\005" + + "\340A\002\372A!\n\037gkebackup.googleapis.com/Backup\022" + + "9\n\007cluster\030\007 \001(\tB(\340A\003\372A\"\n container.goog" + + "leapis.com/Cluster\022E\n\016restore_config\030\010 \001" + + "(\0132(.google.cloud.gkebackup.v1.RestoreCo" + + "nfigB\003\340A\003\022>\n\006labels\030\t \003(\0132..google.cloud" + + ".gkebackup.v1.Restore.LabelsEntry\022<\n\005sta" + + "te\030\n \001(\0162(.google.cloud.gkebackup.v1.Res" + + "tore.StateB\003\340A\003\022\031\n\014state_reason\030\013 \001(\tB\003\340" + + "A\003\0226\n\rcomplete_time\030\014 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022%\n\030resources_restored" + + "_count\030\r \001(\005B\003\340A\003\022%\n\030resources_excluded_" + + "count\030\016 \001(\005B\003\340A\003\022#\n\026resources_failed_cou" + + "nt\030\017 \001(\005B\003\340A\003\022#\n\026volumes_restored_count\030" + + "\020 \001(\005B\003\340A\003\022\021\n\004etag\030\021 \001(\tB\003\340A\003\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"f\n\005" + + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING" + + "\020\001\022\017\n\013IN_PROGRESS\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FA" + + "ILED\020\004\022\014\n\010DELETING\020\005:}\352Az\n gkebackup.goo" + + "gleapis.com/Restore\022Vprojects/{project}/" + + "locations/{location}/restorePlans/{resto" + + "re_plan}/restores/{restore}\"\250\014\n\rRestoreC" + + "onfig\022d\n\032volume_data_restore_policy\030\001 \001(" + + "\0162@.google.cloud.gkebackup.v1.RestoreCon" + + "fig.VolumeDataRestorePolicy\022p\n cluster_r" + + "esource_conflict_policy\030\002 \001(\0162F.google.c" + + "loud.gkebackup.v1.RestoreConfig.ClusterR" + + "esourceConflictPolicy\022p\n namespaced_reso" + + "urce_restore_mode\030\003 \001(\0162F.google.cloud.g" + + "kebackup.v1.RestoreConfig.NamespacedReso" + + "urceRestoreMode\022l\n\036cluster_resource_rest" + + "ore_scope\030\004 \001(\0132D.google.cloud.gkebackup" + + ".v1.RestoreConfig.ClusterResourceRestore" + + "Scope\022\030\n\016all_namespaces\030\005 \001(\010H\000\022D\n\023selec" + + "ted_namespaces\030\006 \001(\0132%.google.cloud.gkeb" + + "ackup.v1.NamespacesH\000\022K\n\025selected_applic" + + "ations\030\007 \001(\0132*.google.cloud.gkebackup.v1" + + ".NamespacedNamesH\000\022U\n\022substitution_rules" + + "\030\010 \003(\01329.google.cloud.gkebackup.v1.Resto" + + "reConfig.SubstitutionRule\032:\n\tGroupKind\022\026" + + "\n\016resource_group\030\001 \001(\t\022\025\n\rresource_kind\030" + + "\002 \001(\t\032o\n\033ClusterResourceRestoreScope\022P\n\024" + + "selected_group_kinds\030\001 \003(\01322.google.clou" + + "d.gkebackup.v1.RestoreConfig.GroupKind\032\317" + + "\001\n\020SubstitutionRule\022\031\n\021target_namespaces" + + "\030\001 \003(\t\022N\n\022target_group_kinds\030\002 \003(\01322.goo" + + "gle.cloud.gkebackup.v1.RestoreConfig.Gro" + + "upKind\022\035\n\020target_json_path\030\003 \001(\tB\003\340A\002\022\036\n" + + "\026original_value_pattern\030\004 \001(\t\022\021\n\tnew_val" + + "ue\030\005 \001(\t\"\257\001\n\027VolumeDataRestorePolicy\022*\n&" + + "VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED\020\000" + + "\022#\n\037RESTORE_VOLUME_DATA_FROM_BACKUP\020\001\022#\n" + + "\037REUSE_VOLUME_HANDLE_FROM_BACKUP\020\002\022\036\n\032NO" + + "_VOLUME_DATA_RESTORATION\020\003\"\203\001\n\035ClusterRe" + + "sourceConflictPolicy\0220\n,CLUSTER_RESOURCE" + + "_CONFLICT_POLICY_UNSPECIFIED\020\000\022\030\n\024USE_EX" + + "ISTING_VERSION\020\001\022\026\n\022USE_BACKUP_VERSION\020\002" + + "\"\177\n\035NamespacedResourceRestoreMode\0220\n,NAM" + + "ESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIE" + + "D\020\000\022\026\n\022DELETE_AND_RESTORE\020\001\022\024\n\020FAIL_ON_C" + + "ONFLICT\020\002B#\n!namespaced_resource_restore" + + "_scopeB\312\001\n\035com.google.cloud.gkebackup.v1" + + "B\014RestoreProtoP\001ZBgoogle.golang.org/genp" + + "roto/googleapis/cloud/gkebackup/v1;gkeba" + + "ckup\252\002\031Google.Cloud.GkeBackup.V1\312\002\031Googl" + + "e\\Cloud\\GkeBackup\\V1\352\002\034Google::Cloud::Gk" + + "eBackup::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gkebackup_v1_Restore_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_Restore_descriptor, + new java.lang.String[] { "Name", "Uid", "CreateTime", "UpdateTime", "Description", "Backup", "Cluster", "RestoreConfig", "Labels", "State", "StateReason", "CompleteTime", "ResourcesRestoredCount", "ResourcesExcludedCount", "ResourcesFailedCount", "VolumesRestoredCount", "Etag", }); + internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor = + internal_static_google_cloud_gkebackup_v1_Restore_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor, + new java.lang.String[] { "VolumeDataRestorePolicy", "ClusterResourceConflictPolicy", "NamespacedResourceRestoreMode", "ClusterResourceRestoreScope", "AllNamespaces", "SelectedNamespaces", "SelectedApplications", "SubstitutionRules", "NamespacedResourceRestoreScope", }); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor = + internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor, + new java.lang.String[] { "ResourceGroup", "ResourceKind", }); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor = + internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor, + new java.lang.String[] { "SelectedGroupKinds", }); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor = + internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor, + new java.lang.String[] { "TargetNamespaces", "TargetGroupKinds", "TargetJsonPath", "OriginalValuePattern", "NewValue", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequest.java similarity index 71% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequest.java index 6a423ba..941dd0e 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Request message for UpdateBackupPlan.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.UpdateBackupPlanRequest} */ -public final class UpdateBackupPlanRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateBackupPlanRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.UpdateBackupPlanRequest) UpdateBackupPlanRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateBackupPlanRequest.newBuilder() to construct. private UpdateBackupPlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateBackupPlanRequest() {} + private UpdateBackupPlanRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateBackupPlanRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateBackupPlanRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateBackupPlanRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.gkebackup.v1.BackupPlan.Builder subBuilder = null; - if (backupPlan_ != null) { - subBuilder = backupPlan_.toBuilder(); - } - backupPlan_ = - input.readMessage( - com.google.cloud.gkebackup.v1.BackupPlan.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(backupPlan_); - backupPlan_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.gkebackup.v1.BackupPlan.Builder subBuilder = null; + if (backupPlan_ != null) { + subBuilder = backupPlan_.toBuilder(); + } + backupPlan_ = input.readMessage(com.google.cloud.gkebackup.v1.BackupPlan.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(backupPlan_); + backupPlan_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,42 +92,35 @@ private UpdateBackupPlanRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.class, - com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.class, com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.Builder.class); } public static final int BACKUP_PLAN_FIELD_NUMBER = 1; private com.google.cloud.gkebackup.v1.BackupPlan backupPlan_; /** - * - * *
    * Required. A new version of the BackupPlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backupPlan field is set. */ @java.lang.Override @@ -156,36 +128,25 @@ public boolean hasBackupPlan() { return backupPlan_ != null; } /** - * - * *
    * Required. A new version of the BackupPlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The backupPlan. */ @java.lang.Override public com.google.cloud.gkebackup.v1.BackupPlan getBackupPlan() { - return backupPlan_ == null - ? com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() - : backupPlan_; + return backupPlan_ == null ? com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() : backupPlan_; } /** - * - * *
    * Required. A new version of the BackupPlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder() { @@ -195,8 +156,6 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder( public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * BackupPlan targeted for update. The values for each of these
@@ -210,7 +169,6 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder(
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -218,8 +176,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * BackupPlan targeted for update. The values for each of these
@@ -233,7 +189,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -241,8 +196,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * BackupPlan targeted for update. The values for each of these
@@ -263,7 +216,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -275,7 +227,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (backupPlan_ != null) {
       output.writeMessage(1, getBackupPlan());
     }
@@ -292,10 +245,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (backupPlan_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBackupPlan());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getBackupPlan());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -305,21 +260,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest other =
-        (com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest) obj;
+    com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest other = (com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest) obj;
 
     if (hasBackupPlan() != other.hasBackupPlan()) return false;
     if (hasBackupPlan()) {
-      if (!getBackupPlan().equals(other.getBackupPlan())) return false;
+      if (!getBackupPlan()
+          .equals(other.getBackupPlan())) 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -346,127 +302,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 UpdateBackupPlan.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.UpdateBackupPlanRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.UpdateBackupPlanRequest) com.google.cloud.gkebackup.v1.UpdateBackupPlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.class, - com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.class, com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.newBuilder() @@ -474,15 +420,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -502,9 +449,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor; } @java.lang.Override @@ -523,8 +470,7 @@ public com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest buildPartial() { - com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest result = - new com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest(this); + com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest result = new com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest(this); if (backupPlanBuilder_ == null) { result.backupPlan_ = backupPlan_; } else { @@ -543,39 +489,38 @@ public com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest 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.cloud.gkebackup.v1.UpdateBackupPlanRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest)other); } else { super.mergeFrom(other); return this; @@ -583,8 +528,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest other) { - if (other == com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.getDefaultInstance()) return this; if (other.hasBackupPlan()) { mergeBackupPlan(other.getBackupPlan()); } @@ -610,8 +554,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -623,61 +566,42 @@ public Builder mergeFrom( private com.google.cloud.gkebackup.v1.BackupPlan backupPlan_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan, - com.google.cloud.gkebackup.v1.BackupPlan.Builder, - com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> - backupPlanBuilder_; + com.google.cloud.gkebackup.v1.BackupPlan, com.google.cloud.gkebackup.v1.BackupPlan.Builder, com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> backupPlanBuilder_; /** - * - * *
      * Required. A new version of the BackupPlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backupPlan field is set. */ public boolean hasBackupPlan() { return backupPlanBuilder_ != null || backupPlan_ != null; } /** - * - * *
      * Required. A new version of the BackupPlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The backupPlan. */ public com.google.cloud.gkebackup.v1.BackupPlan getBackupPlan() { if (backupPlanBuilder_ == null) { - return backupPlan_ == null - ? com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() - : backupPlan_; + return backupPlan_ == null ? com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() : backupPlan_; } else { return backupPlanBuilder_.getMessage(); } } /** - * - * *
      * Required. A new version of the BackupPlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan value) { if (backupPlanBuilder_ == null) { @@ -693,18 +617,15 @@ public Builder setBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan value) { return this; } /** - * - * *
      * Required. A new version of the BackupPlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan.Builder builderForValue) { + public Builder setBackupPlan( + com.google.cloud.gkebackup.v1.BackupPlan.Builder builderForValue) { if (backupPlanBuilder_ == null) { backupPlan_ = builderForValue.build(); onChanged(); @@ -715,24 +636,18 @@ public Builder setBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan.Builder bu return this; } /** - * - * *
      * Required. A new version of the BackupPlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan value) { if (backupPlanBuilder_ == null) { if (backupPlan_ != null) { backupPlan_ = - com.google.cloud.gkebackup.v1.BackupPlan.newBuilder(backupPlan_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkebackup.v1.BackupPlan.newBuilder(backupPlan_).mergeFrom(value).buildPartial(); } else { backupPlan_ = value; } @@ -744,16 +659,12 @@ public Builder mergeBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan value) { return this; } /** - * - * *
      * Required. A new version of the BackupPlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBackupPlan() { if (backupPlanBuilder_ == null) { @@ -767,67 +678,51 @@ public Builder clearBackupPlan() { return this; } /** - * - * *
      * Required. A new version of the BackupPlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkebackup.v1.BackupPlan.Builder getBackupPlanBuilder() { - + onChanged(); return getBackupPlanFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A new version of the BackupPlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder() { if (backupPlanBuilder_ != null) { return backupPlanBuilder_.getMessageOrBuilder(); } else { - return backupPlan_ == null - ? com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() - : backupPlan_; + return backupPlan_ == null ? + com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() : backupPlan_; } } /** - * - * *
      * Required. A new version of the BackupPlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan, - com.google.cloud.gkebackup.v1.BackupPlan.Builder, - com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> + com.google.cloud.gkebackup.v1.BackupPlan, com.google.cloud.gkebackup.v1.BackupPlan.Builder, com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> getBackupPlanFieldBuilder() { if (backupPlanBuilder_ == null) { - backupPlanBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan, - com.google.cloud.gkebackup.v1.BackupPlan.Builder, - com.google.cloud.gkebackup.v1.BackupPlanOrBuilder>( - getBackupPlan(), getParentForChildren(), isClean()); + backupPlanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.BackupPlan, com.google.cloud.gkebackup.v1.BackupPlan.Builder, com.google.cloud.gkebackup.v1.BackupPlanOrBuilder>( + getBackupPlan(), + getParentForChildren(), + isClean()); backupPlan_ = null; } return backupPlanBuilder_; @@ -835,13 +730,8 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder( 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_; /** - * - * *
      * This is used to specify the fields to be overwritten in the
      * BackupPlan targeted for update. The values for each of these
@@ -855,15 +745,12 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder(
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * This is used to specify the fields to be overwritten in the
      * BackupPlan targeted for update. The values for each of these
@@ -877,21 +764,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @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(); } } /** - * - * *
      * This is used to specify the fields to be overwritten in the
      * BackupPlan targeted for update. The values for each of these
@@ -920,8 +802,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * BackupPlan targeted for update. The values for each of these
@@ -936,7 +816,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -947,8 +828,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * BackupPlan targeted for update. The values for each of these
@@ -967,7 +846,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -979,8 +858,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * BackupPlan targeted for update. The values for each of these
@@ -1007,8 +884,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * BackupPlan targeted for update. The values for each of these
@@ -1024,13 +899,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * BackupPlan targeted for update. The values for each of these
@@ -1049,14 +922,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_;
       }
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * BackupPlan targeted for update. The values for each of these
@@ -1072,24 +942,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     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);
     }
 
@@ -1099,12 +966,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.UpdateBackupPlanRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.UpdateBackupPlanRequest)
   private static final com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest();
   }
@@ -1113,16 +980,16 @@ public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateBackupPlanRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateBackupPlanRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateBackupPlanRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateBackupPlanRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1137,4 +1004,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequestOrBuilder.java
similarity index 75%
rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequestOrBuilder.java
index 1f89701..3f26d9a 100644
--- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequestOrBuilder.java
@@ -1,75 +1,43 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkebackup/v1/gkebackup.proto
 
 package com.google.cloud.gkebackup.v1;
 
-public interface UpdateBackupPlanRequestOrBuilder
-    extends
+public interface UpdateBackupPlanRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.UpdateBackupPlanRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. A new version of the BackupPlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backupPlan field is set. */ boolean hasBackupPlan(); /** - * - * *
    * Required. A new version of the BackupPlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The backupPlan. */ com.google.cloud.gkebackup.v1.BackupPlan getBackupPlan(); /** - * - * *
    * Required. A new version of the BackupPlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder(); /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * BackupPlan targeted for update. The values for each of these
@@ -83,13 +51,10 @@ public interface UpdateBackupPlanRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * BackupPlan targeted for update. The values for each of these
@@ -103,13 +68,10 @@ public interface UpdateBackupPlanRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * BackupPlan targeted for update. The values for each of these
diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequest.java
similarity index 73%
rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequest.java
index ca3b1dd..ab9587b 100644
--- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequest.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkebackup/v1/gkebackup.proto
 
 package com.google.cloud.gkebackup.v1;
 
 /**
- *
- *
  * 
  * Request message for UpdateBackup.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.UpdateBackupRequest} */ -public final class UpdateBackupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateBackupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.UpdateBackupRequest) UpdateBackupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateBackupRequest.newBuilder() to construct. private UpdateBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateBackupRequest() {} + private UpdateBackupRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateBackupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateBackupRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateBackupRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.gkebackup.v1.Backup.Builder subBuilder = null; - if (backup_ != null) { - subBuilder = backup_.toBuilder(); - } - backup_ = - input.readMessage( - com.google.cloud.gkebackup.v1.Backup.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(backup_); - backup_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.gkebackup.v1.Backup.Builder subBuilder = null; + if (backup_ != null) { + subBuilder = backup_.toBuilder(); + } + backup_ = input.readMessage(com.google.cloud.gkebackup.v1.Backup.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(backup_); + backup_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,41 +92,35 @@ private UpdateBackupRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.UpdateBackupRequest.class, - com.google.cloud.gkebackup.v1.UpdateBackupRequest.Builder.class); + com.google.cloud.gkebackup.v1.UpdateBackupRequest.class, com.google.cloud.gkebackup.v1.UpdateBackupRequest.Builder.class); } public static final int BACKUP_FIELD_NUMBER = 1; private com.google.cloud.gkebackup.v1.Backup backup_; /** - * - * *
    * Required. A new version of the Backup resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ @java.lang.Override @@ -155,16 +128,12 @@ public boolean hasBackup() { return backup_ != null; } /** - * - * *
    * Required. A new version of the Backup resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ @java.lang.Override @@ -172,15 +141,12 @@ public com.google.cloud.gkebackup.v1.Backup getBackup() { return backup_ == null ? com.google.cloud.gkebackup.v1.Backup.getDefaultInstance() : backup_; } /** - * - * *
    * Required. A new version of the Backup resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() { @@ -190,8 +156,6 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * Backup targeted for update. The values for each of these
@@ -204,7 +168,6 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -212,8 +175,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * Backup targeted for update. The values for each of these
@@ -226,7 +187,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -234,8 +194,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * Backup targeted for update. The values for each of these
@@ -255,7 +213,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -267,7 +224,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (backup_ != null) {
       output.writeMessage(1, getBackup());
     }
@@ -284,10 +242,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (backup_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBackup());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getBackup());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -297,21 +257,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.gkebackup.v1.UpdateBackupRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkebackup.v1.UpdateBackupRequest other =
-        (com.google.cloud.gkebackup.v1.UpdateBackupRequest) obj;
+    com.google.cloud.gkebackup.v1.UpdateBackupRequest other = (com.google.cloud.gkebackup.v1.UpdateBackupRequest) obj;
 
     if (hasBackup() != other.hasBackup()) return false;
     if (hasBackup()) {
-      if (!getBackup().equals(other.getBackup())) return false;
+      if (!getBackup()
+          .equals(other.getBackup())) 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -338,126 +299,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.gkebackup.v1.UpdateBackupRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 UpdateBackup.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.UpdateBackupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.UpdateBackupRequest) com.google.cloud.gkebackup.v1.UpdateBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.UpdateBackupRequest.class, - com.google.cloud.gkebackup.v1.UpdateBackupRequest.Builder.class); + com.google.cloud.gkebackup.v1.UpdateBackupRequest.class, com.google.cloud.gkebackup.v1.UpdateBackupRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.UpdateBackupRequest.newBuilder() @@ -465,15 +417,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -493,9 +446,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor; } @java.lang.Override @@ -514,8 +467,7 @@ public com.google.cloud.gkebackup.v1.UpdateBackupRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.UpdateBackupRequest buildPartial() { - com.google.cloud.gkebackup.v1.UpdateBackupRequest result = - new com.google.cloud.gkebackup.v1.UpdateBackupRequest(this); + com.google.cloud.gkebackup.v1.UpdateBackupRequest result = new com.google.cloud.gkebackup.v1.UpdateBackupRequest(this); if (backupBuilder_ == null) { result.backup_ = backup_; } else { @@ -534,39 +486,38 @@ public com.google.cloud.gkebackup.v1.UpdateBackupRequest 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.cloud.gkebackup.v1.UpdateBackupRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.UpdateBackupRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.UpdateBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -574,8 +525,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.UpdateBackupRequest other) { - if (other == com.google.cloud.gkebackup.v1.UpdateBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.UpdateBackupRequest.getDefaultInstance()) return this; if (other.hasBackup()) { mergeBackup(other.getBackup()); } @@ -601,8 +551,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.UpdateBackupRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.UpdateBackupRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -614,58 +563,42 @@ public Builder mergeFrom( private com.google.cloud.gkebackup.v1.Backup backup_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup, - com.google.cloud.gkebackup.v1.Backup.Builder, - com.google.cloud.gkebackup.v1.BackupOrBuilder> - backupBuilder_; + com.google.cloud.gkebackup.v1.Backup, com.google.cloud.gkebackup.v1.Backup.Builder, com.google.cloud.gkebackup.v1.BackupOrBuilder> backupBuilder_; /** - * - * *
      * Required. A new version of the Backup resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ public boolean hasBackup() { return backupBuilder_ != null || backup_ != null; } /** - * - * *
      * Required. A new version of the Backup resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ public com.google.cloud.gkebackup.v1.Backup getBackup() { if (backupBuilder_ == null) { - return backup_ == null - ? com.google.cloud.gkebackup.v1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? com.google.cloud.gkebackup.v1.Backup.getDefaultInstance() : backup_; } else { return backupBuilder_.getMessage(); } } /** - * - * *
      * Required. A new version of the Backup resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBackup(com.google.cloud.gkebackup.v1.Backup value) { if (backupBuilder_ == null) { @@ -681,17 +614,15 @@ public Builder setBackup(com.google.cloud.gkebackup.v1.Backup value) { return this; } /** - * - * *
      * Required. A new version of the Backup resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBackup(com.google.cloud.gkebackup.v1.Backup.Builder builderForValue) { + public Builder setBackup( + com.google.cloud.gkebackup.v1.Backup.Builder builderForValue) { if (backupBuilder_ == null) { backup_ = builderForValue.build(); onChanged(); @@ -702,23 +633,18 @@ public Builder setBackup(com.google.cloud.gkebackup.v1.Backup.Builder builderFor return this; } /** - * - * *
      * Required. A new version of the Backup resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBackup(com.google.cloud.gkebackup.v1.Backup value) { if (backupBuilder_ == null) { if (backup_ != null) { backup_ = - com.google.cloud.gkebackup.v1.Backup.newBuilder(backup_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkebackup.v1.Backup.newBuilder(backup_).mergeFrom(value).buildPartial(); } else { backup_ = value; } @@ -730,15 +656,12 @@ public Builder mergeBackup(com.google.cloud.gkebackup.v1.Backup value) { return this; } /** - * - * *
      * Required. A new version of the Backup resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBackup() { if (backupBuilder_ == null) { @@ -752,64 +675,51 @@ public Builder clearBackup() { return this; } /** - * - * *
      * Required. A new version of the Backup resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkebackup.v1.Backup.Builder getBackupBuilder() { - + onChanged(); return getBackupFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A new version of the Backup resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() { if (backupBuilder_ != null) { return backupBuilder_.getMessageOrBuilder(); } else { - return backup_ == null - ? com.google.cloud.gkebackup.v1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? + com.google.cloud.gkebackup.v1.Backup.getDefaultInstance() : backup_; } } /** - * - * *
      * Required. A new version of the Backup resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup, - com.google.cloud.gkebackup.v1.Backup.Builder, - com.google.cloud.gkebackup.v1.BackupOrBuilder> + com.google.cloud.gkebackup.v1.Backup, com.google.cloud.gkebackup.v1.Backup.Builder, com.google.cloud.gkebackup.v1.BackupOrBuilder> getBackupFieldBuilder() { if (backupBuilder_ == null) { - backupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup, - com.google.cloud.gkebackup.v1.Backup.Builder, - com.google.cloud.gkebackup.v1.BackupOrBuilder>( - getBackup(), getParentForChildren(), isClean()); + backupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.Backup, com.google.cloud.gkebackup.v1.Backup.Builder, com.google.cloud.gkebackup.v1.BackupOrBuilder>( + getBackup(), + getParentForChildren(), + isClean()); backup_ = null; } return backupBuilder_; @@ -817,13 +727,8 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() { 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_; /** - * - * *
      * This is used to specify the fields to be overwritten in the
      * Backup targeted for update. The values for each of these
@@ -836,15 +741,12 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * This is used to specify the fields to be overwritten in the
      * Backup targeted for update. The values for each of these
@@ -857,21 +759,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @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(); } } /** - * - * *
      * This is used to specify the fields to be overwritten in the
      * Backup targeted for update. The values for each of these
@@ -899,8 +796,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Backup targeted for update. The values for each of these
@@ -914,7 +809,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -925,8 +821,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Backup targeted for update. The values for each of these
@@ -944,7 +838,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -956,8 +850,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Backup targeted for update. The values for each of these
@@ -983,8 +875,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Backup targeted for update. The values for each of these
@@ -999,13 +889,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Backup targeted for update. The values for each of these
@@ -1023,14 +911,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_;
       }
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Backup targeted for update. The values for each of these
@@ -1045,24 +930,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     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);
     }
 
@@ -1072,12 +954,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.UpdateBackupRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.UpdateBackupRequest)
   private static final com.google.cloud.gkebackup.v1.UpdateBackupRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.UpdateBackupRequest();
   }
@@ -1086,16 +968,16 @@ public static com.google.cloud.gkebackup.v1.UpdateBackupRequest getDefaultInstan
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateBackupRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateBackupRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateBackupRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateBackupRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1110,4 +992,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.gkebackup.v1.UpdateBackupRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequestOrBuilder.java
similarity index 79%
rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequestOrBuilder.java
index 619a2a8..719c3ed 100644
--- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequestOrBuilder.java
@@ -1,72 +1,43 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkebackup/v1/gkebackup.proto
 
 package com.google.cloud.gkebackup.v1;
 
-public interface UpdateBackupRequestOrBuilder
-    extends
+public interface UpdateBackupRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.UpdateBackupRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. A new version of the Backup resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ boolean hasBackup(); /** - * - * *
    * Required. A new version of the Backup resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ com.google.cloud.gkebackup.v1.Backup getBackup(); /** - * - * *
    * Required. A new version of the Backup resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder(); /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * Backup targeted for update. The values for each of these
@@ -79,13 +50,10 @@ public interface UpdateBackupRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * Backup targeted for update. The values for each of these
@@ -98,13 +66,10 @@ public interface UpdateBackupRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * Backup targeted for update. The values for each of these
diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequest.java
similarity index 71%
rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequest.java
index 516e469..5f98a47 100644
--- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequest.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkebackup/v1/gkebackup.proto
 
 package com.google.cloud.gkebackup.v1;
 
 /**
- *
- *
  * 
  * Request message for UpdateRestorePlan.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.UpdateRestorePlanRequest} */ -public final class UpdateRestorePlanRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateRestorePlanRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.UpdateRestorePlanRequest) UpdateRestorePlanRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateRestorePlanRequest.newBuilder() to construct. private UpdateRestorePlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateRestorePlanRequest() {} + private UpdateRestorePlanRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateRestorePlanRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateRestorePlanRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateRestorePlanRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.gkebackup.v1.RestorePlan.Builder subBuilder = null; - if (restorePlan_ != null) { - subBuilder = restorePlan_.toBuilder(); - } - restorePlan_ = - input.readMessage( - com.google.cloud.gkebackup.v1.RestorePlan.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(restorePlan_); - restorePlan_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.gkebackup.v1.RestorePlan.Builder subBuilder = null; + if (restorePlan_ != null) { + subBuilder = restorePlan_.toBuilder(); + } + restorePlan_ = input.readMessage(com.google.cloud.gkebackup.v1.RestorePlan.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(restorePlan_); + restorePlan_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,42 +92,35 @@ private UpdateRestorePlanRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.class, - com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.class, com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.Builder.class); } public static final int RESTORE_PLAN_FIELD_NUMBER = 1; private com.google.cloud.gkebackup.v1.RestorePlan restorePlan_; /** - * - * *
    * Required. A new version of the RestorePlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the restorePlan field is set. */ @java.lang.Override @@ -156,36 +128,25 @@ public boolean hasRestorePlan() { return restorePlan_ != null; } /** - * - * *
    * Required. A new version of the RestorePlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The restorePlan. */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestorePlan getRestorePlan() { - return restorePlan_ == null - ? com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() - : restorePlan_; + return restorePlan_ == null ? com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() : restorePlan_; } /** - * - * *
    * Required. A new version of the RestorePlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilder() { @@ -195,8 +156,6 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilde public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * RestorePlan targeted for update. The values for each of these
@@ -209,7 +168,6 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilde
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -217,8 +175,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * RestorePlan targeted for update. The values for each of these
@@ -231,7 +187,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -239,8 +194,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * RestorePlan targeted for update. The values for each of these
@@ -260,7 +213,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -272,7 +224,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (restorePlan_ != null) {
       output.writeMessage(1, getRestorePlan());
     }
@@ -289,10 +242,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (restorePlan_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRestorePlan());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getRestorePlan());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -302,21 +257,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest other =
-        (com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest) obj;
+    com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest other = (com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest) obj;
 
     if (hasRestorePlan() != other.hasRestorePlan()) return false;
     if (hasRestorePlan()) {
-      if (!getRestorePlan().equals(other.getRestorePlan())) return false;
+      if (!getRestorePlan()
+          .equals(other.getRestorePlan())) 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -343,127 +299,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 UpdateRestorePlan.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.UpdateRestorePlanRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.UpdateRestorePlanRequest) com.google.cloud.gkebackup.v1.UpdateRestorePlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.class, - com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.class, com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.newBuilder() @@ -471,15 +417,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -499,9 +446,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor; } @java.lang.Override @@ -520,8 +467,7 @@ public com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest buildPartial() { - com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest result = - new com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest(this); + com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest result = new com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest(this); if (restorePlanBuilder_ == null) { result.restorePlan_ = restorePlan_; } else { @@ -540,39 +486,38 @@ public com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest 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.cloud.gkebackup.v1.UpdateRestorePlanRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest)other); } else { super.mergeFrom(other); return this; @@ -580,8 +525,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest other) { - if (other == com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.getDefaultInstance()) return this; if (other.hasRestorePlan()) { mergeRestorePlan(other.getRestorePlan()); } @@ -607,8 +551,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -620,61 +563,42 @@ public Builder mergeFrom( private com.google.cloud.gkebackup.v1.RestorePlan restorePlan_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestorePlan, - com.google.cloud.gkebackup.v1.RestorePlan.Builder, - com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> - restorePlanBuilder_; + com.google.cloud.gkebackup.v1.RestorePlan, com.google.cloud.gkebackup.v1.RestorePlan.Builder, com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> restorePlanBuilder_; /** - * - * *
      * Required. A new version of the RestorePlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the restorePlan field is set. */ public boolean hasRestorePlan() { return restorePlanBuilder_ != null || restorePlan_ != null; } /** - * - * *
      * Required. A new version of the RestorePlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The restorePlan. */ public com.google.cloud.gkebackup.v1.RestorePlan getRestorePlan() { if (restorePlanBuilder_ == null) { - return restorePlan_ == null - ? com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() - : restorePlan_; + return restorePlan_ == null ? com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() : restorePlan_; } else { return restorePlanBuilder_.getMessage(); } } /** - * - * *
      * Required. A new version of the RestorePlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRestorePlan(com.google.cloud.gkebackup.v1.RestorePlan value) { if (restorePlanBuilder_ == null) { @@ -690,16 +614,12 @@ public Builder setRestorePlan(com.google.cloud.gkebackup.v1.RestorePlan value) { return this; } /** - * - * *
      * Required. A new version of the RestorePlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRestorePlan( com.google.cloud.gkebackup.v1.RestorePlan.Builder builderForValue) { @@ -713,24 +633,18 @@ public Builder setRestorePlan( return this; } /** - * - * *
      * Required. A new version of the RestorePlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeRestorePlan(com.google.cloud.gkebackup.v1.RestorePlan value) { if (restorePlanBuilder_ == null) { if (restorePlan_ != null) { restorePlan_ = - com.google.cloud.gkebackup.v1.RestorePlan.newBuilder(restorePlan_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkebackup.v1.RestorePlan.newBuilder(restorePlan_).mergeFrom(value).buildPartial(); } else { restorePlan_ = value; } @@ -742,16 +656,12 @@ public Builder mergeRestorePlan(com.google.cloud.gkebackup.v1.RestorePlan value) return this; } /** - * - * *
      * Required. A new version of the RestorePlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRestorePlan() { if (restorePlanBuilder_ == null) { @@ -765,67 +675,51 @@ public Builder clearRestorePlan() { return this; } /** - * - * *
      * Required. A new version of the RestorePlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkebackup.v1.RestorePlan.Builder getRestorePlanBuilder() { - + onChanged(); return getRestorePlanFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A new version of the RestorePlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilder() { if (restorePlanBuilder_ != null) { return restorePlanBuilder_.getMessageOrBuilder(); } else { - return restorePlan_ == null - ? com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() - : restorePlan_; + return restorePlan_ == null ? + com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() : restorePlan_; } } /** - * - * *
      * Required. A new version of the RestorePlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestorePlan, - com.google.cloud.gkebackup.v1.RestorePlan.Builder, - com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> + com.google.cloud.gkebackup.v1.RestorePlan, com.google.cloud.gkebackup.v1.RestorePlan.Builder, com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> getRestorePlanFieldBuilder() { if (restorePlanBuilder_ == null) { - restorePlanBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestorePlan, - com.google.cloud.gkebackup.v1.RestorePlan.Builder, - com.google.cloud.gkebackup.v1.RestorePlanOrBuilder>( - getRestorePlan(), getParentForChildren(), isClean()); + restorePlanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestorePlan, com.google.cloud.gkebackup.v1.RestorePlan.Builder, com.google.cloud.gkebackup.v1.RestorePlanOrBuilder>( + getRestorePlan(), + getParentForChildren(), + isClean()); restorePlan_ = null; } return restorePlanBuilder_; @@ -833,13 +727,8 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilde 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_; /** - * - * *
      * This is used to specify the fields to be overwritten in the
      * RestorePlan targeted for update. The values for each of these
@@ -852,15 +741,12 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilde
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * This is used to specify the fields to be overwritten in the
      * RestorePlan targeted for update. The values for each of these
@@ -873,21 +759,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @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(); } } /** - * - * *
      * This is used to specify the fields to be overwritten in the
      * RestorePlan targeted for update. The values for each of these
@@ -915,8 +796,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * RestorePlan targeted for update. The values for each of these
@@ -930,7 +809,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -941,8 +821,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * RestorePlan targeted for update. The values for each of these
@@ -960,7 +838,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -972,8 +850,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * RestorePlan targeted for update. The values for each of these
@@ -999,8 +875,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * RestorePlan targeted for update. The values for each of these
@@ -1015,13 +889,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * RestorePlan targeted for update. The values for each of these
@@ -1039,14 +911,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_;
       }
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * RestorePlan targeted for update. The values for each of these
@@ -1061,24 +930,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     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);
     }
 
@@ -1088,12 +954,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.UpdateRestorePlanRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.UpdateRestorePlanRequest)
   private static final com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest();
   }
@@ -1102,16 +968,16 @@ public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateRestorePlanRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateRestorePlanRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateRestorePlanRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateRestorePlanRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1126,4 +992,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequestOrBuilder.java
similarity index 74%
rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequestOrBuilder.java
index 163e86f..abbfb5e 100644
--- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequestOrBuilder.java
@@ -1,75 +1,43 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkebackup/v1/gkebackup.proto
 
 package com.google.cloud.gkebackup.v1;
 
-public interface UpdateRestorePlanRequestOrBuilder
-    extends
+public interface UpdateRestorePlanRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.UpdateRestorePlanRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. A new version of the RestorePlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the restorePlan field is set. */ boolean hasRestorePlan(); /** - * - * *
    * Required. A new version of the RestorePlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The restorePlan. */ com.google.cloud.gkebackup.v1.RestorePlan getRestorePlan(); /** - * - * *
    * Required. A new version of the RestorePlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilder(); /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * RestorePlan targeted for update. The values for each of these
@@ -82,13 +50,10 @@ public interface UpdateRestorePlanRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * RestorePlan targeted for update. The values for each of these
@@ -101,13 +66,10 @@ public interface UpdateRestorePlanRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * RestorePlan targeted for update. The values for each of these
diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequest.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequest.java
similarity index 72%
rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequest.java
index 6303e7b..745afd2 100644
--- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequest.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkebackup/v1/gkebackup.proto
 
 package com.google.cloud.gkebackup.v1;
 
 /**
- *
- *
  * 
  * Request message for UpdateRestore.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.UpdateRestoreRequest} */ -public final class UpdateRestoreRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateRestoreRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.UpdateRestoreRequest) UpdateRestoreRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateRestoreRequest.newBuilder() to construct. private UpdateRestoreRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateRestoreRequest() {} + private UpdateRestoreRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateRestoreRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateRestoreRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateRestoreRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.gkebackup.v1.Restore.Builder subBuilder = null; - if (restore_ != null) { - subBuilder = restore_.toBuilder(); - } - restore_ = - input.readMessage( - com.google.cloud.gkebackup.v1.Restore.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(restore_); - restore_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.gkebackup.v1.Restore.Builder subBuilder = null; + if (restore_ != null) { + subBuilder = restore_.toBuilder(); + } + restore_ = input.readMessage(com.google.cloud.gkebackup.v1.Restore.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(restore_); + restore_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,41 +92,35 @@ private UpdateRestoreRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.UpdateRestoreRequest.class, - com.google.cloud.gkebackup.v1.UpdateRestoreRequest.Builder.class); + com.google.cloud.gkebackup.v1.UpdateRestoreRequest.class, com.google.cloud.gkebackup.v1.UpdateRestoreRequest.Builder.class); } public static final int RESTORE_FIELD_NUMBER = 1; private com.google.cloud.gkebackup.v1.Restore restore_; /** - * - * *
    * Required. A new version of the Restore resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the restore field is set. */ @java.lang.Override @@ -155,16 +128,12 @@ public boolean hasRestore() { return restore_ != null; } /** - * - * *
    * Required. A new version of the Restore resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The restore. */ @java.lang.Override @@ -172,15 +141,12 @@ public com.google.cloud.gkebackup.v1.Restore getRestore() { return restore_ == null ? com.google.cloud.gkebackup.v1.Restore.getDefaultInstance() : restore_; } /** - * - * *
    * Required. A new version of the Restore resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() { @@ -190,8 +156,6 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * Restore targeted for update. The values for each of these
@@ -204,7 +168,6 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -212,8 +175,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * Restore targeted for update. The values for each of these
@@ -226,7 +187,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -234,8 +194,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * Restore targeted for update. The values for each of these
@@ -255,7 +213,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -267,7 +224,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (restore_ != null) {
       output.writeMessage(1, getRestore());
     }
@@ -284,10 +242,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (restore_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRestore());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getRestore());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -297,21 +257,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.gkebackup.v1.UpdateRestoreRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkebackup.v1.UpdateRestoreRequest other =
-        (com.google.cloud.gkebackup.v1.UpdateRestoreRequest) obj;
+    com.google.cloud.gkebackup.v1.UpdateRestoreRequest other = (com.google.cloud.gkebackup.v1.UpdateRestoreRequest) obj;
 
     if (hasRestore() != other.hasRestore()) return false;
     if (hasRestore()) {
-      if (!getRestore().equals(other.getRestore())) return false;
+      if (!getRestore()
+          .equals(other.getRestore())) 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -338,126 +299,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.gkebackup.v1.UpdateRestoreRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 UpdateRestore.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.UpdateRestoreRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.UpdateRestoreRequest) com.google.cloud.gkebackup.v1.UpdateRestoreRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.UpdateRestoreRequest.class, - com.google.cloud.gkebackup.v1.UpdateRestoreRequest.Builder.class); + com.google.cloud.gkebackup.v1.UpdateRestoreRequest.class, com.google.cloud.gkebackup.v1.UpdateRestoreRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.UpdateRestoreRequest.newBuilder() @@ -465,15 +417,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -493,9 +446,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto - .internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor; } @java.lang.Override @@ -514,8 +467,7 @@ public com.google.cloud.gkebackup.v1.UpdateRestoreRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.UpdateRestoreRequest buildPartial() { - com.google.cloud.gkebackup.v1.UpdateRestoreRequest result = - new com.google.cloud.gkebackup.v1.UpdateRestoreRequest(this); + com.google.cloud.gkebackup.v1.UpdateRestoreRequest result = new com.google.cloud.gkebackup.v1.UpdateRestoreRequest(this); if (restoreBuilder_ == null) { result.restore_ = restore_; } else { @@ -534,39 +486,38 @@ public com.google.cloud.gkebackup.v1.UpdateRestoreRequest 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.cloud.gkebackup.v1.UpdateRestoreRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.UpdateRestoreRequest) other); + return mergeFrom((com.google.cloud.gkebackup.v1.UpdateRestoreRequest)other); } else { super.mergeFrom(other); return this; @@ -574,8 +525,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.UpdateRestoreRequest other) { - if (other == com.google.cloud.gkebackup.v1.UpdateRestoreRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkebackup.v1.UpdateRestoreRequest.getDefaultInstance()) return this; if (other.hasRestore()) { mergeRestore(other.getRestore()); } @@ -601,8 +551,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkebackup.v1.UpdateRestoreRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkebackup.v1.UpdateRestoreRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -614,61 +563,42 @@ public Builder mergeFrom( private com.google.cloud.gkebackup.v1.Restore restore_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Restore, - com.google.cloud.gkebackup.v1.Restore.Builder, - com.google.cloud.gkebackup.v1.RestoreOrBuilder> - restoreBuilder_; + com.google.cloud.gkebackup.v1.Restore, com.google.cloud.gkebackup.v1.Restore.Builder, com.google.cloud.gkebackup.v1.RestoreOrBuilder> restoreBuilder_; /** - * - * *
      * Required. A new version of the Restore resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the restore field is set. */ public boolean hasRestore() { return restoreBuilder_ != null || restore_ != null; } /** - * - * *
      * Required. A new version of the Restore resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The restore. */ public com.google.cloud.gkebackup.v1.Restore getRestore() { if (restoreBuilder_ == null) { - return restore_ == null - ? com.google.cloud.gkebackup.v1.Restore.getDefaultInstance() - : restore_; + return restore_ == null ? com.google.cloud.gkebackup.v1.Restore.getDefaultInstance() : restore_; } else { return restoreBuilder_.getMessage(); } } /** - * - * *
      * Required. A new version of the Restore resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRestore(com.google.cloud.gkebackup.v1.Restore value) { if (restoreBuilder_ == null) { @@ -684,18 +614,15 @@ public Builder setRestore(com.google.cloud.gkebackup.v1.Restore value) { return this; } /** - * - * *
      * Required. A new version of the Restore resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setRestore(com.google.cloud.gkebackup.v1.Restore.Builder builderForValue) { + public Builder setRestore( + com.google.cloud.gkebackup.v1.Restore.Builder builderForValue) { if (restoreBuilder_ == null) { restore_ = builderForValue.build(); onChanged(); @@ -706,24 +633,18 @@ public Builder setRestore(com.google.cloud.gkebackup.v1.Restore.Builder builderF return this; } /** - * - * *
      * Required. A new version of the Restore resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeRestore(com.google.cloud.gkebackup.v1.Restore value) { if (restoreBuilder_ == null) { if (restore_ != null) { restore_ = - com.google.cloud.gkebackup.v1.Restore.newBuilder(restore_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkebackup.v1.Restore.newBuilder(restore_).mergeFrom(value).buildPartial(); } else { restore_ = value; } @@ -735,16 +656,12 @@ public Builder mergeRestore(com.google.cloud.gkebackup.v1.Restore value) { return this; } /** - * - * *
      * Required. A new version of the Restore resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRestore() { if (restoreBuilder_ == null) { @@ -758,67 +675,51 @@ public Builder clearRestore() { return this; } /** - * - * *
      * Required. A new version of the Restore resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkebackup.v1.Restore.Builder getRestoreBuilder() { - + onChanged(); return getRestoreFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A new version of the Restore resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() { if (restoreBuilder_ != null) { return restoreBuilder_.getMessageOrBuilder(); } else { - return restore_ == null - ? com.google.cloud.gkebackup.v1.Restore.getDefaultInstance() - : restore_; + return restore_ == null ? + com.google.cloud.gkebackup.v1.Restore.getDefaultInstance() : restore_; } } /** - * - * *
      * Required. A new version of the Restore resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Restore, - com.google.cloud.gkebackup.v1.Restore.Builder, - com.google.cloud.gkebackup.v1.RestoreOrBuilder> + com.google.cloud.gkebackup.v1.Restore, com.google.cloud.gkebackup.v1.Restore.Builder, com.google.cloud.gkebackup.v1.RestoreOrBuilder> getRestoreFieldBuilder() { if (restoreBuilder_ == null) { - restoreBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Restore, - com.google.cloud.gkebackup.v1.Restore.Builder, - com.google.cloud.gkebackup.v1.RestoreOrBuilder>( - getRestore(), getParentForChildren(), isClean()); + restoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.Restore, com.google.cloud.gkebackup.v1.Restore.Builder, com.google.cloud.gkebackup.v1.RestoreOrBuilder>( + getRestore(), + getParentForChildren(), + isClean()); restore_ = null; } return restoreBuilder_; @@ -826,13 +727,8 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() { 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_; /** - * - * *
      * This is used to specify the fields to be overwritten in the
      * Restore targeted for update. The values for each of these
@@ -845,15 +741,12 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * This is used to specify the fields to be overwritten in the
      * Restore targeted for update. The values for each of these
@@ -866,21 +759,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @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(); } } /** - * - * *
      * This is used to specify the fields to be overwritten in the
      * Restore targeted for update. The values for each of these
@@ -908,8 +796,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Restore targeted for update. The values for each of these
@@ -923,7 +809,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -934,8 +821,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Restore targeted for update. The values for each of these
@@ -953,7 +838,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -965,8 +850,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Restore targeted for update. The values for each of these
@@ -992,8 +875,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Restore targeted for update. The values for each of these
@@ -1008,13 +889,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Restore targeted for update. The values for each of these
@@ -1032,14 +911,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_;
       }
     }
     /**
-     *
-     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Restore targeted for update. The values for each of these
@@ -1054,24 +930,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     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);
     }
 
@@ -1081,12 +954,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.UpdateRestoreRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.UpdateRestoreRequest)
   private static final com.google.cloud.gkebackup.v1.UpdateRestoreRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.UpdateRestoreRequest();
   }
@@ -1095,16 +968,16 @@ public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateRestoreRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateRestoreRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateRestoreRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateRestoreRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1119,4 +992,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.gkebackup.v1.UpdateRestoreRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequestOrBuilder.java
similarity index 79%
rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequestOrBuilder.java
index a713c02..4c1d807 100644
--- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequestOrBuilder.java
@@ -1,72 +1,43 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkebackup/v1/gkebackup.proto
 
 package com.google.cloud.gkebackup.v1;
 
-public interface UpdateRestoreRequestOrBuilder
-    extends
+public interface UpdateRestoreRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.UpdateRestoreRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. A new version of the Restore resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the restore field is set. */ boolean hasRestore(); /** - * - * *
    * Required. A new version of the Restore resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The restore. */ com.google.cloud.gkebackup.v1.Restore getRestore(); /** - * - * *
    * Required. A new version of the Restore resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder(); /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * Restore targeted for update. The values for each of these
@@ -79,13 +50,10 @@ public interface UpdateRestoreRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * Restore targeted for update. The values for each of these
@@ -98,13 +66,10 @@ public interface UpdateRestoreRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * This is used to specify the fields to be overwritten in the
    * Restore targeted for update. The values for each of these
diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackup.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackup.java
similarity index 69%
rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackup.java
rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackup.java
index 294c8a2..406d1fd 100644
--- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackup.java
+++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackup.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkebackup/v1/volume.proto
 
 package com.google.cloud.gkebackup.v1;
 
 /**
- *
- *
  * 
  * Represents the backup of a specific persistent volume as a component of a
  * Backup - both the record of the operation and a pointer to the underlying
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.gkebackup.v1.VolumeBackup}
  */
-public final class VolumeBackup extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class VolumeBackup extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.VolumeBackup)
     VolumeBackupOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use VolumeBackup.newBuilder() to construct.
   private VolumeBackup(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private VolumeBackup() {
     name_ = "";
     uid_ = "";
@@ -52,15 +34,16 @@ private VolumeBackup() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new VolumeBackup();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private VolumeBackup(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -79,133 +62,117 @@ private VolumeBackup(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              uid_ = s;
-              break;
-            }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            uid_ = s;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 42:
-            {
-              com.google.cloud.gkebackup.v1.NamespacedName.Builder subBuilder = null;
-              if (sourcePvc_ != null) {
-                subBuilder = sourcePvc_.toBuilder();
-              }
-              sourcePvc_ =
-                  input.readMessage(
-                      com.google.cloud.gkebackup.v1.NamespacedName.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(sourcePvc_);
-                sourcePvc_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              volumeBackupHandle_ = s;
-              break;
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
+            }
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 56:
-            {
-              int rawValue = input.readEnum();
 
-              format_ = rawValue;
-              break;
+            break;
+          }
+          case 42: {
+            com.google.cloud.gkebackup.v1.NamespacedName.Builder subBuilder = null;
+            if (sourcePvc_ != null) {
+              subBuilder = sourcePvc_.toBuilder();
             }
-          case 64:
-            {
-              storageBytes_ = input.readInt64();
-              break;
+            sourcePvc_ = input.readMessage(com.google.cloud.gkebackup.v1.NamespacedName.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(sourcePvc_);
+              sourcePvc_ = subBuilder.buildPartial();
             }
-          case 72:
-            {
-              diskSizeBytes_ = input.readInt64();
-              break;
+
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            volumeBackupHandle_ = s;
+            break;
+          }
+          case 56: {
+            int rawValue = input.readEnum();
+
+            format_ = rawValue;
+            break;
+          }
+          case 64: {
+
+            storageBytes_ = input.readInt64();
+            break;
+          }
+          case 72: {
+
+            diskSizeBytes_ = input.readInt64();
+            break;
+          }
+          case 82: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (completeTime_ != null) {
+              subBuilder = completeTime_.toBuilder();
             }
-          case 82:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (completeTime_ != null) {
-                subBuilder = completeTime_.toBuilder();
-              }
-              completeTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(completeTime_);
-                completeTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            completeTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(completeTime_);
+              completeTime_ = subBuilder.buildPartial();
             }
-          case 88:
-            {
-              int rawValue = input.readEnum();
 
-              state_ = rawValue;
-              break;
-            }
-          case 98:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            break;
+          }
+          case 88: {
+            int rawValue = input.readEnum();
 
-              stateMessage_ = s;
-              break;
-            }
-          case 106:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            state_ = rawValue;
+            break;
+          }
+          case 98: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              etag_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            stateMessage_ = s;
+            break;
+          }
+          case 106: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            etag_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -213,41 +180,36 @@ private VolumeBackup(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkebackup.v1.VolumeProto
-        .internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkebackup.v1.VolumeProto.internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkebackup.v1.VolumeProto
-        .internal_static_google_cloud_gkebackup_v1_VolumeBackup_fieldAccessorTable
+    return com.google.cloud.gkebackup.v1.VolumeProto.internal_static_google_cloud_gkebackup_v1_VolumeBackup_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkebackup.v1.VolumeBackup.class,
-            com.google.cloud.gkebackup.v1.VolumeBackup.Builder.class);
+            com.google.cloud.gkebackup.v1.VolumeBackup.class, com.google.cloud.gkebackup.v1.VolumeBackup.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Identifies the format used for the volume backup.
    * 
* * Protobuf enum {@code google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat} */ - public enum VolumeBackupFormat implements com.google.protobuf.ProtocolMessageEnum { + public enum VolumeBackupFormat + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value, not specified.
      * 
@@ -256,8 +218,6 @@ public enum VolumeBackupFormat implements com.google.protobuf.ProtocolMessageEnu */ VOLUME_BACKUP_FORMAT_UNSPECIFIED(0), /** - * - * *
      * Compute Engine Persistent Disk snapshot based volume backup.
      * 
@@ -269,8 +229,6 @@ public enum VolumeBackupFormat implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
      * Default value, not specified.
      * 
@@ -279,8 +237,6 @@ public enum VolumeBackupFormat implements com.google.protobuf.ProtocolMessageEnu */ public static final int VOLUME_BACKUP_FORMAT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Compute Engine Persistent Disk snapshot based volume backup.
      * 
@@ -289,6 +245,7 @@ public enum VolumeBackupFormat implements com.google.protobuf.ProtocolMessageEnu */ public static final int GCE_PERSISTENT_DISK_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -313,12 +270,9 @@ public static VolumeBackupFormat valueOf(int value) { */ public static VolumeBackupFormat forNumber(int value) { switch (value) { - case 0: - return VOLUME_BACKUP_FORMAT_UNSPECIFIED; - case 1: - return GCE_PERSISTENT_DISK; - default: - return null; + case 0: return VOLUME_BACKUP_FORMAT_UNSPECIFIED; + case 1: return GCE_PERSISTENT_DISK; + default: return null; } } @@ -326,28 +280,28 @@ public static VolumeBackupFormat forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + VolumeBackupFormat> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public VolumeBackupFormat findValueByNumber(int number) { + return VolumeBackupFormat.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public VolumeBackupFormat findValueByNumber(int number) { - return VolumeBackupFormat.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.gkebackup.v1.VolumeBackup.getDescriptor().getEnumTypes().get(0); } @@ -356,7 +310,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static VolumeBackupFormat 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; @@ -374,18 +329,15 @@ private VolumeBackupFormat(int value) { } /** - * - * *
    * The current state of a VolumeBackup
    * 
* * Protobuf enum {@code google.cloud.gkebackup.v1.VolumeBackup.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * This is an illegal state and should not be encountered.
      * 
@@ -394,8 +346,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * A volume for the backup was identified and backup process is about to
      * start.
@@ -405,8 +355,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CREATING(1),
     /**
-     *
-     *
      * 
      * The volume backup operation has begun and is in the initial "snapshot"
      * phase of the process. Any defined ProtectedApplication "pre" hooks will
@@ -418,8 +366,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     SNAPSHOTTING(2),
     /**
-     *
-     *
      * 
      * The snapshot phase of the volume backup operation has completed and
      * the snapshot is now being uploaded to backup storage.
@@ -429,8 +375,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     UPLOADING(3),
     /**
-     *
-     *
      * 
      * The volume backup operation has completed successfully.
      * 
@@ -439,8 +383,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(4), /** - * - * *
      * The volume backup operation has failed.
      * 
@@ -449,8 +391,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(5), /** - * - * *
      * This VolumeBackup resource (and its associated artifacts) is in the
      * process of being deleted.
@@ -463,8 +403,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * This is an illegal state and should not be encountered.
      * 
@@ -473,8 +411,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * A volume for the backup was identified and backup process is about to
      * start.
@@ -484,8 +420,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CREATING_VALUE = 1;
     /**
-     *
-     *
      * 
      * The volume backup operation has begun and is in the initial "snapshot"
      * phase of the process. Any defined ProtectedApplication "pre" hooks will
@@ -497,8 +431,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SNAPSHOTTING_VALUE = 2;
     /**
-     *
-     *
      * 
      * The snapshot phase of the volume backup operation has completed and
      * the snapshot is now being uploaded to backup storage.
@@ -508,8 +440,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int UPLOADING_VALUE = 3;
     /**
-     *
-     *
      * 
      * The volume backup operation has completed successfully.
      * 
@@ -518,8 +448,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 4; /** - * - * *
      * The volume backup operation has failed.
      * 
@@ -528,8 +456,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 5; /** - * - * *
      * This VolumeBackup resource (and its associated artifacts) is in the
      * process of being deleted.
@@ -539,6 +465,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DELETING_VALUE = 6;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -563,57 +490,53 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return CREATING;
-        case 2:
-          return SNAPSHOTTING;
-        case 3:
-          return UPLOADING;
-        case 4:
-          return SUCCEEDED;
-        case 5:
-          return FAILED;
-        case 6:
-          return DELETING;
-        default:
-          return null;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
-      return internalValueMap;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return CREATING;
+        case 2: return SNAPSHOTTING;
+        case 3: return UPLOADING;
+        case 4: return SUCCEEDED;
+        case 5: return FAILED;
+        case 6: return DELETING;
+        default: return null;
+      }
     }
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
+      return internalValueMap;
+    }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.gkebackup.v1.VolumeBackup.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State 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;
@@ -633,15 +556,12 @@ private State(int value) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. The full name of the VolumeBackup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -650,30 +570,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 full name of the VolumeBackup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
    * 
* * 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 { @@ -684,15 +604,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int UID_FIELD_NUMBER = 2; private volatile java.lang.Object uid_; /** - * - * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -701,30 +618,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** - * - * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -735,16 +652,12 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The timestamp when this VolumeBackup resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -752,16 +665,12 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The timestamp when this VolumeBackup resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -769,15 +678,12 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The timestamp when this VolumeBackup resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -787,16 +693,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The timestamp when this VolumeBackup resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -804,16 +706,12 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The timestamp when this VolumeBackup resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -821,15 +719,12 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The timestamp when this VolumeBackup resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -839,17 +734,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int SOURCE_PVC_FIELD_NUMBER = 5; private com.google.cloud.gkebackup.v1.NamespacedName sourcePvc_; /** - * - * *
    * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
    * was created.
    * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the sourcePvc field is set. */ @java.lang.Override @@ -857,36 +747,25 @@ public boolean hasSourcePvc() { return sourcePvc_ != null; } /** - * - * *
    * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
    * was created.
    * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourcePvc. */ @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacedName getSourcePvc() { - return sourcePvc_ == null - ? com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() - : sourcePvc_; + return sourcePvc_ == null ? com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() : sourcePvc_; } /** - * - * *
    * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
    * was created.
    * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getSourcePvcOrBuilder() { @@ -896,14 +775,11 @@ public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getSourcePvcOrBuild public static final int VOLUME_BACKUP_HANDLE_FIELD_NUMBER = 6; private volatile java.lang.Object volumeBackupHandle_; /** - * - * *
    * Output only. A storage system-specific opaque handle to the underlying volume backup.
    * 
* * string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The volumeBackupHandle. */ @java.lang.Override @@ -912,29 +788,29 @@ public java.lang.String getVolumeBackupHandle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volumeBackupHandle_ = s; return s; } } /** - * - * *
    * Output only. A storage system-specific opaque handle to the underlying volume backup.
    * 
* * string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for volumeBackupHandle. */ @java.lang.Override - public com.google.protobuf.ByteString getVolumeBackupHandleBytes() { + public com.google.protobuf.ByteString + getVolumeBackupHandleBytes() { java.lang.Object ref = volumeBackupHandle_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); volumeBackupHandle_ = b; return b; } else { @@ -945,50 +821,33 @@ public com.google.protobuf.ByteString getVolumeBackupHandleBytes() { public static final int FORMAT_FIELD_NUMBER = 7; private int format_; /** - * - * *
    * Output only. The format used for the volume backup.
    * 
* - * - * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for format. */ - @java.lang.Override - public int getFormatValue() { + @java.lang.Override public int getFormatValue() { return format_; } /** - * - * *
    * Output only. The format used for the volume backup.
    * 
* - * - * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The format. */ - @java.lang.Override - public com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat getFormat() { + @java.lang.Override public com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat getFormat() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat result = - com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat.valueOf(format_); - return result == null - ? com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat.UNRECOGNIZED - : result; + com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat result = com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat.valueOf(format_); + return result == null ? com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat.UNRECOGNIZED : result; } public static final int STORAGE_BYTES_FIELD_NUMBER = 8; private long storageBytes_; /** - * - * *
    * Output only. The aggregate size of the underlying artifacts associated with this
    * VolumeBackup in the backup storage. This may change over time when
@@ -998,7 +857,6 @@ public com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat getFormat()
    * 
* * int64 storage_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The storageBytes. */ @java.lang.Override @@ -1009,14 +867,11 @@ public long getStorageBytes() { public static final int DISK_SIZE_BYTES_FIELD_NUMBER = 9; private long diskSizeBytes_; /** - * - * *
    * Output only. The minimum size of the disk to which this VolumeBackup can be restored.
    * 
* * int64 disk_size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The diskSizeBytes. */ @java.lang.Override @@ -1027,17 +882,12 @@ public long getDiskSizeBytes() { public static final int COMPLETE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp completeTime_; /** - * - * *
    * Output only. The timestamp when the associated underlying volume backup
    * operation completed.
    * 
* - * - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the completeTime field is set. */ @java.lang.Override @@ -1045,36 +895,25 @@ public boolean hasCompleteTime() { return completeTime_ != null; } /** - * - * *
    * Output only. The timestamp when the associated underlying volume backup
    * operation completed.
    * 
* - * - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The completeTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCompleteTime() { - return completeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : completeTime_; + return completeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; } /** - * - * *
    * Output only. The timestamp when the associated underlying volume backup
    * operation completed.
    * 
* - * - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { @@ -1084,55 +923,39 @@ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 11; private int state_; /** - * - * *
    * Output only. The current state of this VolumeBackup.
    * 
* - * - * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The current state of this VolumeBackup.
    * 
* - * - * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.gkebackup.v1.VolumeBackup.State getState() { + @java.lang.Override public com.google.cloud.gkebackup.v1.VolumeBackup.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.VolumeBackup.State result = - com.google.cloud.gkebackup.v1.VolumeBackup.State.valueOf(state_); + com.google.cloud.gkebackup.v1.VolumeBackup.State result = com.google.cloud.gkebackup.v1.VolumeBackup.State.valueOf(state_); return result == null ? com.google.cloud.gkebackup.v1.VolumeBackup.State.UNRECOGNIZED : result; } public static final int STATE_MESSAGE_FIELD_NUMBER = 12; private volatile java.lang.Object stateMessage_; /** - * - * *
    * Output only. A human readable message explaining why the VolumeBackup is in its current
    * state.
    * 
* * string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stateMessage. */ @java.lang.Override @@ -1141,30 +964,30 @@ public java.lang.String getStateMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; } } /** - * - * *
    * Output only. A human readable message explaining why the VolumeBackup is in its current
    * state.
    * 
* * string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stateMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStateMessageBytes() { + public com.google.protobuf.ByteString + getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -1175,8 +998,6 @@ public com.google.protobuf.ByteString getStateMessageBytes() { public static final int ETAG_FIELD_NUMBER = 13; private volatile java.lang.Object etag_; /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a volume backup from overwriting each
@@ -1186,7 +1007,6 @@ public com.google.protobuf.ByteString getStateMessageBytes() {
    * 
* * string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ @java.lang.Override @@ -1195,15 +1015,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; } } /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a volume backup from overwriting each
@@ -1213,15 +1032,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1230,7 +1050,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1242,7 +1061,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1261,10 +1081,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volumeBackupHandle_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, volumeBackupHandle_); } - if (format_ - != com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat - .VOLUME_BACKUP_FORMAT_UNSPECIFIED - .getNumber()) { + if (format_ != com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat.VOLUME_BACKUP_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(7, format_); } if (storageBytes_ != 0L) { @@ -1301,34 +1118,39 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateTime()); } if (sourcePvc_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSourcePvc()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSourcePvc()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volumeBackupHandle_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, volumeBackupHandle_); } - if (format_ - != com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat - .VOLUME_BACKUP_FORMAT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, format_); + if (format_ != com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat.VOLUME_BACKUP_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, format_); } if (storageBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, storageBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, storageBytes_); } if (diskSizeBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, diskSizeBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, diskSizeBytes_); } if (completeTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCompleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getCompleteTime()); } if (state_ != com.google.cloud.gkebackup.v1.VolumeBackup.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, stateMessage_); @@ -1344,39 +1166,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.cloud.gkebackup.v1.VolumeBackup)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.VolumeBackup other = - (com.google.cloud.gkebackup.v1.VolumeBackup) obj; + com.google.cloud.gkebackup.v1.VolumeBackup other = (com.google.cloud.gkebackup.v1.VolumeBackup) obj; - if (!getName().equals(other.getName())) return false; - if (!getUid().equals(other.getUid())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUid() + .equals(other.getUid())) 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 (hasSourcePvc() != other.hasSourcePvc()) return false; if (hasSourcePvc()) { - if (!getSourcePvc().equals(other.getSourcePvc())) return false; + if (!getSourcePvc() + .equals(other.getSourcePvc())) return false; } - if (!getVolumeBackupHandle().equals(other.getVolumeBackupHandle())) return false; + if (!getVolumeBackupHandle() + .equals(other.getVolumeBackupHandle())) return false; if (format_ != other.format_) return false; - if (getStorageBytes() != other.getStorageBytes()) return false; - if (getDiskSizeBytes() != other.getDiskSizeBytes()) return false; + if (getStorageBytes() + != other.getStorageBytes()) return false; + if (getDiskSizeBytes() + != other.getDiskSizeBytes()) return false; if (hasCompleteTime() != other.hasCompleteTime()) return false; if (hasCompleteTime()) { - if (!getCompleteTime().equals(other.getCompleteTime())) return false; + if (!getCompleteTime() + .equals(other.getCompleteTime())) return false; } if (state_ != other.state_) return false; - if (!getStateMessage().equals(other.getStateMessage())) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getStateMessage() + .equals(other.getStateMessage())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1409,9 +1241,11 @@ public int hashCode() { hash = (37 * hash) + FORMAT_FIELD_NUMBER; hash = (53 * hash) + format_; hash = (37 * hash) + STORAGE_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStorageBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStorageBytes()); hash = (37 * hash) + DISK_SIZE_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDiskSizeBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDiskSizeBytes()); if (hasCompleteTime()) { hash = (37 * hash) + COMPLETE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCompleteTime().hashCode(); @@ -1427,104 +1261,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.VolumeBackup parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.VolumeBackup parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.VolumeBackup parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.VolumeBackup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 backup of a specific persistent volume as a component of a
    * Backup - both the record of the operation and a pointer to the underlying
@@ -1534,23 +1361,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.VolumeBackup}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.VolumeBackup)
       com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkebackup.v1.VolumeProto
-          .internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkebackup.v1.VolumeProto.internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkebackup.v1.VolumeProto
-          .internal_static_google_cloud_gkebackup_v1_VolumeBackup_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.VolumeProto.internal_static_google_cloud_gkebackup_v1_VolumeBackup_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.VolumeBackup.class,
-              com.google.cloud.gkebackup.v1.VolumeBackup.Builder.class);
+              com.google.cloud.gkebackup.v1.VolumeBackup.class, com.google.cloud.gkebackup.v1.VolumeBackup.Builder.class);
     }
 
     // Construct using com.google.cloud.gkebackup.v1.VolumeBackup.newBuilder()
@@ -1558,15 +1383,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1616,9 +1442,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkebackup.v1.VolumeProto
-          .internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkebackup.v1.VolumeProto.internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor;
     }
 
     @java.lang.Override
@@ -1637,8 +1463,7 @@ public com.google.cloud.gkebackup.v1.VolumeBackup build() {
 
     @java.lang.Override
     public com.google.cloud.gkebackup.v1.VolumeBackup buildPartial() {
-      com.google.cloud.gkebackup.v1.VolumeBackup result =
-          new com.google.cloud.gkebackup.v1.VolumeBackup(this);
+      com.google.cloud.gkebackup.v1.VolumeBackup result = new com.google.cloud.gkebackup.v1.VolumeBackup(this);
       result.name_ = name_;
       result.uid_ = uid_;
       if (createTimeBuilder_ == null) {
@@ -1676,39 +1501,38 @@ public com.google.cloud.gkebackup.v1.VolumeBackup 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.cloud.gkebackup.v1.VolumeBackup) {
-        return mergeFrom((com.google.cloud.gkebackup.v1.VolumeBackup) other);
+        return mergeFrom((com.google.cloud.gkebackup.v1.VolumeBackup)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1792,21 +1616,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The full name of the VolumeBackup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
      * 
* * 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; @@ -1815,22 +1637,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The full name of the VolumeBackup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
      * 
* * 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 { @@ -1838,64 +1659,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The full name of the VolumeBackup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The full name of the VolumeBackup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The full name of the VolumeBackup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1903,21 +1717,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -1926,22 +1738,21 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -1949,64 +1760,57 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { + public Builder setUid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { + public Builder setUidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); return this; @@ -2014,61 +1818,42 @@ public Builder setUidBytes(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 timestamp when this VolumeBackup resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The timestamp when this VolumeBackup resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when this VolumeBackup resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2084,18 +1869,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this VolumeBackup resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2106,22 +1888,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when this VolumeBackup resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2133,16 +1911,12 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this VolumeBackup resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2156,67 +1930,51 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp when this VolumeBackup resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when this VolumeBackup resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The timestamp when this VolumeBackup resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2224,61 +1982,42 @@ 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 timestamp when this VolumeBackup resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The timestamp when this VolumeBackup resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this VolumeBackup resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2294,18 +2033,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this VolumeBackup resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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(); onChanged(); @@ -2316,22 +2052,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when this VolumeBackup resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2343,16 +2075,12 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this VolumeBackup resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2366,67 +2094,51 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The timestamp when this VolumeBackup resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when this VolumeBackup resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this VolumeBackup resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp 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> 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_; @@ -2434,61 +2146,42 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.cloud.gkebackup.v1.NamespacedName sourcePvc_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedName, - com.google.cloud.gkebackup.v1.NamespacedName.Builder, - com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> - sourcePvcBuilder_; + com.google.cloud.gkebackup.v1.NamespacedName, com.google.cloud.gkebackup.v1.NamespacedName.Builder, com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> sourcePvcBuilder_; /** - * - * *
      * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
      * was created.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the sourcePvc field is set. */ public boolean hasSourcePvc() { return sourcePvcBuilder_ != null || sourcePvc_ != null; } /** - * - * *
      * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
      * was created.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourcePvc. */ public com.google.cloud.gkebackup.v1.NamespacedName getSourcePvc() { if (sourcePvcBuilder_ == null) { - return sourcePvc_ == null - ? com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() - : sourcePvc_; + return sourcePvc_ == null ? com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() : sourcePvc_; } else { return sourcePvcBuilder_.getMessage(); } } /** - * - * *
      * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
      * was created.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSourcePvc(com.google.cloud.gkebackup.v1.NamespacedName value) { if (sourcePvcBuilder_ == null) { @@ -2504,16 +2197,12 @@ public Builder setSourcePvc(com.google.cloud.gkebackup.v1.NamespacedName value) return this; } /** - * - * *
      * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
      * was created.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSourcePvc( com.google.cloud.gkebackup.v1.NamespacedName.Builder builderForValue) { @@ -2527,24 +2216,18 @@ public Builder setSourcePvc( return this; } /** - * - * *
      * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
      * was created.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSourcePvc(com.google.cloud.gkebackup.v1.NamespacedName value) { if (sourcePvcBuilder_ == null) { if (sourcePvc_ != null) { sourcePvc_ = - com.google.cloud.gkebackup.v1.NamespacedName.newBuilder(sourcePvc_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkebackup.v1.NamespacedName.newBuilder(sourcePvc_).mergeFrom(value).buildPartial(); } else { sourcePvc_ = value; } @@ -2556,16 +2239,12 @@ public Builder mergeSourcePvc(com.google.cloud.gkebackup.v1.NamespacedName value return this; } /** - * - * *
      * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
      * was created.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSourcePvc() { if (sourcePvcBuilder_ == null) { @@ -2579,67 +2258,51 @@ public Builder clearSourcePvc() { return this; } /** - * - * *
      * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
      * was created.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkebackup.v1.NamespacedName.Builder getSourcePvcBuilder() { - + onChanged(); return getSourcePvcFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
      * was created.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getSourcePvcOrBuilder() { if (sourcePvcBuilder_ != null) { return sourcePvcBuilder_.getMessageOrBuilder(); } else { - return sourcePvc_ == null - ? com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() - : sourcePvc_; + return sourcePvc_ == null ? + com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() : sourcePvc_; } } /** - * - * *
      * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
      * was created.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedName, - com.google.cloud.gkebackup.v1.NamespacedName.Builder, - com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> + com.google.cloud.gkebackup.v1.NamespacedName, com.google.cloud.gkebackup.v1.NamespacedName.Builder, com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> getSourcePvcFieldBuilder() { if (sourcePvcBuilder_ == null) { - sourcePvcBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedName, - com.google.cloud.gkebackup.v1.NamespacedName.Builder, - com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder>( - getSourcePvc(), getParentForChildren(), isClean()); + sourcePvcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.NamespacedName, com.google.cloud.gkebackup.v1.NamespacedName.Builder, com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder>( + getSourcePvc(), + getParentForChildren(), + isClean()); sourcePvc_ = null; } return sourcePvcBuilder_; @@ -2647,20 +2310,18 @@ public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getSourcePvcOrBuild private java.lang.Object volumeBackupHandle_ = ""; /** - * - * *
      * Output only. A storage system-specific opaque handle to the underlying volume backup.
      * 
* * string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The volumeBackupHandle. */ public java.lang.String getVolumeBackupHandle() { java.lang.Object ref = volumeBackupHandle_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volumeBackupHandle_ = s; return s; @@ -2669,21 +2330,20 @@ public java.lang.String getVolumeBackupHandle() { } } /** - * - * *
      * Output only. A storage system-specific opaque handle to the underlying volume backup.
      * 
* * string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for volumeBackupHandle. */ - public com.google.protobuf.ByteString getVolumeBackupHandleBytes() { + public com.google.protobuf.ByteString + getVolumeBackupHandleBytes() { java.lang.Object ref = volumeBackupHandle_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); volumeBackupHandle_ = b; return b; } else { @@ -2691,61 +2351,54 @@ public com.google.protobuf.ByteString getVolumeBackupHandleBytes() { } } /** - * - * *
      * Output only. A storage system-specific opaque handle to the underlying volume backup.
      * 
* * string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The volumeBackupHandle to set. * @return This builder for chaining. */ - public Builder setVolumeBackupHandle(java.lang.String value) { + public Builder setVolumeBackupHandle( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + volumeBackupHandle_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A storage system-specific opaque handle to the underlying volume backup.
      * 
* * string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVolumeBackupHandle() { - + volumeBackupHandle_ = getDefaultInstance().getVolumeBackupHandle(); onChanged(); return this; } /** - * - * *
      * Output only. A storage system-specific opaque handle to the underlying volume backup.
      * 
* * string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for volumeBackupHandle to set. * @return This builder for chaining. */ - public Builder setVolumeBackupHandleBytes(com.google.protobuf.ByteString value) { + public Builder setVolumeBackupHandleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volumeBackupHandle_ = value; onChanged(); return this; @@ -2753,75 +2406,51 @@ public Builder setVolumeBackupHandleBytes(com.google.protobuf.ByteString value) private int format_ = 0; /** - * - * *
      * Output only. The format used for the volume backup.
      * 
* - * - * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for format. */ - @java.lang.Override - public int getFormatValue() { + @java.lang.Override public int getFormatValue() { return format_; } /** - * - * *
      * Output only. The format used for the volume backup.
      * 
* - * - * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for format to set. * @return This builder for chaining. */ public Builder setFormatValue(int value) { - + format_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The format used for the volume backup.
      * 
* - * - * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The format. */ @java.lang.Override public com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat getFormat() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat result = - com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat.valueOf(format_); - return result == null - ? com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat.UNRECOGNIZED - : result; + com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat result = com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat.valueOf(format_); + return result == null ? com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The format used for the volume backup.
      * 
* - * - * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The format to set. * @return This builder for chaining. */ @@ -2829,35 +2458,28 @@ public Builder setFormat(com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackup if (value == null) { throw new NullPointerException(); } - + format_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The format used for the volume backup.
      * 
* - * - * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearFormat() { - + format_ = 0; onChanged(); return this; } - private long storageBytes_; + private long storageBytes_ ; /** - * - * *
      * Output only. The aggregate size of the underlying artifacts associated with this
      * VolumeBackup in the backup storage. This may change over time when
@@ -2867,7 +2489,6 @@ public Builder clearFormat() {
      * 
* * int64 storage_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The storageBytes. */ @java.lang.Override @@ -2875,8 +2496,6 @@ public long getStorageBytes() { return storageBytes_; } /** - * - * *
      * Output only. The aggregate size of the underlying artifacts associated with this
      * VolumeBackup in the backup storage. This may change over time when
@@ -2886,19 +2505,16 @@ public long getStorageBytes() {
      * 
* * int64 storage_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The storageBytes to set. * @return This builder for chaining. */ public Builder setStorageBytes(long value) { - + storageBytes_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The aggregate size of the underlying artifacts associated with this
      * VolumeBackup in the backup storage. This may change over time when
@@ -2908,26 +2524,22 @@ public Builder setStorageBytes(long value) {
      * 
* * int64 storage_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStorageBytes() { - + storageBytes_ = 0L; onChanged(); return this; } - private long diskSizeBytes_; + private long diskSizeBytes_ ; /** - * - * *
      * Output only. The minimum size of the disk to which this VolumeBackup can be restored.
      * 
* * int64 disk_size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The diskSizeBytes. */ @java.lang.Override @@ -2935,36 +2547,30 @@ public long getDiskSizeBytes() { return diskSizeBytes_; } /** - * - * *
      * Output only. The minimum size of the disk to which this VolumeBackup can be restored.
      * 
* * int64 disk_size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The diskSizeBytes to set. * @return This builder for chaining. */ public Builder setDiskSizeBytes(long value) { - + diskSizeBytes_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The minimum size of the disk to which this VolumeBackup can be restored.
      * 
* * int64 disk_size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDiskSizeBytes() { - + diskSizeBytes_ = 0L; onChanged(); return this; @@ -2972,61 +2578,42 @@ public Builder clearDiskSizeBytes() { private com.google.protobuf.Timestamp completeTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - completeTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completeTimeBuilder_; /** - * - * *
      * Output only. The timestamp when the associated underlying volume backup
      * operation completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the completeTime field is set. */ public boolean hasCompleteTime() { return completeTimeBuilder_ != null || completeTime_ != null; } /** - * - * *
      * Output only. The timestamp when the associated underlying volume backup
      * operation completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The completeTime. */ public com.google.protobuf.Timestamp getCompleteTime() { if (completeTimeBuilder_ == null) { - return completeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : completeTime_; + return completeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; } else { return completeTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when the associated underlying volume backup
      * operation completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCompleteTime(com.google.protobuf.Timestamp value) { if (completeTimeBuilder_ == null) { @@ -3042,18 +2629,15 @@ public Builder setCompleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the associated underlying volume backup
      * operation completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCompleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (completeTimeBuilder_ == null) { completeTime_ = builderForValue.build(); onChanged(); @@ -3064,24 +2648,18 @@ public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForV return this; } /** - * - * *
      * Output only. The timestamp when the associated underlying volume backup
      * operation completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { if (completeTimeBuilder_ == null) { if (completeTime_ != null) { completeTime_ = - com.google.protobuf.Timestamp.newBuilder(completeTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(completeTime_).mergeFrom(value).buildPartial(); } else { completeTime_ = value; } @@ -3093,16 +2671,12 @@ public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the associated underlying volume backup
      * operation completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCompleteTime() { if (completeTimeBuilder_ == null) { @@ -3116,67 +2690,51 @@ public Builder clearCompleteTime() { return this; } /** - * - * *
      * Output only. The timestamp when the associated underlying volume backup
      * operation completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { - + onChanged(); return getCompleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when the associated underlying volume backup
      * operation completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { if (completeTimeBuilder_ != null) { return completeTimeBuilder_.getMessageOrBuilder(); } else { - return completeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : completeTime_; + return completeTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; } } /** - * - * *
      * Output only. The timestamp when the associated underlying volume backup
      * operation completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 10 [(.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> getCompleteTimeFieldBuilder() { if (completeTimeBuilder_ == null) { - completeTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCompleteTime(), getParentForChildren(), isClean()); + completeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCompleteTime(), + getParentForChildren(), + isClean()); completeTime_ = null; } return completeTimeBuilder_; @@ -3184,75 +2742,51 @@ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { private int state_ = 0; /** - * - * *
      * Output only. The current state of this VolumeBackup.
      * 
* - * - * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The current state of this VolumeBackup.
      * 
* - * - * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The current state of this VolumeBackup.
      * 
* - * - * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.gkebackup.v1.VolumeBackup.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.VolumeBackup.State result = - com.google.cloud.gkebackup.v1.VolumeBackup.State.valueOf(state_); - return result == null - ? com.google.cloud.gkebackup.v1.VolumeBackup.State.UNRECOGNIZED - : result; + com.google.cloud.gkebackup.v1.VolumeBackup.State result = com.google.cloud.gkebackup.v1.VolumeBackup.State.valueOf(state_); + return result == null ? com.google.cloud.gkebackup.v1.VolumeBackup.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current state of this VolumeBackup.
      * 
* - * - * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3260,26 +2794,21 @@ public Builder setState(com.google.cloud.gkebackup.v1.VolumeBackup.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The current state of this VolumeBackup.
      * 
* - * - * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -3287,21 +2816,19 @@ public Builder clearState() { private java.lang.Object stateMessage_ = ""; /** - * - * *
      * Output only. A human readable message explaining why the VolumeBackup is in its current
      * state.
      * 
* * string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stateMessage. */ public java.lang.String getStateMessage() { java.lang.Object ref = stateMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; @@ -3310,22 +2837,21 @@ public java.lang.String getStateMessage() { } } /** - * - * *
      * Output only. A human readable message explaining why the VolumeBackup is in its current
      * state.
      * 
* * string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stateMessage. */ - public com.google.protobuf.ByteString getStateMessageBytes() { + public com.google.protobuf.ByteString + getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -3333,64 +2859,57 @@ public com.google.protobuf.ByteString getStateMessageBytes() { } } /** - * - * *
      * Output only. A human readable message explaining why the VolumeBackup is in its current
      * state.
      * 
* * string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessage(java.lang.String value) { + public Builder setStateMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stateMessage_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A human readable message explaining why the VolumeBackup is in its current
      * state.
      * 
* * string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStateMessage() { - + stateMessage_ = getDefaultInstance().getStateMessage(); onChanged(); return this; } /** - * - * *
      * Output only. A human readable message explaining why the VolumeBackup is in its current
      * state.
      * 
* * string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { + public Builder setStateMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stateMessage_ = value; onChanged(); return this; @@ -3398,8 +2917,6 @@ public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a volume backup from overwriting each
@@ -3409,13 +2926,13 @@ public Builder setStateMessageBytes(com.google.protobuf.ByteString value) {
      * 
* * string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -3424,8 +2941,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a volume backup from overwriting each
@@ -3435,14 +2950,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -3450,8 +2966,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a volume backup from overwriting each
@@ -3461,22 +2975,20 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a volume backup from overwriting each
@@ -3486,18 +2998,15 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a volume backup from overwriting each
@@ -3507,23 +3016,23 @@ public Builder clearEtag() {
      * 
* * string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3533,12 +3042,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.VolumeBackup) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.VolumeBackup) private static final com.google.cloud.gkebackup.v1.VolumeBackup DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.VolumeBackup(); } @@ -3547,16 +3056,16 @@ public static com.google.cloud.gkebackup.v1.VolumeBackup getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VolumeBackup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VolumeBackup(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VolumeBackup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VolumeBackup(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3571,4 +3080,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.VolumeBackup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupName.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupName.java similarity index 100% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupName.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupName.java diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupOrBuilder.java similarity index 73% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupOrBuilder.java index f08e701..d4c3121 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupOrBuilder.java @@ -1,265 +1,186 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/volume.proto package com.google.cloud.gkebackup.v1; -public interface VolumeBackupOrBuilder - extends +public interface VolumeBackupOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.VolumeBackup) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The full name of the VolumeBackup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The full name of the VolumeBackup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
    * 
* * 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. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. The timestamp when this VolumeBackup resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The timestamp when this VolumeBackup resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The timestamp when this VolumeBackup resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The timestamp when this VolumeBackup resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The timestamp when this VolumeBackup resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The timestamp when this VolumeBackup resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
    * was created.
    * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the sourcePvc field is set. */ boolean hasSourcePvc(); /** - * - * *
    * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
    * was created.
    * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourcePvc. */ com.google.cloud.gkebackup.v1.NamespacedName getSourcePvc(); /** - * - * *
    * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
    * was created.
    * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getSourcePvcOrBuilder(); /** - * - * *
    * Output only. A storage system-specific opaque handle to the underlying volume backup.
    * 
* * string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The volumeBackupHandle. */ java.lang.String getVolumeBackupHandle(); /** - * - * *
    * Output only. A storage system-specific opaque handle to the underlying volume backup.
    * 
* * string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for volumeBackupHandle. */ - com.google.protobuf.ByteString getVolumeBackupHandleBytes(); + com.google.protobuf.ByteString + getVolumeBackupHandleBytes(); /** - * - * *
    * Output only. The format used for the volume backup.
    * 
* - * - * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for format. */ int getFormatValue(); /** - * - * *
    * Output only. The format used for the volume backup.
    * 
* - * - * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The format. */ com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat getFormat(); /** - * - * *
    * Output only. The aggregate size of the underlying artifacts associated with this
    * VolumeBackup in the backup storage. This may change over time when
@@ -269,127 +190,92 @@ public interface VolumeBackupOrBuilder
    * 
* * int64 storage_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The storageBytes. */ long getStorageBytes(); /** - * - * *
    * Output only. The minimum size of the disk to which this VolumeBackup can be restored.
    * 
* * int64 disk_size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The diskSizeBytes. */ long getDiskSizeBytes(); /** - * - * *
    * Output only. The timestamp when the associated underlying volume backup
    * operation completed.
    * 
* - * - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the completeTime field is set. */ boolean hasCompleteTime(); /** - * - * *
    * Output only. The timestamp when the associated underlying volume backup
    * operation completed.
    * 
* - * - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The completeTime. */ com.google.protobuf.Timestamp getCompleteTime(); /** - * - * *
    * Output only. The timestamp when the associated underlying volume backup
    * operation completed.
    * 
* - * - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder(); /** - * - * *
    * Output only. The current state of this VolumeBackup.
    * 
* - * - * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current state of this VolumeBackup.
    * 
* - * - * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.gkebackup.v1.VolumeBackup.State getState(); /** - * - * *
    * Output only. A human readable message explaining why the VolumeBackup is in its current
    * state.
    * 
* * string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stateMessage. */ java.lang.String getStateMessage(); /** - * - * *
    * Output only. A human readable message explaining why the VolumeBackup is in its current
    * state.
    * 
* * string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stateMessage. */ - com.google.protobuf.ByteString getStateMessageBytes(); + com.google.protobuf.ByteString + getStateMessageBytes(); /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a volume backup from overwriting each
@@ -399,13 +285,10 @@ public interface VolumeBackupOrBuilder
    * 
* * string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a volume backup from overwriting each
@@ -415,8 +298,8 @@ public interface VolumeBackupOrBuilder
    * 
* * string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeProto.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeProto.java new file mode 100644 index 0000000..e58a0cd --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeProto.java @@ -0,0 +1,126 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/volume.proto + +package com.google.cloud.gkebackup.v1; + +public final class VolumeProto { + private VolumeProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_VolumeBackup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_VolumeRestore_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n&google/cloud/gkebackup/v1/volume.proto" + + "\022\031google.cloud.gkebackup.v1\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032&google/cloud/gkebackup/v1/commo" + + "n.proto\032\037google/protobuf/timestamp.proto" + + "\"\250\007\n\014VolumeBackup\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003" + + "uid\030\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" + + "ime\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022B\n\nsource_pvc\030\005 \001(\0132).google.cloud.gk" + + "ebackup.v1.NamespacedNameB\003\340A\003\022!\n\024volume" + + "_backup_handle\030\006 \001(\tB\003\340A\003\022O\n\006format\030\007 \001(" + + "\0162:.google.cloud.gkebackup.v1.VolumeBack" + + "up.VolumeBackupFormatB\003\340A\003\022\032\n\rstorage_by" + + "tes\030\010 \001(\003B\003\340A\003\022\034\n\017disk_size_bytes\030\t \001(\003B" + + "\003\340A\003\0226\n\rcomplete_time\030\n \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022A\n\005state\030\013 \001(\0162-.go" + + "ogle.cloud.gkebackup.v1.VolumeBackup.Sta" + + "teB\003\340A\003\022\032\n\rstate_message\030\014 \001(\tB\003\340A\003\022\021\n\004e" + + "tag\030\r \001(\tB\003\340A\003\"S\n\022VolumeBackupFormat\022$\n " + + "VOLUME_BACKUP_FORMAT_UNSPECIFIED\020\000\022\027\n\023GC" + + "E_PERSISTENT_DISK\020\001\"v\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\020\000\022\014\n\010CREATING\020\001\022\020\n\014SNAPSHOTTIN" + + "G\020\002\022\r\n\tUPLOADING\020\003\022\r\n\tSUCCEEDED\020\004\022\n\n\006FAI" + + "LED\020\005\022\014\n\010DELETING\020\006:\235\001\352A\231\001\n%gkebackup.go" + + "ogleapis.com/VolumeBackup\022pprojects/{pro" + + "ject}/locations/{location}/backupPlans/{" + + "backup_plan}/backups/{backup}/volumeBack" + + "ups/{volume_backup}\"\347\006\n\rVolumeRestore\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0224\n\013cr" + + "eate_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022\032\n\rvolume_backup\030" + + "\005 \001(\tB\003\340A\003\022B\n\ntarget_pvc\030\006 \001(\0132).google." + + "cloud.gkebackup.v1.NamespacedNameB\003\340A\003\022\032" + + "\n\rvolume_handle\030\007 \001(\tB\003\340A\003\022M\n\013volume_typ" + + "e\030\010 \001(\01623.google.cloud.gkebackup.v1.Volu" + + "meRestore.VolumeTypeB\003\340A\003\0226\n\rcomplete_ti" + + "me\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022B\n\005state\030\n \001(\0162..google.cloud.gkebacku" + + "p.v1.VolumeRestore.StateB\003\340A\003\022\032\n\rstate_m" + + "essage\030\013 \001(\tB\003\340A\003\022\021\n\004etag\030\014 \001(\tB\003\340A\003\"B\n\n" + + "VolumeType\022\033\n\027VOLUME_TYPE_UNSPECIFIED\020\000\022" + + "\027\n\023GCE_PERSISTENT_DISK\020\001\"d\n\005State\022\025\n\021STA" + + "TE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\r\n\tRESTOR" + + "ING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\022\014\n\010DELE" + + "TING\020\005:\244\001\352A\240\001\n&gkebackup.googleapis.com/" + + "VolumeRestore\022vprojects/{project}/locati" + + "ons/{location}/restorePlans/{restore_pla" + + "n}/restores/{restore}/volumeRestores/{vo" + + "lume_restore}B\311\001\n\035com.google.cloud.gkeba" + + "ckup.v1B\013VolumeProtoP\001ZBgoogle.golang.or" + + "g/genproto/googleapis/cloud/gkebackup/v1" + + ";gkebackup\252\002\031Google.Cloud.GkeBackup.V1\312\002" + + "\031Google\\Cloud\\GkeBackup\\V1\352\002\034Google::Clo" + + "ud::GkeBackup::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkebackup_v1_VolumeBackup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor, + new java.lang.String[] { "Name", "Uid", "CreateTime", "UpdateTime", "SourcePvc", "VolumeBackupHandle", "Format", "StorageBytes", "DiskSizeBytes", "CompleteTime", "State", "StateMessage", "Etag", }); + internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkebackup_v1_VolumeRestore_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor, + new java.lang.String[] { "Name", "Uid", "CreateTime", "UpdateTime", "VolumeBackup", "TargetPvc", "VolumeHandle", "VolumeType", "CompleteTime", "State", "StateMessage", "Etag", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestore.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestore.java similarity index 69% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestore.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestore.java index 15e5474..605d00f 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestore.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestore.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/volume.proto package com.google.cloud.gkebackup.v1; /** - * - * *
  * Represents the operation of restoring a volume from a VolumeBackup.
  * Next id: 13
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.gkebackup.v1.VolumeRestore}
  */
-public final class VolumeRestore extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class VolumeRestore extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.VolumeRestore)
     VolumeRestoreOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use VolumeRestore.newBuilder() to construct.
   private VolumeRestore(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private VolumeRestore() {
     name_ = "";
     uid_ = "";
@@ -51,15 +33,16 @@ private VolumeRestore() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new VolumeRestore();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private VolumeRestore(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -78,130 +61,113 @@ private VolumeRestore(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              uid_ = s;
-              break;
-            }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            uid_ = s;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              volumeBackup_ = s;
-              break;
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 50:
-            {
-              com.google.cloud.gkebackup.v1.NamespacedName.Builder subBuilder = null;
-              if (targetPvc_ != null) {
-                subBuilder = targetPvc_.toBuilder();
-              }
-              targetPvc_ =
-                  input.readMessage(
-                      com.google.cloud.gkebackup.v1.NamespacedName.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(targetPvc_);
-                targetPvc_ = subBuilder.buildPartial();
-              }
-
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              volumeHandle_ = s;
-              break;
-            }
-          case 64:
-            {
-              int rawValue = input.readEnum();
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              volumeType_ = rawValue;
-              break;
+            volumeBackup_ = s;
+            break;
+          }
+          case 50: {
+            com.google.cloud.gkebackup.v1.NamespacedName.Builder subBuilder = null;
+            if (targetPvc_ != null) {
+              subBuilder = targetPvc_.toBuilder();
             }
-          case 74:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (completeTime_ != null) {
-                subBuilder = completeTime_.toBuilder();
-              }
-              completeTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(completeTime_);
-                completeTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            targetPvc_ = input.readMessage(com.google.cloud.gkebackup.v1.NamespacedName.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(targetPvc_);
+              targetPvc_ = subBuilder.buildPartial();
             }
-          case 80:
-            {
-              int rawValue = input.readEnum();
 
-              state_ = rawValue;
-              break;
-            }
-          case 90:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            break;
+          }
+          case 58: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              stateMessage_ = s;
-              break;
-            }
-          case 98:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            volumeHandle_ = s;
+            break;
+          }
+          case 64: {
+            int rawValue = input.readEnum();
 
-              etag_ = s;
-              break;
+            volumeType_ = rawValue;
+            break;
+          }
+          case 74: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (completeTime_ != null) {
+              subBuilder = completeTime_.toBuilder();
+            }
+            completeTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(completeTime_);
+              completeTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 80: {
+            int rawValue = input.readEnum();
+
+            state_ = rawValue;
+            break;
+          }
+          case 90: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            stateMessage_ = s;
+            break;
+          }
+          case 98: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            etag_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -209,41 +175,36 @@ private VolumeRestore(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkebackup.v1.VolumeProto
-        .internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkebackup.v1.VolumeProto.internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkebackup.v1.VolumeProto
-        .internal_static_google_cloud_gkebackup_v1_VolumeRestore_fieldAccessorTable
+    return com.google.cloud.gkebackup.v1.VolumeProto.internal_static_google_cloud_gkebackup_v1_VolumeRestore_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkebackup.v1.VolumeRestore.class,
-            com.google.cloud.gkebackup.v1.VolumeRestore.Builder.class);
+            com.google.cloud.gkebackup.v1.VolumeRestore.class, com.google.cloud.gkebackup.v1.VolumeRestore.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Supported volume types.
    * 
* * Protobuf enum {@code google.cloud.gkebackup.v1.VolumeRestore.VolumeType} */ - public enum VolumeType implements com.google.protobuf.ProtocolMessageEnum { + public enum VolumeType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default
      * 
@@ -252,8 +213,6 @@ public enum VolumeType implements com.google.protobuf.ProtocolMessageEnum { */ VOLUME_TYPE_UNSPECIFIED(0), /** - * - * *
      * Compute Engine Persistent Disk volume
      * 
@@ -265,8 +224,6 @@ public enum VolumeType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default
      * 
@@ -275,8 +232,6 @@ public enum VolumeType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VOLUME_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Compute Engine Persistent Disk volume
      * 
@@ -285,6 +240,7 @@ public enum VolumeType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GCE_PERSISTENT_DISK_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -309,47 +265,48 @@ public static VolumeType valueOf(int value) { */ public static VolumeType forNumber(int value) { switch (value) { - case 0: - return VOLUME_TYPE_UNSPECIFIED; - case 1: - return GCE_PERSISTENT_DISK; - default: - return null; + case 0: return VOLUME_TYPE_UNSPECIFIED; + case 1: return GCE_PERSISTENT_DISK; + 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< + VolumeType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public VolumeType findValueByNumber(int number) { + return VolumeType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public VolumeType findValueByNumber(int number) { - return VolumeType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.gkebackup.v1.VolumeRestore.getDescriptor().getEnumTypes().get(0); } private static final VolumeType[] VALUES = values(); - public static VolumeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static VolumeType 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; @@ -367,18 +324,15 @@ private VolumeType(int value) { } /** - * - * *
    * The current state of a VolumeRestore
    * 
* * Protobuf enum {@code google.cloud.gkebackup.v1.VolumeRestore.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * This is an illegal state and should not be encountered.
      * 
@@ -387,8 +341,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * A volume for the restore was identified and restore process is about to
      * start.
@@ -398,8 +350,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CREATING(1),
     /**
-     *
-     *
      * 
      * The volume is currently being restored.
      * 
@@ -408,8 +358,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RESTORING(2), /** - * - * *
      * The volume has been successfully restored.
      * 
@@ -418,8 +366,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(3), /** - * - * *
      * The volume restoration process failed.
      * 
@@ -428,8 +374,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(4), /** - * - * *
      * This VolumeRestore resource is in the process of being deleted.
      * 
@@ -441,8 +385,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * This is an illegal state and should not be encountered.
      * 
@@ -451,8 +393,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * A volume for the restore was identified and restore process is about to
      * start.
@@ -462,8 +402,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CREATING_VALUE = 1;
     /**
-     *
-     *
      * 
      * The volume is currently being restored.
      * 
@@ -472,8 +410,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESTORING_VALUE = 2; /** - * - * *
      * The volume has been successfully restored.
      * 
@@ -482,8 +418,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 3; /** - * - * *
      * The volume restoration process failed.
      * 
@@ -492,8 +426,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 4; /** - * - * *
      * This VolumeRestore resource is in the process of being deleted.
      * 
@@ -502,6 +434,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -526,55 +459,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return RESTORING; - case 3: - return SUCCEEDED; - case 4: - return FAILED; - case 5: - return DELETING; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return RESTORING; + case 3: return SUCCEEDED; + case 4: return FAILED; + case 5: return DELETING; + default: return null; + } } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.gkebackup.v1.VolumeRestore.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -594,15 +524,12 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. Full name of the VolumeRestore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -611,30 +538,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. Full name of the VolumeRestore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.
    * 
* * 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 { @@ -645,15 +572,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int UID_FIELD_NUMBER = 2; private volatile java.lang.Object uid_; /** - * - * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -662,30 +586,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** - * - * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -696,16 +620,12 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The timestamp when this VolumeRestore resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -713,16 +633,12 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The timestamp when this VolumeRestore resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -730,15 +646,12 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The timestamp when this VolumeRestore resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -748,16 +661,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The timestamp when this VolumeRestore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -765,16 +674,12 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The timestamp when this VolumeRestore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -782,15 +687,12 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The timestamp when this VolumeRestore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -800,15 +702,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int VOLUME_BACKUP_FIELD_NUMBER = 5; private volatile java.lang.Object volumeBackup_; /** - * - * *
    * Output only. The full name of the VolumeBackup from which the volume will be restored.
    * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
    * 
* * string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The volumeBackup. */ @java.lang.Override @@ -817,30 +716,30 @@ public java.lang.String getVolumeBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volumeBackup_ = s; return s; } } /** - * - * *
    * Output only. The full name of the VolumeBackup from which the volume will be restored.
    * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
    * 
* * string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for volumeBackup. */ @java.lang.Override - public com.google.protobuf.ByteString getVolumeBackupBytes() { + public com.google.protobuf.ByteString + getVolumeBackupBytes() { java.lang.Object ref = volumeBackup_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); volumeBackup_ = b; return b; } else { @@ -851,16 +750,11 @@ public com.google.protobuf.ByteString getVolumeBackupBytes() { public static final int TARGET_PVC_FIELD_NUMBER = 6; private com.google.cloud.gkebackup.v1.NamespacedName targetPvc_; /** - * - * *
    * Output only. The reference to the target Kubernetes PVC to be restored.
    * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetPvc field is set. */ @java.lang.Override @@ -868,34 +762,23 @@ public boolean hasTargetPvc() { return targetPvc_ != null; } /** - * - * *
    * Output only. The reference to the target Kubernetes PVC to be restored.
    * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetPvc. */ @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacedName getTargetPvc() { - return targetPvc_ == null - ? com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() - : targetPvc_; + return targetPvc_ == null ? com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() : targetPvc_; } /** - * - * *
    * Output only. The reference to the target Kubernetes PVC to be restored.
    * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getTargetPvcOrBuilder() { @@ -905,15 +788,12 @@ public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getTargetPvcOrBuild public static final int VOLUME_HANDLE_FIELD_NUMBER = 7; private volatile java.lang.Object volumeHandle_; /** - * - * *
    * Output only. A storage system-specific opaque handler to the underlying volume created
    * for the target PVC from the volume backup.
    * 
* * string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The volumeHandle. */ @java.lang.Override @@ -922,30 +802,30 @@ public java.lang.String getVolumeHandle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volumeHandle_ = s; return s; } } /** - * - * *
    * Output only. A storage system-specific opaque handler to the underlying volume created
    * for the target PVC from the volume backup.
    * 
* * string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for volumeHandle. */ @java.lang.Override - public com.google.protobuf.ByteString getVolumeHandleBytes() { + public com.google.protobuf.ByteString + getVolumeHandleBytes() { java.lang.Object ref = volumeHandle_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); volumeHandle_ = b; return b; } else { @@ -956,59 +836,39 @@ public com.google.protobuf.ByteString getVolumeHandleBytes() { public static final int VOLUME_TYPE_FIELD_NUMBER = 8; private int volumeType_; /** - * - * *
    * Output only. The type of volume provisioned
    * 
* - * - * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for volumeType. */ - @java.lang.Override - public int getVolumeTypeValue() { + @java.lang.Override public int getVolumeTypeValue() { return volumeType_; } /** - * - * *
    * Output only. The type of volume provisioned
    * 
* - * - * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The volumeType. */ - @java.lang.Override - public com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType getVolumeType() { + @java.lang.Override public com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType getVolumeType() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType result = - com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.valueOf(volumeType_); - return result == null - ? com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.UNRECOGNIZED - : result; + com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType result = com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.valueOf(volumeType_); + return result == null ? com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.UNRECOGNIZED : result; } public static final int COMPLETE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp completeTime_; /** - * - * *
    * Output only. The timestamp when the associated underlying volume
    * restoration completed.
    * 
* - * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the completeTime field is set. */ @java.lang.Override @@ -1016,36 +876,25 @@ public boolean hasCompleteTime() { return completeTime_ != null; } /** - * - * *
    * Output only. The timestamp when the associated underlying volume
    * restoration completed.
    * 
* - * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The completeTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCompleteTime() { - return completeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : completeTime_; + return completeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; } /** - * - * *
    * Output only. The timestamp when the associated underlying volume
    * restoration completed.
    * 
* - * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { @@ -1055,55 +904,39 @@ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 10; private int state_; /** - * - * *
    * Output only. The current state of this VolumeRestore.
    * 
* - * - * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The current state of this VolumeRestore.
    * 
* - * - * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.gkebackup.v1.VolumeRestore.State getState() { + @java.lang.Override public com.google.cloud.gkebackup.v1.VolumeRestore.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.VolumeRestore.State result = - com.google.cloud.gkebackup.v1.VolumeRestore.State.valueOf(state_); + com.google.cloud.gkebackup.v1.VolumeRestore.State result = com.google.cloud.gkebackup.v1.VolumeRestore.State.valueOf(state_); return result == null ? com.google.cloud.gkebackup.v1.VolumeRestore.State.UNRECOGNIZED : result; } public static final int STATE_MESSAGE_FIELD_NUMBER = 11; private volatile java.lang.Object stateMessage_; /** - * - * *
    * Output only. A human readable message explaining why the VolumeRestore is in its
    * current state.
    * 
* * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stateMessage. */ @java.lang.Override @@ -1112,30 +945,30 @@ public java.lang.String getStateMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; } } /** - * - * *
    * Output only. A human readable message explaining why the VolumeRestore is in its
    * current state.
    * 
* * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stateMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStateMessageBytes() { + public com.google.protobuf.ByteString + getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -1146,8 +979,6 @@ public com.google.protobuf.ByteString getStateMessageBytes() { public static final int ETAG_FIELD_NUMBER = 12; private volatile java.lang.Object etag_; /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a volume restore from overwriting each
@@ -1157,7 +988,6 @@ public com.google.protobuf.ByteString getStateMessageBytes() {
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ @java.lang.Override @@ -1166,15 +996,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; } } /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a volume restore from overwriting each
@@ -1184,15 +1013,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1201,7 +1031,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1213,7 +1042,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -1235,9 +1065,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volumeHandle_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, volumeHandle_); } - if (volumeType_ - != com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.VOLUME_TYPE_UNSPECIFIED - .getNumber()) { + if (volumeType_ != com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.VOLUME_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(8, volumeType_); } if (completeTime_ != null) { @@ -1268,30 +1096,34 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volumeBackup_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, volumeBackup_); } if (targetPvc_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTargetPvc()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getTargetPvc()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volumeHandle_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, volumeHandle_); } - if (volumeType_ - != com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.VOLUME_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, volumeType_); + if (volumeType_ != com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.VOLUME_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, volumeType_); } if (completeTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCompleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getCompleteTime()); } if (state_ != com.google.cloud.gkebackup.v1.VolumeRestore.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, stateMessage_); @@ -1307,38 +1139,47 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.VolumeRestore)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.VolumeRestore other = - (com.google.cloud.gkebackup.v1.VolumeRestore) obj; + com.google.cloud.gkebackup.v1.VolumeRestore other = (com.google.cloud.gkebackup.v1.VolumeRestore) obj; - if (!getName().equals(other.getName())) return false; - if (!getUid().equals(other.getUid())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUid() + .equals(other.getUid())) 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 (!getVolumeBackup().equals(other.getVolumeBackup())) return false; + if (!getVolumeBackup() + .equals(other.getVolumeBackup())) return false; if (hasTargetPvc() != other.hasTargetPvc()) return false; if (hasTargetPvc()) { - if (!getTargetPvc().equals(other.getTargetPvc())) return false; + if (!getTargetPvc() + .equals(other.getTargetPvc())) return false; } - if (!getVolumeHandle().equals(other.getVolumeHandle())) return false; + if (!getVolumeHandle() + .equals(other.getVolumeHandle())) return false; if (volumeType_ != other.volumeType_) return false; if (hasCompleteTime() != other.hasCompleteTime()) return false; if (hasCompleteTime()) { - if (!getCompleteTime().equals(other.getCompleteTime())) return false; + if (!getCompleteTime() + .equals(other.getCompleteTime())) return false; } if (state_ != other.state_) return false; - if (!getStateMessage().equals(other.getStateMessage())) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getStateMessage() + .equals(other.getStateMessage())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1387,104 +1228,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkebackup.v1.VolumeRestore parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkebackup.v1.VolumeRestore parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.VolumeRestore parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.VolumeRestore prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 operation of restoring a volume from a VolumeBackup.
    * Next id: 13
@@ -1492,23 +1326,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.VolumeRestore}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.VolumeRestore)
       com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkebackup.v1.VolumeProto
-          .internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkebackup.v1.VolumeProto.internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkebackup.v1.VolumeProto
-          .internal_static_google_cloud_gkebackup_v1_VolumeRestore_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.VolumeProto.internal_static_google_cloud_gkebackup_v1_VolumeRestore_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.VolumeRestore.class,
-              com.google.cloud.gkebackup.v1.VolumeRestore.Builder.class);
+              com.google.cloud.gkebackup.v1.VolumeRestore.class, com.google.cloud.gkebackup.v1.VolumeRestore.Builder.class);
     }
 
     // Construct using com.google.cloud.gkebackup.v1.VolumeRestore.newBuilder()
@@ -1516,15 +1348,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1572,9 +1405,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkebackup.v1.VolumeProto
-          .internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkebackup.v1.VolumeProto.internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor;
     }
 
     @java.lang.Override
@@ -1593,8 +1426,7 @@ public com.google.cloud.gkebackup.v1.VolumeRestore build() {
 
     @java.lang.Override
     public com.google.cloud.gkebackup.v1.VolumeRestore buildPartial() {
-      com.google.cloud.gkebackup.v1.VolumeRestore result =
-          new com.google.cloud.gkebackup.v1.VolumeRestore(this);
+      com.google.cloud.gkebackup.v1.VolumeRestore result = new com.google.cloud.gkebackup.v1.VolumeRestore(this);
       result.name_ = name_;
       result.uid_ = uid_;
       if (createTimeBuilder_ == null) {
@@ -1631,39 +1463,38 @@ public com.google.cloud.gkebackup.v1.VolumeRestore 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.cloud.gkebackup.v1.VolumeRestore) {
-        return mergeFrom((com.google.cloud.gkebackup.v1.VolumeRestore) other);
+        return mergeFrom((com.google.cloud.gkebackup.v1.VolumeRestore)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1745,21 +1576,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. Full name of the VolumeRestore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.
      * 
* * 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; @@ -1768,22 +1597,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Full name of the VolumeRestore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.
      * 
* * 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 { @@ -1791,64 +1619,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Full name of the VolumeRestore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Full name of the VolumeRestore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. Full name of the VolumeRestore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1856,21 +1677,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -1879,22 +1698,21 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -1902,64 +1720,57 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { + public Builder setUid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** - * - * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { + public Builder setUidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); return this; @@ -1967,61 +1778,42 @@ public Builder setUidBytes(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 timestamp when this VolumeRestore resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The timestamp when this VolumeRestore resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when this VolumeRestore resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2037,18 +1829,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this VolumeRestore resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2059,22 +1848,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when this VolumeRestore resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2086,16 +1871,12 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this VolumeRestore resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2109,67 +1890,51 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp when this VolumeRestore resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when this VolumeRestore resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The timestamp when this VolumeRestore resource was
      * created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2177,61 +1942,42 @@ 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 timestamp when this VolumeRestore resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The timestamp when this VolumeRestore resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this VolumeRestore resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2247,18 +1993,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this VolumeRestore resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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(); onChanged(); @@ -2269,22 +2012,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when this VolumeRestore resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2296,16 +2035,12 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when this VolumeRestore resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2319,67 +2054,51 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The timestamp when this VolumeRestore resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when this VolumeRestore resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this VolumeRestore resource was last
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp 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> 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_; @@ -2387,21 +2106,19 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object volumeBackup_ = ""; /** - * - * *
      * Output only. The full name of the VolumeBackup from which the volume will be restored.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
      * 
* * string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The volumeBackup. */ public java.lang.String getVolumeBackup() { java.lang.Object ref = volumeBackup_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volumeBackup_ = s; return s; @@ -2410,22 +2127,21 @@ public java.lang.String getVolumeBackup() { } } /** - * - * *
      * Output only. The full name of the VolumeBackup from which the volume will be restored.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
      * 
* * string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for volumeBackup. */ - public com.google.protobuf.ByteString getVolumeBackupBytes() { + public com.google.protobuf.ByteString + getVolumeBackupBytes() { java.lang.Object ref = volumeBackup_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); volumeBackup_ = b; return b; } else { @@ -2433,64 +2149,57 @@ public com.google.protobuf.ByteString getVolumeBackupBytes() { } } /** - * - * *
      * Output only. The full name of the VolumeBackup from which the volume will be restored.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
      * 
* * string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The volumeBackup to set. * @return This builder for chaining. */ - public Builder setVolumeBackup(java.lang.String value) { + public Builder setVolumeBackup( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + volumeBackup_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The full name of the VolumeBackup from which the volume will be restored.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
      * 
* * string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVolumeBackup() { - + volumeBackup_ = getDefaultInstance().getVolumeBackup(); onChanged(); return this; } /** - * - * *
      * Output only. The full name of the VolumeBackup from which the volume will be restored.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
      * 
* * string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for volumeBackup to set. * @return This builder for chaining. */ - public Builder setVolumeBackupBytes(com.google.protobuf.ByteString value) { + public Builder setVolumeBackupBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volumeBackup_ = value; onChanged(); return this; @@ -2498,58 +2207,39 @@ public Builder setVolumeBackupBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkebackup.v1.NamespacedName targetPvc_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedName, - com.google.cloud.gkebackup.v1.NamespacedName.Builder, - com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> - targetPvcBuilder_; + com.google.cloud.gkebackup.v1.NamespacedName, com.google.cloud.gkebackup.v1.NamespacedName.Builder, com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> targetPvcBuilder_; /** - * - * *
      * Output only. The reference to the target Kubernetes PVC to be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetPvc field is set. */ public boolean hasTargetPvc() { return targetPvcBuilder_ != null || targetPvc_ != null; } /** - * - * *
      * Output only. The reference to the target Kubernetes PVC to be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetPvc. */ public com.google.cloud.gkebackup.v1.NamespacedName getTargetPvc() { if (targetPvcBuilder_ == null) { - return targetPvc_ == null - ? com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() - : targetPvc_; + return targetPvc_ == null ? com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() : targetPvc_; } else { return targetPvcBuilder_.getMessage(); } } /** - * - * *
      * Output only. The reference to the target Kubernetes PVC to be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTargetPvc(com.google.cloud.gkebackup.v1.NamespacedName value) { if (targetPvcBuilder_ == null) { @@ -2565,15 +2255,11 @@ public Builder setTargetPvc(com.google.cloud.gkebackup.v1.NamespacedName value) return this; } /** - * - * *
      * Output only. The reference to the target Kubernetes PVC to be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTargetPvc( com.google.cloud.gkebackup.v1.NamespacedName.Builder builderForValue) { @@ -2587,23 +2273,17 @@ public Builder setTargetPvc( return this; } /** - * - * *
      * Output only. The reference to the target Kubernetes PVC to be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeTargetPvc(com.google.cloud.gkebackup.v1.NamespacedName value) { if (targetPvcBuilder_ == null) { if (targetPvc_ != null) { targetPvc_ = - com.google.cloud.gkebackup.v1.NamespacedName.newBuilder(targetPvc_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkebackup.v1.NamespacedName.newBuilder(targetPvc_).mergeFrom(value).buildPartial(); } else { targetPvc_ = value; } @@ -2615,15 +2295,11 @@ public Builder mergeTargetPvc(com.google.cloud.gkebackup.v1.NamespacedName value return this; } /** - * - * *
      * Output only. The reference to the target Kubernetes PVC to be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTargetPvc() { if (targetPvcBuilder_ == null) { @@ -2637,64 +2313,48 @@ public Builder clearTargetPvc() { return this; } /** - * - * *
      * Output only. The reference to the target Kubernetes PVC to be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkebackup.v1.NamespacedName.Builder getTargetPvcBuilder() { - + onChanged(); return getTargetPvcFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The reference to the target Kubernetes PVC to be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getTargetPvcOrBuilder() { if (targetPvcBuilder_ != null) { return targetPvcBuilder_.getMessageOrBuilder(); } else { - return targetPvc_ == null - ? com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() - : targetPvc_; + return targetPvc_ == null ? + com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() : targetPvc_; } } /** - * - * *
      * Output only. The reference to the target Kubernetes PVC to be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedName, - com.google.cloud.gkebackup.v1.NamespacedName.Builder, - com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> + com.google.cloud.gkebackup.v1.NamespacedName, com.google.cloud.gkebackup.v1.NamespacedName.Builder, com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> getTargetPvcFieldBuilder() { if (targetPvcBuilder_ == null) { - targetPvcBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedName, - com.google.cloud.gkebackup.v1.NamespacedName.Builder, - com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder>( - getTargetPvc(), getParentForChildren(), isClean()); + targetPvcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.NamespacedName, com.google.cloud.gkebackup.v1.NamespacedName.Builder, com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder>( + getTargetPvc(), + getParentForChildren(), + isClean()); targetPvc_ = null; } return targetPvcBuilder_; @@ -2702,21 +2362,19 @@ public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getTargetPvcOrBuild private java.lang.Object volumeHandle_ = ""; /** - * - * *
      * Output only. A storage system-specific opaque handler to the underlying volume created
      * for the target PVC from the volume backup.
      * 
* * string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The volumeHandle. */ public java.lang.String getVolumeHandle() { java.lang.Object ref = volumeHandle_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volumeHandle_ = s; return s; @@ -2725,22 +2383,21 @@ public java.lang.String getVolumeHandle() { } } /** - * - * *
      * Output only. A storage system-specific opaque handler to the underlying volume created
      * for the target PVC from the volume backup.
      * 
* * string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for volumeHandle. */ - public com.google.protobuf.ByteString getVolumeHandleBytes() { + public com.google.protobuf.ByteString + getVolumeHandleBytes() { java.lang.Object ref = volumeHandle_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); volumeHandle_ = b; return b; } else { @@ -2748,64 +2405,57 @@ public com.google.protobuf.ByteString getVolumeHandleBytes() { } } /** - * - * *
      * Output only. A storage system-specific opaque handler to the underlying volume created
      * for the target PVC from the volume backup.
      * 
* * string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The volumeHandle to set. * @return This builder for chaining. */ - public Builder setVolumeHandle(java.lang.String value) { + public Builder setVolumeHandle( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + volumeHandle_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A storage system-specific opaque handler to the underlying volume created
      * for the target PVC from the volume backup.
      * 
* * string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVolumeHandle() { - + volumeHandle_ = getDefaultInstance().getVolumeHandle(); onChanged(); return this; } /** - * - * *
      * Output only. A storage system-specific opaque handler to the underlying volume created
      * for the target PVC from the volume backup.
      * 
* * string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for volumeHandle to set. * @return This builder for chaining. */ - public Builder setVolumeHandleBytes(com.google.protobuf.ByteString value) { + public Builder setVolumeHandleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volumeHandle_ = value; onChanged(); return this; @@ -2813,75 +2463,51 @@ public Builder setVolumeHandleBytes(com.google.protobuf.ByteString value) { private int volumeType_ = 0; /** - * - * *
      * Output only. The type of volume provisioned
      * 
* - * - * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for volumeType. */ - @java.lang.Override - public int getVolumeTypeValue() { + @java.lang.Override public int getVolumeTypeValue() { return volumeType_; } /** - * - * *
      * Output only. The type of volume provisioned
      * 
* - * - * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for volumeType to set. * @return This builder for chaining. */ public Builder setVolumeTypeValue(int value) { - + volumeType_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The type of volume provisioned
      * 
* - * - * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The volumeType. */ @java.lang.Override public com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType getVolumeType() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType result = - com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.valueOf(volumeType_); - return result == null - ? com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.UNRECOGNIZED - : result; + com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType result = com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.valueOf(volumeType_); + return result == null ? com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The type of volume provisioned
      * 
* - * - * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The volumeType to set. * @return This builder for chaining. */ @@ -2889,26 +2515,21 @@ public Builder setVolumeType(com.google.cloud.gkebackup.v1.VolumeRestore.VolumeT if (value == null) { throw new NullPointerException(); } - + volumeType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The type of volume provisioned
      * 
* - * - * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearVolumeType() { - + volumeType_ = 0; onChanged(); return this; @@ -2916,61 +2537,42 @@ public Builder clearVolumeType() { private com.google.protobuf.Timestamp completeTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - completeTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completeTimeBuilder_; /** - * - * *
      * Output only. The timestamp when the associated underlying volume
      * restoration completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the completeTime field is set. */ public boolean hasCompleteTime() { return completeTimeBuilder_ != null || completeTime_ != null; } /** - * - * *
      * Output only. The timestamp when the associated underlying volume
      * restoration completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The completeTime. */ public com.google.protobuf.Timestamp getCompleteTime() { if (completeTimeBuilder_ == null) { - return completeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : completeTime_; + return completeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; } else { return completeTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when the associated underlying volume
      * restoration completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCompleteTime(com.google.protobuf.Timestamp value) { if (completeTimeBuilder_ == null) { @@ -2986,18 +2588,15 @@ public Builder setCompleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the associated underlying volume
      * restoration completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCompleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (completeTimeBuilder_ == null) { completeTime_ = builderForValue.build(); onChanged(); @@ -3008,24 +2607,18 @@ public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForV return this; } /** - * - * *
      * Output only. The timestamp when the associated underlying volume
      * restoration completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { if (completeTimeBuilder_ == null) { if (completeTime_ != null) { completeTime_ = - com.google.protobuf.Timestamp.newBuilder(completeTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(completeTime_).mergeFrom(value).buildPartial(); } else { completeTime_ = value; } @@ -3037,16 +2630,12 @@ public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the associated underlying volume
      * restoration completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCompleteTime() { if (completeTimeBuilder_ == null) { @@ -3060,67 +2649,51 @@ public Builder clearCompleteTime() { return this; } /** - * - * *
      * Output only. The timestamp when the associated underlying volume
      * restoration completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { - + onChanged(); return getCompleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when the associated underlying volume
      * restoration completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { if (completeTimeBuilder_ != null) { return completeTimeBuilder_.getMessageOrBuilder(); } else { - return completeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : completeTime_; + return completeTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; } } /** - * - * *
      * Output only. The timestamp when the associated underlying volume
      * restoration completed.
      * 
* - * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 9 [(.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> getCompleteTimeFieldBuilder() { if (completeTimeBuilder_ == null) { - completeTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCompleteTime(), getParentForChildren(), isClean()); + completeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCompleteTime(), + getParentForChildren(), + isClean()); completeTime_ = null; } return completeTimeBuilder_; @@ -3128,75 +2701,51 @@ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { private int state_ = 0; /** - * - * *
      * Output only. The current state of this VolumeRestore.
      * 
* - * - * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The current state of this VolumeRestore.
      * 
* - * - * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The current state of this VolumeRestore.
      * 
* - * - * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.gkebackup.v1.VolumeRestore.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.VolumeRestore.State result = - com.google.cloud.gkebackup.v1.VolumeRestore.State.valueOf(state_); - return result == null - ? com.google.cloud.gkebackup.v1.VolumeRestore.State.UNRECOGNIZED - : result; + com.google.cloud.gkebackup.v1.VolumeRestore.State result = com.google.cloud.gkebackup.v1.VolumeRestore.State.valueOf(state_); + return result == null ? com.google.cloud.gkebackup.v1.VolumeRestore.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current state of this VolumeRestore.
      * 
* - * - * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3204,26 +2753,21 @@ public Builder setState(com.google.cloud.gkebackup.v1.VolumeRestore.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The current state of this VolumeRestore.
      * 
* - * - * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -3231,21 +2775,19 @@ public Builder clearState() { private java.lang.Object stateMessage_ = ""; /** - * - * *
      * Output only. A human readable message explaining why the VolumeRestore is in its
      * current state.
      * 
* * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stateMessage. */ public java.lang.String getStateMessage() { java.lang.Object ref = stateMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; @@ -3254,22 +2796,21 @@ public java.lang.String getStateMessage() { } } /** - * - * *
      * Output only. A human readable message explaining why the VolumeRestore is in its
      * current state.
      * 
* * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stateMessage. */ - public com.google.protobuf.ByteString getStateMessageBytes() { + public com.google.protobuf.ByteString + getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -3277,64 +2818,57 @@ public com.google.protobuf.ByteString getStateMessageBytes() { } } /** - * - * *
      * Output only. A human readable message explaining why the VolumeRestore is in its
      * current state.
      * 
* * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessage(java.lang.String value) { + public Builder setStateMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stateMessage_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A human readable message explaining why the VolumeRestore is in its
      * current state.
      * 
* * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStateMessage() { - + stateMessage_ = getDefaultInstance().getStateMessage(); onChanged(); return this; } /** - * - * *
      * Output only. A human readable message explaining why the VolumeRestore is in its
      * current state.
      * 
* * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { + public Builder setStateMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stateMessage_ = value; onChanged(); return this; @@ -3342,8 +2876,6 @@ public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a volume restore from overwriting each
@@ -3353,13 +2885,13 @@ public Builder setStateMessageBytes(com.google.protobuf.ByteString value) {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -3368,8 +2900,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a volume restore from overwriting each
@@ -3379,14 +2909,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -3394,8 +2925,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a volume restore from overwriting each
@@ -3405,22 +2934,20 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a volume restore from overwriting each
@@ -3430,18 +2957,15 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a volume restore from overwriting each
@@ -3451,23 +2975,23 @@ public Builder clearEtag() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3477,12 +3001,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.VolumeRestore) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.VolumeRestore) private static final com.google.cloud.gkebackup.v1.VolumeRestore DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.VolumeRestore(); } @@ -3491,16 +3015,16 @@ public static com.google.cloud.gkebackup.v1.VolumeRestore getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VolumeRestore parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VolumeRestore(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VolumeRestore parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VolumeRestore(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3515,4 +3039,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.VolumeRestore getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreName.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreName.java similarity index 100% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreName.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreName.java diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreOrBuilder.java similarity index 73% rename from proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreOrBuilder.java index 21a0216..593656c 100644 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreOrBuilder.java @@ -1,391 +1,278 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/volume.proto package com.google.cloud.gkebackup.v1; -public interface VolumeRestoreOrBuilder - extends +public interface VolumeRestoreOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.VolumeRestore) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Full name of the VolumeRestore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Full name of the VolumeRestore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.
    * 
* * 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. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. The timestamp when this VolumeRestore resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The timestamp when this VolumeRestore resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The timestamp when this VolumeRestore resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The timestamp when this VolumeRestore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The timestamp when this VolumeRestore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The timestamp when this VolumeRestore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The full name of the VolumeBackup from which the volume will be restored.
    * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
    * 
* * string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The volumeBackup. */ java.lang.String getVolumeBackup(); /** - * - * *
    * Output only. The full name of the VolumeBackup from which the volume will be restored.
    * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
    * 
* * string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for volumeBackup. */ - com.google.protobuf.ByteString getVolumeBackupBytes(); + com.google.protobuf.ByteString + getVolumeBackupBytes(); /** - * - * *
    * Output only. The reference to the target Kubernetes PVC to be restored.
    * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetPvc field is set. */ boolean hasTargetPvc(); /** - * - * *
    * Output only. The reference to the target Kubernetes PVC to be restored.
    * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetPvc. */ com.google.cloud.gkebackup.v1.NamespacedName getTargetPvc(); /** - * - * *
    * Output only. The reference to the target Kubernetes PVC to be restored.
    * 
* - * - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getTargetPvcOrBuilder(); /** - * - * *
    * Output only. A storage system-specific opaque handler to the underlying volume created
    * for the target PVC from the volume backup.
    * 
* * string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The volumeHandle. */ java.lang.String getVolumeHandle(); /** - * - * *
    * Output only. A storage system-specific opaque handler to the underlying volume created
    * for the target PVC from the volume backup.
    * 
* * string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for volumeHandle. */ - com.google.protobuf.ByteString getVolumeHandleBytes(); + com.google.protobuf.ByteString + getVolumeHandleBytes(); /** - * - * *
    * Output only. The type of volume provisioned
    * 
* - * - * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for volumeType. */ int getVolumeTypeValue(); /** - * - * *
    * Output only. The type of volume provisioned
    * 
* - * - * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The volumeType. */ com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType getVolumeType(); /** - * - * *
    * Output only. The timestamp when the associated underlying volume
    * restoration completed.
    * 
* - * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the completeTime field is set. */ boolean hasCompleteTime(); /** - * - * *
    * Output only. The timestamp when the associated underlying volume
    * restoration completed.
    * 
* - * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The completeTime. */ com.google.protobuf.Timestamp getCompleteTime(); /** - * - * *
    * Output only. The timestamp when the associated underlying volume
    * restoration completed.
    * 
* - * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder(); /** - * - * *
    * Output only. The current state of this VolumeRestore.
    * 
* - * - * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current state of this VolumeRestore.
    * 
* - * - * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.gkebackup.v1.VolumeRestore.State getState(); /** - * - * *
    * Output only. A human readable message explaining why the VolumeRestore is in its
    * current state.
    * 
* * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stateMessage. */ java.lang.String getStateMessage(); /** - * - * *
    * Output only. A human readable message explaining why the VolumeRestore is in its
    * current state.
    * 
* * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stateMessage. */ - com.google.protobuf.ByteString getStateMessageBytes(); + com.google.protobuf.ByteString + getStateMessageBytes(); /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a volume restore from overwriting each
@@ -395,13 +282,10 @@ public interface VolumeRestoreOrBuilder
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a volume restore from overwriting each
@@ -411,8 +295,8 @@ public interface VolumeRestoreOrBuilder
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup.proto b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup.proto similarity index 100% rename from proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup.proto rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup.proto diff --git a/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup_plan.proto b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup_plan.proto similarity index 100% rename from proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup_plan.proto rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup_plan.proto diff --git a/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/common.proto b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/common.proto similarity index 100% rename from proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/common.proto rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/common.proto diff --git a/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/gkebackup.proto b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/gkebackup.proto similarity index 100% rename from proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/gkebackup.proto rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/gkebackup.proto diff --git a/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/restore.proto b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/restore.proto similarity index 100% rename from proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/restore.proto rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/restore.proto diff --git a/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/restore_plan.proto b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/restore_plan.proto similarity index 100% rename from proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/restore_plan.proto rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/restore_plan.proto diff --git a/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/volume.proto b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/volume.proto similarity index 100% rename from proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/volume.proto rename to owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/volume.proto diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/AsyncCreateBackup.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/AsyncCreateBackup.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/AsyncCreateBackup.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/AsyncCreateBackup.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/AsyncCreateBackupLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/AsyncCreateBackupLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/AsyncCreateBackupLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/AsyncCreateBackupLRO.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackup.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackup.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackup.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackup.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackupBackupplannameBackupString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackupBackupplannameBackupString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackupBackupplannameBackupString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackupBackupplannameBackupString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackupStringBackupString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackupStringBackupString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackupStringBackupString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackupStringBackupString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/AsyncCreateBackupPlan.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/AsyncCreateBackupPlan.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/AsyncCreateBackupPlan.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/AsyncCreateBackupPlan.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/AsyncCreateBackupPlanLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/AsyncCreateBackupPlanLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/AsyncCreateBackupPlanLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/AsyncCreateBackupPlanLRO.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlan.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlan.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlan.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlan.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlanLocationnameBackupplanString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlanLocationnameBackupplanString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlanLocationnameBackupplanString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlanLocationnameBackupplanString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlanStringBackupplanString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlanStringBackupplanString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlanStringBackupplanString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlanStringBackupplanString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/AsyncCreateRestore.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/AsyncCreateRestore.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/AsyncCreateRestore.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/AsyncCreateRestore.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/AsyncCreateRestoreLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/AsyncCreateRestoreLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/AsyncCreateRestoreLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/AsyncCreateRestoreLRO.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestore.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestore.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestore.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestore.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestoreRestoreplannameRestoreString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestoreRestoreplannameRestoreString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestoreRestoreplannameRestoreString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestoreRestoreplannameRestoreString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestoreStringRestoreString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestoreStringRestoreString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestoreStringRestoreString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestoreStringRestoreString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/AsyncCreateRestorePlan.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/AsyncCreateRestorePlan.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/AsyncCreateRestorePlan.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/AsyncCreateRestorePlan.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/AsyncCreateRestorePlanLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/AsyncCreateRestorePlanLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/AsyncCreateRestorePlanLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/AsyncCreateRestorePlanLRO.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlan.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlan.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlan.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlan.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlanLocationnameRestoreplanString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlanLocationnameRestoreplanString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlanLocationnameRestoreplanString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlanLocationnameRestoreplanString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlanStringRestoreplanString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlanStringRestoreplanString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlanStringRestoreplanString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlanStringRestoreplanString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/AsyncDeleteBackup.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/AsyncDeleteBackup.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/AsyncDeleteBackup.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/AsyncDeleteBackup.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/AsyncDeleteBackupLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/AsyncDeleteBackupLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/AsyncDeleteBackupLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/AsyncDeleteBackupLRO.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackup.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackup.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackup.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackup.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackupBackupname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackupBackupname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackupBackupname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackupBackupname.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackupString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackupString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackupString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackupString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/AsyncDeleteBackupPlan.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/AsyncDeleteBackupPlan.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/AsyncDeleteBackupPlan.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/AsyncDeleteBackupPlan.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/AsyncDeleteBackupPlanLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/AsyncDeleteBackupPlanLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/AsyncDeleteBackupPlanLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/AsyncDeleteBackupPlanLRO.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlan.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlan.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlan.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlan.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlanBackupplanname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlanBackupplanname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlanBackupplanname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlanBackupplanname.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlanString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlanString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlanString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlanString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/AsyncDeleteRestore.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/AsyncDeleteRestore.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/AsyncDeleteRestore.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/AsyncDeleteRestore.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/AsyncDeleteRestoreLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/AsyncDeleteRestoreLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/AsyncDeleteRestoreLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/AsyncDeleteRestoreLRO.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestore.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestore.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestore.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestore.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestoreRestorename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestoreRestorename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestoreRestorename.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestoreRestorename.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestoreString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestoreString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestoreString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestoreString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/AsyncDeleteRestorePlan.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/AsyncDeleteRestorePlan.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/AsyncDeleteRestorePlan.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/AsyncDeleteRestorePlan.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/AsyncDeleteRestorePlanLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/AsyncDeleteRestorePlanLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/AsyncDeleteRestorePlanLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/AsyncDeleteRestorePlanLRO.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlan.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlan.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlan.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlan.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlanRestoreplanname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlanRestoreplanname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlanRestoreplanname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlanRestoreplanname.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlanString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlanString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlanString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlanString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/AsyncGetBackup.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/AsyncGetBackup.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/AsyncGetBackup.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/AsyncGetBackup.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackup.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackup.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackup.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackup.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackupBackupname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackupBackupname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackupBackupname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackupBackupname.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackupString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackupString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackupString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackupString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/AsyncGetBackupPlan.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/AsyncGetBackupPlan.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/AsyncGetBackupPlan.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/AsyncGetBackupPlan.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlan.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlan.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlan.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlan.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlanBackupplanname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlanBackupplanname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlanBackupplanname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlanBackupplanname.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlanString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlanString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlanString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlanString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/AsyncGetRestore.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/AsyncGetRestore.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/AsyncGetRestore.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/AsyncGetRestore.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestore.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestore.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestore.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestore.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestoreRestorename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestoreRestorename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestoreRestorename.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestoreRestorename.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestoreString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestoreString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestoreString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestoreString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/AsyncGetRestorePlan.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/AsyncGetRestorePlan.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/AsyncGetRestorePlan.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/AsyncGetRestorePlan.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlan.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlan.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlan.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlan.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlanRestoreplanname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlanRestoreplanname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlanRestoreplanname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlanRestoreplanname.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlanString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlanString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlanString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlanString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/AsyncGetVolumeBackup.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/AsyncGetVolumeBackup.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/AsyncGetVolumeBackup.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/AsyncGetVolumeBackup.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackup.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackup.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackup.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackup.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackupString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackupString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackupString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackupString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackupVolumebackupname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackupVolumebackupname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackupVolumebackupname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackupVolumebackupname.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/AsyncGetVolumeRestore.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/AsyncGetVolumeRestore.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/AsyncGetVolumeRestore.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/AsyncGetVolumeRestore.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestore.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestore.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestore.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestore.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestoreString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestoreString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestoreString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestoreString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestoreVolumerestorename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestoreVolumerestorename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestoreVolumerestorename.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestoreVolumerestorename.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/AsyncListBackupPlans.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/AsyncListBackupPlans.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/AsyncListBackupPlans.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/AsyncListBackupPlans.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/AsyncListBackupPlansPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/AsyncListBackupPlansPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/AsyncListBackupPlansPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/AsyncListBackupPlansPaged.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlans.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlans.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlans.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlans.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlansLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlansLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlansLocationname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlansLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlansString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlansString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlansString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlansString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/AsyncListBackups.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/AsyncListBackups.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/AsyncListBackups.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/AsyncListBackups.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/AsyncListBackupsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/AsyncListBackupsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/AsyncListBackupsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/AsyncListBackupsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackups.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackups.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackups.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackups.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackupsBackupplanname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackupsBackupplanname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackupsBackupplanname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackupsBackupplanname.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackupsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackupsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackupsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackupsString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/AsyncListRestorePlans.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/AsyncListRestorePlans.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/AsyncListRestorePlans.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/AsyncListRestorePlans.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/AsyncListRestorePlansPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/AsyncListRestorePlansPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/AsyncListRestorePlansPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/AsyncListRestorePlansPaged.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlans.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlans.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlans.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlans.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlansLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlansLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlansLocationname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlansLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlansString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlansString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlansString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlansString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/AsyncListRestores.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/AsyncListRestores.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/AsyncListRestores.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/AsyncListRestores.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/AsyncListRestoresPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/AsyncListRestoresPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/AsyncListRestoresPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/AsyncListRestoresPaged.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestores.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestores.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestores.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestores.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestoresRestoreplanname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestoresRestoreplanname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestoresRestoreplanname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestoresRestoreplanname.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestoresString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestoresString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestoresString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestoresString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/AsyncListVolumeBackups.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/AsyncListVolumeBackups.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/AsyncListVolumeBackups.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/AsyncListVolumeBackups.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/AsyncListVolumeBackupsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/AsyncListVolumeBackupsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/AsyncListVolumeBackupsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/AsyncListVolumeBackupsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackups.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackups.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackups.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackups.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackupsBackupname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackupsBackupname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackupsBackupname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackupsBackupname.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackupsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackupsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackupsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackupsString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/AsyncListVolumeRestores.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/AsyncListVolumeRestores.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/AsyncListVolumeRestores.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/AsyncListVolumeRestores.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/AsyncListVolumeRestoresPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/AsyncListVolumeRestoresPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/AsyncListVolumeRestoresPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/AsyncListVolumeRestoresPaged.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestores.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestores.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestores.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestores.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestoresRestorename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestoresRestorename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestoresRestorename.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestoresRestorename.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestoresString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestoresString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestoresString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestoresString.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/AsyncUpdateBackup.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/AsyncUpdateBackup.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/AsyncUpdateBackup.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/AsyncUpdateBackup.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/AsyncUpdateBackupLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/AsyncUpdateBackupLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/AsyncUpdateBackupLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/AsyncUpdateBackupLRO.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/SyncUpdateBackup.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/SyncUpdateBackup.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/SyncUpdateBackup.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/SyncUpdateBackup.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/SyncUpdateBackupBackupFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/SyncUpdateBackupBackupFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/SyncUpdateBackupBackupFieldmask.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/SyncUpdateBackupBackupFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/AsyncUpdateBackupPlan.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/AsyncUpdateBackupPlan.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/AsyncUpdateBackupPlan.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/AsyncUpdateBackupPlan.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/AsyncUpdateBackupPlanLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/AsyncUpdateBackupPlanLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/AsyncUpdateBackupPlanLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/AsyncUpdateBackupPlanLRO.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/SyncUpdateBackupPlan.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/SyncUpdateBackupPlan.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/SyncUpdateBackupPlan.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/SyncUpdateBackupPlan.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/SyncUpdateBackupPlanBackupplanFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/SyncUpdateBackupPlanBackupplanFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/SyncUpdateBackupPlanBackupplanFieldmask.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/SyncUpdateBackupPlanBackupplanFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/AsyncUpdateRestore.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/AsyncUpdateRestore.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/AsyncUpdateRestore.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/AsyncUpdateRestore.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/AsyncUpdateRestoreLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/AsyncUpdateRestoreLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/AsyncUpdateRestoreLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/AsyncUpdateRestoreLRO.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/SyncUpdateRestore.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/SyncUpdateRestore.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/SyncUpdateRestore.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/SyncUpdateRestore.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/SyncUpdateRestoreRestoreFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/SyncUpdateRestoreRestoreFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/SyncUpdateRestoreRestoreFieldmask.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/SyncUpdateRestoreRestoreFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/AsyncUpdateRestorePlan.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/AsyncUpdateRestorePlan.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/AsyncUpdateRestorePlan.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/AsyncUpdateRestorePlan.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/AsyncUpdateRestorePlanLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/AsyncUpdateRestorePlanLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/AsyncUpdateRestorePlanLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/AsyncUpdateRestorePlanLRO.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/SyncUpdateRestorePlan.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/SyncUpdateRestorePlan.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/SyncUpdateRestorePlan.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/SyncUpdateRestorePlan.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/SyncUpdateRestorePlanRestoreplanFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/SyncUpdateRestorePlanRestoreplanFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/SyncUpdateRestorePlanRestoreplanFieldmask.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/SyncUpdateRestorePlanRestoreplanFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkesettings/getbackupplan/SyncGetBackupPlan.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkesettings/getbackupplan/SyncGetBackupPlan.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkesettings/getbackupplan/SyncGetBackupPlan.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkesettings/getbackupplan/SyncGetBackupPlan.java diff --git a/samples/snippets/generated/com/google/cloud/gkebackup/v1/stub/backupforgkestubsettings/getbackupplan/SyncGetBackupPlan.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/stub/backupforgkestubsettings/getbackupplan/SyncGetBackupPlan.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/gkebackup/v1/stub/backupforgkestubsettings/getbackupplan/SyncGetBackupPlan.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/stub/backupforgkestubsettings/getbackupplan/SyncGetBackupPlan.java diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanProto.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanProto.java deleted file mode 100644 index d09f525..0000000 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanProto.java +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/backup_plan.proto - -package com.google.cloud.gkebackup.v1; - -public final class BackupPlanProto { - private BackupPlanProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_BackupPlan_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/gkebackup/v1/backup_plan." - + "proto\022\031google.cloud.gkebackup.v1\032\037google" - + "/api/field_behavior.proto\032\031google/api/re" - + "source.proto\032&google/cloud/gkebackup/v1/" - + "common.proto\032\037google/protobuf/timestamp." - + "proto\"\327\t\n\nBackupPlan\022\021\n\004name\030\001 \001(\tB\003\340A\003\022" - + "\020\n\003uid\030\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" - + "e_time\030\004 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\022\023\n\013description\030\005 \001(\t\022<\n\007cluster\030\006 " - + "\001(\tB+\340A\005\340A\002\372A\"\n container.googleapis.com" - + "/Cluster\022O\n\020retention_policy\030\007 \001(\01325.goo" - + "gle.cloud.gkebackup.v1.BackupPlan.Retent" - + "ionPolicy\022A\n\006labels\030\010 \003(\01321.google.cloud" - + ".gkebackup.v1.BackupPlan.LabelsEntry\022G\n\017" - + "backup_schedule\030\t \001(\0132..google.cloud.gke" - + "backup.v1.BackupPlan.Schedule\022\021\n\004etag\030\n " - + "\001(\tB\003\340A\003\022\023\n\013deactivated\030\013 \001(\010\022I\n\rbackup_" - + "config\030\014 \001(\01322.google.cloud.gkebackup.v1" - + ".BackupPlan.BackupConfig\022 \n\023protected_po" - + "d_count\030\r \001(\005B\003\340A\003\032^\n\017RetentionPolicy\022\037\n" - + "\027backup_delete_lock_days\030\001 \001(\005\022\032\n\022backup" - + "_retain_days\030\002 \001(\005\022\016\n\006locked\030\003 \001(\010\0321\n\010Sc" - + "hedule\022\025\n\rcron_schedule\030\001 \001(\t\022\016\n\006paused\030" - + "\002 \001(\010\032\303\002\n\014BackupConfig\022\030\n\016all_namespaces" - + "\030\001 \001(\010H\000\022D\n\023selected_namespaces\030\002 \001(\0132%." - + "google.cloud.gkebackup.v1.NamespacesH\000\022K" - + "\n\025selected_applications\030\003 \001(\0132*.google.c" - + "loud.gkebackup.v1.NamespacedNamesH\000\022\033\n\023i" - + "nclude_volume_data\030\004 \001(\010\022\027\n\017include_secr" - + "ets\030\005 \001(\010\022@\n\016encryption_key\030\006 \001(\0132(.goog" - + "le.cloud.gkebackup.v1.EncryptionKeyB\016\n\014b" - + "ackup_scope\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001:k\352Ah\n#gkebackup.googl" - + "eapis.com/BackupPlan\022Aprojects/{project}" - + "/locations/{location}/backupPlans/{backu" - + "p_plan}B\315\001\n\035com.google.cloud.gkebackup.v" - + "1B\017BackupPlanProtoP\001ZBgoogle.golang.org/" - + "genproto/googleapis/cloud/gkebackup/v1;g" - + "kebackup\252\002\031Google.Cloud.GkeBackup.V1\312\002\031G" - + "oogle\\Cloud\\GkeBackup\\V1\352\002\034Google::Cloud" - + "::GkeBackup::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkebackup_v1_BackupPlan_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor, - new java.lang.String[] { - "Name", - "Uid", - "CreateTime", - "UpdateTime", - "Description", - "Cluster", - "RetentionPolicy", - "Labels", - "BackupSchedule", - "Etag", - "Deactivated", - "BackupConfig", - "ProtectedPodCount", - }); - internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor = - internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor, - new java.lang.String[] { - "BackupDeleteLockDays", "BackupRetainDays", "Locked", - }); - internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor = - internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor, - new java.lang.String[] { - "CronSchedule", "Paused", - }); - internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor = - internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor, - new java.lang.String[] { - "AllNamespaces", - "SelectedNamespaces", - "SelectedApplications", - "IncludeVolumeData", - "IncludeSecrets", - "EncryptionKey", - "BackupScope", - }); - internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_descriptor = - internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupProto.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupProto.java deleted file mode 100644 index 10a9bcd..0000000 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupProto.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/backup.proto - -package com.google.cloud.gkebackup.v1; - -public final class BackupProto { - private BackupProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_Backup_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_Backup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n&google/cloud/gkebackup/v1/backup.proto" - + "\022\031google.cloud.gkebackup.v1\032\037google/api/" - + "field_behavior.proto\032\031google/api/resourc" - + "e.proto\032&google/cloud/gkebackup/v1/commo" - + "n.proto\032\037google/protobuf/timestamp.proto" - + "\"\273\r\n\006Backup\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 " - + "\001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\004 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006" - + "manual\030\005 \001(\010B\003\340A\003\022=\n\006labels\030\006 \003(\0132-.goog" - + "le.cloud.gkebackup.v1.Backup.LabelsEntry" - + "\022\030\n\020delete_lock_days\030\007 \001(\005\022@\n\027delete_loc" - + "k_expire_time\030\010 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\022\023\n\013retain_days\030\t \001(\005\022;\n\022ret" - + "ain_expire_time\030\n \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\022E\n\016encryption_key\030\013 \001(\0132(" - + ".google.cloud.gkebackup.v1.EncryptionKey" - + "B\003\340A\003\022\035\n\016all_namespaces\030\014 \001(\010B\003\340A\003H\000\022I\n\023" - + "selected_namespaces\030\r \001(\0132%.google.cloud" - + ".gkebackup.v1.NamespacesB\003\340A\003H\000\022P\n\025selec" - + "ted_applications\030\016 \001(\0132*.google.cloud.gk" - + "ebackup.v1.NamespacedNamesB\003\340A\003H\000\022!\n\024con" - + "tains_volume_data\030\017 \001(\010B\003\340A\003\022\035\n\020contains" - + "_secrets\030\020 \001(\010B\003\340A\003\022P\n\020cluster_metadata\030" - + "\021 \001(\01321.google.cloud.gkebackup.v1.Backup" - + ".ClusterMetadataB\003\340A\003\022;\n\005state\030\022 \001(\0162\'.g" - + "oogle.cloud.gkebackup.v1.Backup.StateB\003\340" - + "A\003\022\031\n\014state_reason\030\023 \001(\tB\003\340A\003\0226\n\rcomplet" - + "e_time\030\024 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\022\033\n\016resource_count\030\025 \001(\005B\003\340A\003\022\031\n\014vo" - + "lume_count\030\026 \001(\005B\003\340A\003\022\027\n\nsize_bytes\030\027 \001(" - + "\003B\003\340A\003\022\021\n\004etag\030\030 \001(\tB\003\340A\003\022\023\n\013description" - + "\030\031 \001(\t\022\026\n\tpod_count\030\032 \001(\005B\003\340A\003\022%\n\030config" - + "_backup_size_bytes\030\033 \001(\003B\003\340A\003\032\235\002\n\017Cluste" - + "rMetadata\022\017\n\007cluster\030\001 \001(\t\022\023\n\013k8s_versio" - + "n\030\002 \001(\t\022e\n\023backup_crd_versions\030\003 \003(\0132H.g" - + "oogle.cloud.gkebackup.v1.Backup.ClusterM" - + "etadata.BackupCrdVersionsEntry\022\025\n\013gke_ve" - + "rsion\030\004 \001(\tH\000\022\030\n\016anthos_version\030\005 \001(\tH\000\032" - + "8\n\026BackupCrdVersionsEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001B\022\n\020platform_version\032-\n" - + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001\"f\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010" - + "CREATING\020\001\022\017\n\013IN_PROGRESS\020\002\022\r\n\tSUCCEEDED" - + "\020\003\022\n\n\006FAILED\020\004\022\014\n\010DELETING\020\005:x\352Au\n\037gkeba" - + "ckup.googleapis.com/Backup\022Rprojects/{pr" - + "oject}/locations/{location}/backupPlans/" - + "{backup_plan}/backups/{backup}B\016\n\014backup" - + "_scopeB\311\001\n\035com.google.cloud.gkebackup.v1" - + "B\013BackupProtoP\001ZBgoogle.golang.org/genpr" - + "oto/googleapis/cloud/gkebackup/v1;gkebac" - + "kup\252\002\031Google.Cloud.GkeBackup.V1\312\002\031Google" - + "\\Cloud\\GkeBackup\\V1\352\002\034Google::Cloud::Gke" - + "Backup::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_gkebackup_v1_Backup_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkebackup_v1_Backup_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_Backup_descriptor, - new java.lang.String[] { - "Name", - "Uid", - "CreateTime", - "UpdateTime", - "Manual", - "Labels", - "DeleteLockDays", - "DeleteLockExpireTime", - "RetainDays", - "RetainExpireTime", - "EncryptionKey", - "AllNamespaces", - "SelectedNamespaces", - "SelectedApplications", - "ContainsVolumeData", - "ContainsSecrets", - "ClusterMetadata", - "State", - "StateReason", - "CompleteTime", - "ResourceCount", - "VolumeCount", - "SizeBytes", - "Etag", - "Description", - "PodCount", - "ConfigBackupSizeBytes", - "BackupScope", - }); - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor = - internal_static_google_cloud_gkebackup_v1_Backup_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor, - new java.lang.String[] { - "Cluster", - "K8SVersion", - "BackupCrdVersions", - "GkeVersion", - "AnthosVersion", - "PlatformVersion", - }); - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_descriptor = - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_descriptor = - internal_static_google_cloud_gkebackup_v1_Backup_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CommonProto.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CommonProto.java deleted file mode 100644 index 4a1790b..0000000 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CommonProto.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/common.proto - -package com.google.cloud.gkebackup.v1; - -public final class CommonProto { - private CommonProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_Namespaces_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_NamespacedName_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_NamespacedNames_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_EncryptionKey_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n&google/cloud/gkebackup/v1/common.proto" - + "\022\031google.cloud.gkebackup.v1\032\031google/api/" - + "resource.proto\" \n\nNamespaces\022\022\n\nnamespac" - + "es\030\001 \003(\t\"1\n\016NamespacedName\022\021\n\tnamespace\030" - + "\001 \001(\t\022\014\n\004name\030\002 \001(\t\"V\n\017NamespacedNames\022C" - + "\n\020namespaced_names\030\001 \003(\0132).google.cloud." - + "gkebackup.v1.NamespacedName\"W\n\rEncryptio" - + "nKey\022F\n\026gcp_kms_encryption_key\030\001 \001(\tB&\372A" - + "#\n!cloudkms.googleapis.com/CryptoKeyB\311\001\n" - + "\035com.google.cloud.gkebackup.v1B\013CommonPr" - + "otoP\001ZBgoogle.golang.org/genproto/google" - + "apis/cloud/gkebackup/v1;gkebackup\252\002\031Goog" - + "le.Cloud.GkeBackup.V1\312\002\031Google\\Cloud\\Gke" - + "Backup\\V1\352\002\034Google::Cloud::GkeBackup::V1" - + "b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkebackup_v1_Namespaces_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor, - new java.lang.String[] { - "Namespaces", - }); - internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkebackup_v1_NamespacedName_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor, - new java.lang.String[] { - "Namespace", "Name", - }); - internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkebackup_v1_NamespacedNames_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor, - new java.lang.String[] { - "NamespacedNames", - }); - internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkebackup_v1_EncryptionKey_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor, - new java.lang.String[] { - "GcpKmsEncryptionKey", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GKEBackupProto.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GKEBackupProto.java deleted file mode 100644 index 1200c4f..0000000 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GKEBackupProto.java +++ /dev/null @@ -1,719 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/gkebackup.proto - -package com.google.cloud.gkebackup.v1; - -public final class GKEBackupProto { - private GKEBackupProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_GetBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/gkebackup/v1/gkebackup.pr" - + "oto\022\031google.cloud.gkebackup.v1\032\034google/a" - + "pi/annotations.proto\032\027google/api/client." - + "proto\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\032&google/cloud/" - + "gkebackup/v1/backup.proto\032+google/cloud/" - + "gkebackup/v1/backup_plan.proto\032\'google/c" - + "loud/gkebackup/v1/restore.proto\032,google/" - + "cloud/gkebackup/v1/restore_plan.proto\032&g" - + "oogle/cloud/gkebackup/v1/volume.proto\032#g" - + "oogle/longrunning/operations.proto\032 goog" - + "le/protobuf/field_mask.proto\032\037google/pro" - + "tobuf/timestamp.proto\"\200\002\n\021OperationMetad" - + "ata\0224\n\013create_time\030\001 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\022\023\n\006target\030\003" - + " \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_m" - + "essage\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellat" - + "ion\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003" - + "\"\262\001\n\027CreateBackupPlanRequest\0229\n\006parent\030\001" - + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" - + "ocation\022?\n\013backup_plan\030\002 \001(\0132%.google.cl" - + "oud.gkebackup.v1.BackupPlanB\003\340A\002\022\033\n\016back" - + "up_plan_id\030\003 \001(\tB\003\340A\002\"\234\001\n\026ListBackupPlan" - + "sRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locati" - + "ons.googleapis.com/Location\022\021\n\tpage_size" - + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001" - + "(\t\022\020\n\010order_by\030\005 \001(\t\"\204\001\n\027ListBackupPlans" - + "Response\022;\n\014backup_plans\030\001 \003(\0132%.google." - + "cloud.gkebackup.v1.BackupPlan\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\024G" - + "etBackupPlanRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A" - + "%\n#gkebackup.googleapis.com/BackupPlan\"\213" - + "\001\n\027UpdateBackupPlanRequest\022?\n\013backup_pla" - + "n\030\001 \001(\0132%.google.cloud.gkebackup.v1.Back" - + "upPlanB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMask\"b\n\027DeleteBackupPlan" - + "Request\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#gkebackup" - + ".googleapis.com/BackupPlan\022\014\n\004etag\030\002 \001(\t" - + "\"\230\001\n\023CreateBackupRequest\022;\n\006parent\030\001 \001(\t" - + "B+\340A\002\372A%\n#gkebackup.googleapis.com/Backu" - + "pPlan\0221\n\006backup\030\002 \001(\0132!.google.cloud.gke" - + "backup.v1.Backup\022\021\n\tbackup_id\030\003 \001(\t\"\232\001\n\022" - + "ListBackupsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372" - + "A%\n#gkebackup.googleapis.com/BackupPlan\022" - + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016" - + "\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"b\n\023List" - + "BackupsResponse\0222\n\007backups\030\001 \003(\0132!.googl" - + "e.cloud.gkebackup.v1.Backup\022\027\n\017next_page" - + "_token\030\002 \001(\t\"I\n\020GetBackupRequest\0225\n\004name" - + "\030\001 \001(\tB\'\340A\002\372A!\n\037gkebackup.googleapis.com" - + "/Backup\"~\n\023UpdateBackupRequest\0226\n\006backup" - + "\030\001 \001(\0132!.google.cloud.gkebackup.v1.Backu" - + "pB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.pro" - + "tobuf.FieldMask\"i\n\023DeleteBackupRequest\0225" - + "\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037gkebackup.googleap" - + "is.com/Backup\022\014\n\004etag\030\002 \001(\t\022\r\n\005force\030\003 \001" - + "(\010\"\234\001\n\030ListVolumeBackupsRequest\0227\n\006paren" - + "t\030\001 \001(\tB\'\340A\002\372A!\n\037gkebackup.googleapis.co" - + "m/Backup\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" - + "n\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(" - + "\t\"u\n\031ListVolumeBackupsResponse\022?\n\016volume" - + "_backups\030\001 \003(\0132\'.google.cloud.gkebackup." - + "v1.VolumeBackup\022\027\n\017next_page_token\030\002 \001(\t" - + "\"U\n\026GetVolumeBackupRequest\022;\n\004name\030\001 \001(\t" - + "B-\340A\002\372A\'\n%gkebackup.googleapis.com/Volum" - + "eBackup\"\266\001\n\030CreateRestorePlanRequest\0229\n\006" - + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" - + "is.com/Location\022A\n\014restore_plan\030\002 \001(\0132&." - + "google.cloud.gkebackup.v1.RestorePlanB\003\340" - + "A\002\022\034\n\017restore_plan_id\030\003 \001(\tB\003\340A\002\"\235\001\n\027Lis" - + "tRestorePlansRequest\0229\n\006parent\030\001 \001(\tB)\340A" - + "\002\372A#\n!locations.googleapis.com/Location\022" - + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016" - + "\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\207\001\n\030Lis" - + "tRestorePlansResponse\022=\n\rrestore_plans\030\001" - + " \003(\0132&.google.cloud.gkebackup.v1.Restore" - + "Plan\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" - + "able\030\003 \003(\t\"S\n\025GetRestorePlanRequest\022:\n\004n" - + "ame\030\001 \001(\tB,\340A\002\372A&\n$gkebackup.googleapis." - + "com/RestorePlan\"\216\001\n\030UpdateRestorePlanReq" - + "uest\022A\n\014restore_plan\030\001 \001(\0132&.google.clou" - + "d.gkebackup.v1.RestorePlanB\003\340A\002\022/\n\013updat" - + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" - + "\"s\n\030DeleteRestorePlanRequest\022:\n\004name\030\001 \001" - + "(\tB,\340A\002\372A&\n$gkebackup.googleapis.com/Res" - + "torePlan\022\014\n\004etag\030\002 \001(\t\022\r\n\005force\030\003 \001(\010\"\247\001" - + "\n\024CreateRestoreRequest\022<\n\006parent\030\001 \001(\tB," - + "\340A\002\372A&\n$gkebackup.googleapis.com/Restore" - + "Plan\0228\n\007restore\030\002 \001(\0132\".google.cloud.gke" - + "backup.v1.RestoreB\003\340A\002\022\027\n\nrestore_id\030\003 \001" - + "(\tB\003\340A\002\"\234\001\n\023ListRestoresRequest\022<\n\006paren" - + "t\030\001 \001(\tB,\340A\002\372A&\n$gkebackup.googleapis.co" - + "m/RestorePlan\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" - + "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" - + "\030\005 \001(\t\"z\n\024ListRestoresResponse\0224\n\010restor" - + "es\030\001 \003(\0132\".google.cloud.gkebackup.v1.Res" - + "tore\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" - + "able\030\003 \003(\t\"K\n\021GetRestoreRequest\0226\n\004name\030" - + "\001 \001(\tB(\340A\002\372A\"\n gkebackup.googleapis.com/" - + "Restore\"\201\001\n\024UpdateRestoreRequest\0228\n\007rest" - + "ore\030\001 \001(\0132\".google.cloud.gkebackup.v1.Re" - + "storeB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google" - + ".protobuf.FieldMask\"k\n\024DeleteRestoreRequ" - + "est\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n gkebackup.goo" - + "gleapis.com/Restore\022\014\n\004etag\030\002 \001(\t\022\r\n\005for" - + "ce\030\003 \001(\010\"\236\001\n\031ListVolumeRestoresRequest\0228" - + "\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n gkebackup.google" - + "apis.com/Restore\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" - + "age_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order" - + "_by\030\005 \001(\t\"x\n\032ListVolumeRestoresResponse\022" - + "A\n\017volume_restores\030\001 \003(\0132(.google.cloud." - + "gkebackup.v1.VolumeRestore\022\027\n\017next_page_" - + "token\030\002 \001(\t\"W\n\027GetVolumeRestoreRequest\022<" - + "\n\004name\030\001 \001(\tB.\340A\002\372A(\n&gkebackup.googleap" - + "is.com/VolumeRestore2\305(\n\014BackupForGKE\022\362\001" - + "\n\020CreateBackupPlan\0222.google.cloud.gkebac" - + "kup.v1.CreateBackupPlanRequest\032\035.google." - + "longrunning.Operation\"\212\001\202\323\344\223\002>\"//v1/{par" - + "ent=projects/*/locations/*}/backupPlans:" - + "\013backup_plan\332A!parent,backup_plan,backup" - + "_plan_id\312A\037\n\nBackupPlan\022\021OperationMetada" - + "ta\022\272\001\n\017ListBackupPlans\0221.google.cloud.gk" - + "ebackup.v1.ListBackupPlansRequest\0322.goog" - + "le.cloud.gkebackup.v1.ListBackupPlansRes" - + "ponse\"@\202\323\344\223\0021\022//v1/{parent=projects/*/lo" - + "cations/*}/backupPlans\332A\006parent\022\247\001\n\rGetB" - + "ackupPlan\022/.google.cloud.gkebackup.v1.Ge" - + "tBackupPlanRequest\032%.google.cloud.gkebac" - + "kup.v1.BackupPlan\">\202\323\344\223\0021\022//v1/{name=pro" - + "jects/*/locations/*/backupPlans/*}\332A\004nam" - + "e\022\364\001\n\020UpdateBackupPlan\0222.google.cloud.gk" - + "ebackup.v1.UpdateBackupPlanRequest\032\035.goo" - + "gle.longrunning.Operation\"\214\001\202\323\344\223\002J2;/v1/" - + "{backup_plan.name=projects/*/locations/*" - + "/backupPlans/*}:\013backup_plan\332A\027backup_pl" - + "an,update_mask\312A\037\n\nBackupPlan\022\021Operation" - + "Metadata\022\322\001\n\020DeleteBackupPlan\0222.google.c" - + "loud.gkebackup.v1.DeleteBackupPlanReques" - + "t\032\035.google.longrunning.Operation\"k\202\323\344\223\0021" - + "*//v1/{name=projects/*/locations/*/backu" - + "pPlans/*}\332A\004name\312A*\n\025google.protobuf.Emp" - + "ty\022\021OperationMetadata\022\341\001\n\014CreateBackup\022." - + ".google.cloud.gkebackup.v1.CreateBackupR" - + "equest\032\035.google.longrunning.Operation\"\201\001" - + "\202\323\344\223\002C\"9/v1/{parent=projects/*/locations" - + "/*/backupPlans/*}/backups:\006backup\332A\027pare" - + "nt,backup,backup_id\312A\033\n\006Backup\022\021Operatio" - + "nMetadata\022\270\001\n\013ListBackups\022-.google.cloud" - + ".gkebackup.v1.ListBackupsRequest\032..googl" - + "e.cloud.gkebackup.v1.ListBackupsResponse" - + "\"J\202\323\344\223\002;\0229/v1/{parent=projects/*/locatio" - + "ns/*/backupPlans/*}/backups\332A\006parent\022\245\001\n" - + "\tGetBackup\022+.google.cloud.gkebackup.v1.G" - + "etBackupRequest\032!.google.cloud.gkebackup" - + ".v1.Backup\"H\202\323\344\223\002;\0229/v1/{name=projects/*" - + "/locations/*/backupPlans/*/backups/*}\332A\004" - + "name\022\343\001\n\014UpdateBackup\022..google.cloud.gke" - + "backup.v1.UpdateBackupRequest\032\035.google.l" - + "ongrunning.Operation\"\203\001\202\323\344\223\002J2@/v1/{back" - + "up.name=projects/*/locations/*/backupPla" - + "ns/*/backups/*}:\006backup\332A\022backup,update_" - + "mask\312A\033\n\006Backup\022\021OperationMetadata\022\324\001\n\014D" - + "eleteBackup\022..google.cloud.gkebackup.v1." - + "DeleteBackupRequest\032\035.google.longrunning" - + ".Operation\"u\202\323\344\223\002;*9/v1/{name=projects/*" - + "/locations/*/backupPlans/*/backups/*}\332A\004" - + "name\312A*\n\025google.protobuf.Empty\022\021Operatio" - + "nMetadata\022\332\001\n\021ListVolumeBackups\0223.google" - + ".cloud.gkebackup.v1.ListVolumeBackupsReq" - + "uest\0324.google.cloud.gkebackup.v1.ListVol" - + "umeBackupsResponse\"Z\202\323\344\223\002K\022I/v1/{parent=" - + "projects/*/locations/*/backupPlans/*/bac" - + "kups/*}/volumeBackups\332A\006parent\022\307\001\n\017GetVo" - + "lumeBackup\0221.google.cloud.gkebackup.v1.G" - + "etVolumeBackupRequest\032\'.google.cloud.gke" - + "backup.v1.VolumeBackup\"X\202\323\344\223\002K\022I/v1/{nam" - + "e=projects/*/locations/*/backupPlans/*/b" - + "ackups/*/volumeBackups/*}\332A\004name\022\371\001\n\021Cre" - + "ateRestorePlan\0223.google.cloud.gkebackup." - + "v1.CreateRestorePlanRequest\032\035.google.lon" - + "grunning.Operation\"\217\001\202\323\344\223\002@\"0/v1/{parent" - + "=projects/*/locations/*}/restorePlans:\014r" - + "estore_plan\332A#parent,restore_plan,restor" - + "e_plan_id\312A \n\013RestorePlan\022\021OperationMeta" - + "data\022\276\001\n\020ListRestorePlans\0222.google.cloud" - + ".gkebackup.v1.ListRestorePlansRequest\0323." - + "google.cloud.gkebackup.v1.ListRestorePla" - + "nsResponse\"A\202\323\344\223\0022\0220/v1/{parent=projects" - + "/*/locations/*}/restorePlans\332A\006parent\022\253\001" - + "\n\016GetRestorePlan\0220.google.cloud.gkebacku" - + "p.v1.GetRestorePlanRequest\032&.google.clou" - + "d.gkebackup.v1.RestorePlan\"?\202\323\344\223\0022\0220/v1/" - + "{name=projects/*/locations/*/restorePlan" - + "s/*}\332A\004name\022\373\001\n\021UpdateRestorePlan\0223.goog" - + "le.cloud.gkebackup.v1.UpdateRestorePlanR" - + "equest\032\035.google.longrunning.Operation\"\221\001" - + "\202\323\344\223\002M2=/v1/{restore_plan.name=projects/" - + "*/locations/*/restorePlans/*}:\014restore_p" - + "lan\332A\030restore_plan,update_mask\312A \n\013Resto" - + "rePlan\022\021OperationMetadata\022\325\001\n\021DeleteRest" - + "orePlan\0223.google.cloud.gkebackup.v1.Dele" - + "teRestorePlanRequest\032\035.google.longrunnin" - + "g.Operation\"l\202\323\344\223\0022*0/v1/{name=projects/" - + "*/locations/*/restorePlans/*}\332A\004name\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadat" - + "a\022\351\001\n\rCreateRestore\022/.google.cloud.gkeba" - + "ckup.v1.CreateRestoreRequest\032\035.google.lo" - + "ngrunning.Operation\"\207\001\202\323\344\223\002F\";/v1/{paren" - + "t=projects/*/locations/*/restorePlans/*}" - + "/restores:\007restore\332A\031parent,restore,rest" - + "ore_id\312A\034\n\007Restore\022\021OperationMetadata\022\275\001" - + "\n\014ListRestores\022..google.cloud.gkebackup." - + "v1.ListRestoresRequest\032/.google.cloud.gk" - + "ebackup.v1.ListRestoresResponse\"L\202\323\344\223\002=\022" - + ";/v1/{parent=projects/*/locations/*/rest" - + "orePlans/*}/restores\332A\006parent\022\252\001\n\nGetRes" - + "tore\022,.google.cloud.gkebackup.v1.GetRest" - + "oreRequest\032\".google.cloud.gkebackup.v1.R" - + "estore\"J\202\323\344\223\002=\022;/v1/{name=projects/*/loc" - + "ations/*/restorePlans/*/restores/*}\332A\004na" - + "me\022\353\001\n\rUpdateRestore\022/.google.cloud.gkeb" - + "ackup.v1.UpdateRestoreRequest\032\035.google.l" - + "ongrunning.Operation\"\211\001\202\323\344\223\002N2C/v1/{rest" - + "ore.name=projects/*/locations/*/restoreP" - + "lans/*/restores/*}:\007restore\332A\023restore,up" - + "date_mask\312A\034\n\007Restore\022\021OperationMetadata" - + "\022\330\001\n\rDeleteRestore\022/.google.cloud.gkebac" - + "kup.v1.DeleteRestoreRequest\032\035.google.lon" - + "grunning.Operation\"w\202\323\344\223\002=*;/v1/{name=pr" - + "ojects/*/locations/*/restorePlans/*/rest" - + "ores/*}\332A\004name\312A*\n\025google.protobuf.Empty" - + "\022\021OperationMetadata\022\340\001\n\022ListVolumeRestor" - + "es\0224.google.cloud.gkebackup.v1.ListVolum" - + "eRestoresRequest\0325.google.cloud.gkebacku" - + "p.v1.ListVolumeRestoresResponse\"]\202\323\344\223\002N\022" - + "L/v1/{parent=projects/*/locations/*/rest" - + "orePlans/*/restores/*}/volumeRestores\332A\006" - + "parent\022\315\001\n\020GetVolumeRestore\0222.google.clo" - + "ud.gkebackup.v1.GetVolumeRestoreRequest\032" - + "(.google.cloud.gkebackup.v1.VolumeRestor" - + "e\"[\202\323\344\223\002N\022L/v1/{name=projects/*/location" - + "s/*/restorePlans/*/restores/*/volumeRest" - + "ores/*}\332A\004name\032L\312A\030gkebackup.googleapis." - + "com\322A.https://www.googleapis.com/auth/cl" - + "oud-platformB\250\003\n\035com.google.cloud.gkebac" - + "kup.v1B\016GKEBackupProtoP\001ZBgoogle.golang." - + "org/genproto/googleapis/cloud/gkebackup/" - + "v1;gkebackup\252\002\031Google.Cloud.GkeBackup.V1" - + "\312\002\031Google\\Cloud\\GkeBackup\\V1\352\002\034Google::C" - + "loud::GkeBackup::V1\352A^\n container.google" - + "apis.com/Cluster\022:projects/{project}/loc" - + "ations/{location}/clusters/{cluster}\352Ax\n" - + "!cloudkms.googleapis.com/CryptoKey\022Sproj" - + "ects/{project}/locations/{location}/keyR" - + "ings/{key_ring}/cryptoKeys/{crypto_key}b" - + "\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.gkebackup.v1.BackupProto.getDescriptor(), - com.google.cloud.gkebackup.v1.BackupPlanProto.getDescriptor(), - com.google.cloud.gkebackup.v1.RestoreProto.getDescriptor(), - com.google.cloud.gkebackup.v1.RestorePlanProto.getDescriptor(), - com.google.cloud.gkebackup.v1.VolumeProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkebackup_v1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - }); - internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor, - new java.lang.String[] { - "Parent", "BackupPlan", "BackupPlanId", - }); - internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor, - new java.lang.String[] { - "BackupPlans", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor, - new java.lang.String[] { - "BackupPlan", "UpdateMask", - }); - internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor, - new java.lang.String[] { - "Name", "Etag", - }); - internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor, - new java.lang.String[] { - "Parent", "Backup", "BackupId", - }); - internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor, - new java.lang.String[] { - "Backups", "NextPageToken", - }); - internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_gkebackup_v1_GetBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor, - new java.lang.String[] { - "Backup", "UpdateMask", - }); - internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor, - new java.lang.String[] { - "Name", "Etag", "Force", - }); - internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor, - new java.lang.String[] { - "VolumeBackups", "NextPageToken", - }); - internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor, - new java.lang.String[] { - "Parent", "RestorePlan", "RestorePlanId", - }); - internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor, - new java.lang.String[] { - "RestorePlans", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor, - new java.lang.String[] { - "RestorePlan", "UpdateMask", - }); - internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor, - new java.lang.String[] { - "Name", "Etag", "Force", - }); - internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor, - new java.lang.String[] { - "Parent", "Restore", "RestoreId", - }); - internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor, - new java.lang.String[] { - "Restores", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor, - new java.lang.String[] { - "Restore", "UpdateMask", - }); - internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor, - new java.lang.String[] { - "Name", "Etag", "Force", - }); - internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor, - new java.lang.String[] { - "VolumeRestores", "NextPageToken", - }); - internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor, - new java.lang.String[] { - "Name", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.gkebackup.v1.BackupProto.getDescriptor(); - com.google.cloud.gkebackup.v1.BackupPlanProto.getDescriptor(); - com.google.cloud.gkebackup.v1.RestoreProto.getDescriptor(); - com.google.cloud.gkebackup.v1.RestorePlanProto.getDescriptor(); - com.google.cloud.gkebackup.v1.VolumeProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequestOrBuilder.java deleted file mode 100644 index 373aadd..0000000 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/gkebackup.proto - -package com.google.cloud.gkebackup.v1; - -public interface GetBackupPlanRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetBackupPlanRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Fully qualified BackupPlan name.
-   * Format: projects/*/locations/*/backupPlans/*
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Fully qualified BackupPlan name.
-   * Format: projects/*/locations/*/backupPlans/*
-   * 
- * - * - * 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-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequestOrBuilder.java deleted file mode 100644 index 5037dc3..0000000 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/gkebackup.proto - -package com.google.cloud.gkebackup.v1; - -public interface GetBackupRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetBackupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Full name of the Backup resource.
-   * Format: projects/*/locations/*/backupPlans/*/backups/*
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Full name of the Backup resource.
-   * Format: projects/*/locations/*/backupPlans/*/backups/*
-   * 
- * - * - * 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-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequestOrBuilder.java deleted file mode 100644 index 0f2ce89..0000000 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/gkebackup.proto - -package com.google.cloud.gkebackup.v1; - -public interface GetRestorePlanRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetRestorePlanRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Fully qualified RestorePlan name.
-   * Format: projects/*/locations/*/restorePlans/*
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Fully qualified RestorePlan name.
-   * Format: projects/*/locations/*/restorePlans/*
-   * 
- * - * - * 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-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequestOrBuilder.java deleted file mode 100644 index e5dffa3..0000000 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/gkebackup.proto - -package com.google.cloud.gkebackup.v1; - -public interface GetRestoreRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetRestoreRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the restore resource.
-   * Format: projects/*/locations/*/restorePlans/*/restores/*
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the restore resource.
-   * Format: projects/*/locations/*/restorePlans/*/restores/*
-   * 
- * - * - * 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-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequestOrBuilder.java deleted file mode 100644 index b6bbae9..0000000 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/gkebackup.proto - -package com.google.cloud.gkebackup.v1; - -public interface GetVolumeBackupRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetVolumeBackupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Full name of the VolumeBackup resource.
-   * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Full name of the VolumeBackup resource.
-   * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
-   * 
- * - * - * 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-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequestOrBuilder.java deleted file mode 100644 index 7b2aab5..0000000 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/gkebackup.proto - -package com.google.cloud.gkebackup.v1; - -public interface GetVolumeRestoreRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetVolumeRestoreRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Full name of the VolumeRestore resource.
-   * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Full name of the VolumeRestore resource.
-   * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
-   * 
- * - * - * 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-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanProto.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanProto.java deleted file mode 100644 index 6729005..0000000 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanProto.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/restore_plan.proto - -package com.google.cloud.gkebackup.v1; - -public final class RestorePlanProto { - private RestorePlanProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_RestorePlan_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/gkebackup/v1/restore_plan" - + ".proto\022\031google.cloud.gkebackup.v1\032\037googl" - + "e/api/field_behavior.proto\032\031google/api/r" - + "esource.proto\032\'google/cloud/gkebackup/v1" - + "/restore.proto\032\037google/protobuf/timestam" - + "p.proto\"\363\004\n\013RestorePlan\022\021\n\004name\030\001 \001(\tB\003\340" - + "A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" - + "date_time\030\004 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\022\023\n\013description\030\005 \001(\t\022C\n\013backup_" - + "plan\030\006 \001(\tB.\340A\005\340A\002\372A%\n#gkebackup.googlea" - + "pis.com/BackupPlan\022<\n\007cluster\030\007 \001(\tB+\340A\005" - + "\340A\002\372A\"\n container.googleapis.com/Cluster" - + "\022E\n\016restore_config\030\010 \001(\0132(.google.cloud." - + "gkebackup.v1.RestoreConfigB\003\340A\002\022B\n\006label" - + "s\030\t \003(\01322.google.cloud.gkebackup.v1.Rest" - + "orePlan.LabelsEntry\022\021\n\004etag\030\n \001(\tB\003\340A\003\032-" - + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001:n\352Ak\n$gkebackup.googleapis.com/Res" - + "torePlan\022Cprojects/{project}/locations/{" - + "location}/restorePlans/{restore_plan}B\316\001" - + "\n\035com.google.cloud.gkebackup.v1B\020Restore" - + "PlanProtoP\001ZBgoogle.golang.org/genproto/" - + "googleapis/cloud/gkebackup/v1;gkebackup\252" - + "\002\031Google.Cloud.GkeBackup.V1\312\002\031Google\\Clo" - + "ud\\GkeBackup\\V1\352\002\034Google::Cloud::GkeBack" - + "up::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.gkebackup.v1.RestoreProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkebackup_v1_RestorePlan_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor, - new java.lang.String[] { - "Name", - "Uid", - "CreateTime", - "UpdateTime", - "Description", - "BackupPlan", - "Cluster", - "RestoreConfig", - "Labels", - "Etag", - }); - internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_descriptor = - internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.gkebackup.v1.RestoreProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreProto.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreProto.java deleted file mode 100644 index 167ba12..0000000 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreProto.java +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/restore.proto - -package com.google.cloud.gkebackup.v1; - -public final class RestoreProto { - private RestoreProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_Restore_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_RestoreConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\'google/cloud/gkebackup/v1/restore.prot" - + "o\022\031google.cloud.gkebackup.v1\032\037google/api" - + "/field_behavior.proto\032\031google/api/resour" - + "ce.proto\032&google/cloud/gkebackup/v1/comm" - + "on.proto\032\037google/protobuf/timestamp.prot" - + "o\"\377\007\n\007Restore\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030" - + "\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" - + "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023" - + "\n\013description\030\005 \001(\t\022:\n\006backup\030\006 \001(\tB*\340A\005" - + "\340A\002\372A!\n\037gkebackup.googleapis.com/Backup\022" - + "9\n\007cluster\030\007 \001(\tB(\340A\003\372A\"\n container.goog" - + "leapis.com/Cluster\022E\n\016restore_config\030\010 \001" - + "(\0132(.google.cloud.gkebackup.v1.RestoreCo" - + "nfigB\003\340A\003\022>\n\006labels\030\t \003(\0132..google.cloud" - + ".gkebackup.v1.Restore.LabelsEntry\022<\n\005sta" - + "te\030\n \001(\0162(.google.cloud.gkebackup.v1.Res" - + "tore.StateB\003\340A\003\022\031\n\014state_reason\030\013 \001(\tB\003\340" - + "A\003\0226\n\rcomplete_time\030\014 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\022%\n\030resources_restored" - + "_count\030\r \001(\005B\003\340A\003\022%\n\030resources_excluded_" - + "count\030\016 \001(\005B\003\340A\003\022#\n\026resources_failed_cou" - + "nt\030\017 \001(\005B\003\340A\003\022#\n\026volumes_restored_count\030" - + "\020 \001(\005B\003\340A\003\022\021\n\004etag\030\021 \001(\tB\003\340A\003\032-\n\013LabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"f\n\005" - + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING" - + "\020\001\022\017\n\013IN_PROGRESS\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FA" - + "ILED\020\004\022\014\n\010DELETING\020\005:}\352Az\n gkebackup.goo" - + "gleapis.com/Restore\022Vprojects/{project}/" - + "locations/{location}/restorePlans/{resto" - + "re_plan}/restores/{restore}\"\250\014\n\rRestoreC" - + "onfig\022d\n\032volume_data_restore_policy\030\001 \001(" - + "\0162@.google.cloud.gkebackup.v1.RestoreCon" - + "fig.VolumeDataRestorePolicy\022p\n cluster_r" - + "esource_conflict_policy\030\002 \001(\0162F.google.c" - + "loud.gkebackup.v1.RestoreConfig.ClusterR" - + "esourceConflictPolicy\022p\n namespaced_reso" - + "urce_restore_mode\030\003 \001(\0162F.google.cloud.g" - + "kebackup.v1.RestoreConfig.NamespacedReso" - + "urceRestoreMode\022l\n\036cluster_resource_rest" - + "ore_scope\030\004 \001(\0132D.google.cloud.gkebackup" - + ".v1.RestoreConfig.ClusterResourceRestore" - + "Scope\022\030\n\016all_namespaces\030\005 \001(\010H\000\022D\n\023selec" - + "ted_namespaces\030\006 \001(\0132%.google.cloud.gkeb" - + "ackup.v1.NamespacesH\000\022K\n\025selected_applic" - + "ations\030\007 \001(\0132*.google.cloud.gkebackup.v1" - + ".NamespacedNamesH\000\022U\n\022substitution_rules" - + "\030\010 \003(\01329.google.cloud.gkebackup.v1.Resto" - + "reConfig.SubstitutionRule\032:\n\tGroupKind\022\026" - + "\n\016resource_group\030\001 \001(\t\022\025\n\rresource_kind\030" - + "\002 \001(\t\032o\n\033ClusterResourceRestoreScope\022P\n\024" - + "selected_group_kinds\030\001 \003(\01322.google.clou" - + "d.gkebackup.v1.RestoreConfig.GroupKind\032\317" - + "\001\n\020SubstitutionRule\022\031\n\021target_namespaces" - + "\030\001 \003(\t\022N\n\022target_group_kinds\030\002 \003(\01322.goo" - + "gle.cloud.gkebackup.v1.RestoreConfig.Gro" - + "upKind\022\035\n\020target_json_path\030\003 \001(\tB\003\340A\002\022\036\n" - + "\026original_value_pattern\030\004 \001(\t\022\021\n\tnew_val" - + "ue\030\005 \001(\t\"\257\001\n\027VolumeDataRestorePolicy\022*\n&" - + "VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED\020\000" - + "\022#\n\037RESTORE_VOLUME_DATA_FROM_BACKUP\020\001\022#\n" - + "\037REUSE_VOLUME_HANDLE_FROM_BACKUP\020\002\022\036\n\032NO" - + "_VOLUME_DATA_RESTORATION\020\003\"\203\001\n\035ClusterRe" - + "sourceConflictPolicy\0220\n,CLUSTER_RESOURCE" - + "_CONFLICT_POLICY_UNSPECIFIED\020\000\022\030\n\024USE_EX" - + "ISTING_VERSION\020\001\022\026\n\022USE_BACKUP_VERSION\020\002" - + "\"\177\n\035NamespacedResourceRestoreMode\0220\n,NAM" - + "ESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIE" - + "D\020\000\022\026\n\022DELETE_AND_RESTORE\020\001\022\024\n\020FAIL_ON_C" - + "ONFLICT\020\002B#\n!namespaced_resource_restore" - + "_scopeB\312\001\n\035com.google.cloud.gkebackup.v1" - + "B\014RestoreProtoP\001ZBgoogle.golang.org/genp" - + "roto/googleapis/cloud/gkebackup/v1;gkeba" - + "ckup\252\002\031Google.Cloud.GkeBackup.V1\312\002\031Googl" - + "e\\Cloud\\GkeBackup\\V1\352\002\034Google::Cloud::Gk" - + "eBackup::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_gkebackup_v1_Restore_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_Restore_descriptor, - new java.lang.String[] { - "Name", - "Uid", - "CreateTime", - "UpdateTime", - "Description", - "Backup", - "Cluster", - "RestoreConfig", - "Labels", - "State", - "StateReason", - "CompleteTime", - "ResourcesRestoredCount", - "ResourcesExcludedCount", - "ResourcesFailedCount", - "VolumesRestoredCount", - "Etag", - }); - internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor = - internal_static_google_cloud_gkebackup_v1_Restore_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkebackup_v1_RestoreConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor, - new java.lang.String[] { - "VolumeDataRestorePolicy", - "ClusterResourceConflictPolicy", - "NamespacedResourceRestoreMode", - "ClusterResourceRestoreScope", - "AllNamespaces", - "SelectedNamespaces", - "SelectedApplications", - "SubstitutionRules", - "NamespacedResourceRestoreScope", - }); - internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor = - internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor, - new java.lang.String[] { - "ResourceGroup", "ResourceKind", - }); - internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor = - internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor, - new java.lang.String[] { - "SelectedGroupKinds", - }); - internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor = - internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor, - new java.lang.String[] { - "TargetNamespaces", - "TargetGroupKinds", - "TargetJsonPath", - "OriginalValuePattern", - "NewValue", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeProto.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeProto.java deleted file mode 100644 index 61b3504..0000000 --- a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeProto.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/volume.proto - -package com.google.cloud.gkebackup.v1; - -public final class VolumeProto { - private VolumeProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_VolumeBackup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_VolumeRestore_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n&google/cloud/gkebackup/v1/volume.proto" - + "\022\031google.cloud.gkebackup.v1\032\037google/api/" - + "field_behavior.proto\032\031google/api/resourc" - + "e.proto\032&google/cloud/gkebackup/v1/commo" - + "n.proto\032\037google/protobuf/timestamp.proto" - + "\"\250\007\n\014VolumeBackup\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003" - + "uid\030\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" - + "ime\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\022B\n\nsource_pvc\030\005 \001(\0132).google.cloud.gk" - + "ebackup.v1.NamespacedNameB\003\340A\003\022!\n\024volume" - + "_backup_handle\030\006 \001(\tB\003\340A\003\022O\n\006format\030\007 \001(" - + "\0162:.google.cloud.gkebackup.v1.VolumeBack" - + "up.VolumeBackupFormatB\003\340A\003\022\032\n\rstorage_by" - + "tes\030\010 \001(\003B\003\340A\003\022\034\n\017disk_size_bytes\030\t \001(\003B" - + "\003\340A\003\0226\n\rcomplete_time\030\n \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\022A\n\005state\030\013 \001(\0162-.go" - + "ogle.cloud.gkebackup.v1.VolumeBackup.Sta" - + "teB\003\340A\003\022\032\n\rstate_message\030\014 \001(\tB\003\340A\003\022\021\n\004e" - + "tag\030\r \001(\tB\003\340A\003\"S\n\022VolumeBackupFormat\022$\n " - + "VOLUME_BACKUP_FORMAT_UNSPECIFIED\020\000\022\027\n\023GC" - + "E_PERSISTENT_DISK\020\001\"v\n\005State\022\025\n\021STATE_UN" - + "SPECIFIED\020\000\022\014\n\010CREATING\020\001\022\020\n\014SNAPSHOTTIN" - + "G\020\002\022\r\n\tUPLOADING\020\003\022\r\n\tSUCCEEDED\020\004\022\n\n\006FAI" - + "LED\020\005\022\014\n\010DELETING\020\006:\235\001\352A\231\001\n%gkebackup.go" - + "ogleapis.com/VolumeBackup\022pprojects/{pro" - + "ject}/locations/{location}/backupPlans/{" - + "backup_plan}/backups/{backup}/volumeBack" - + "ups/{volume_backup}\"\347\006\n\rVolumeRestore\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0224\n\013cr" - + "eate_time\030\003 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022\032\n\rvolume_backup\030" - + "\005 \001(\tB\003\340A\003\022B\n\ntarget_pvc\030\006 \001(\0132).google." - + "cloud.gkebackup.v1.NamespacedNameB\003\340A\003\022\032" - + "\n\rvolume_handle\030\007 \001(\tB\003\340A\003\022M\n\013volume_typ" - + "e\030\010 \001(\01623.google.cloud.gkebackup.v1.Volu" - + "meRestore.VolumeTypeB\003\340A\003\0226\n\rcomplete_ti" - + "me\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\022B\n\005state\030\n \001(\0162..google.cloud.gkebacku" - + "p.v1.VolumeRestore.StateB\003\340A\003\022\032\n\rstate_m" - + "essage\030\013 \001(\tB\003\340A\003\022\021\n\004etag\030\014 \001(\tB\003\340A\003\"B\n\n" - + "VolumeType\022\033\n\027VOLUME_TYPE_UNSPECIFIED\020\000\022" - + "\027\n\023GCE_PERSISTENT_DISK\020\001\"d\n\005State\022\025\n\021STA" - + "TE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\r\n\tRESTOR" - + "ING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\022\014\n\010DELE" - + "TING\020\005:\244\001\352A\240\001\n&gkebackup.googleapis.com/" - + "VolumeRestore\022vprojects/{project}/locati" - + "ons/{location}/restorePlans/{restore_pla" - + "n}/restores/{restore}/volumeRestores/{vo" - + "lume_restore}B\311\001\n\035com.google.cloud.gkeba" - + "ckup.v1B\013VolumeProtoP\001ZBgoogle.golang.or" - + "g/genproto/googleapis/cloud/gkebackup/v1" - + ";gkebackup\252\002\031Google.Cloud.GkeBackup.V1\312\002" - + "\031Google\\Cloud\\GkeBackup\\V1\352\002\034Google::Clo" - + "ud::GkeBackup::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkebackup_v1_VolumeBackup_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor, - new java.lang.String[] { - "Name", - "Uid", - "CreateTime", - "UpdateTime", - "SourcePvc", - "VolumeBackupHandle", - "Format", - "StorageBytes", - "DiskSizeBytes", - "CompleteTime", - "State", - "StateMessage", - "Etag", - }); - internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkebackup_v1_VolumeRestore_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor, - new java.lang.String[] { - "Name", - "Uid", - "CreateTime", - "UpdateTime", - "VolumeBackup", - "TargetPvc", - "VolumeHandle", - "VolumeType", - "CompleteTime", - "State", - "StateMessage", - "Etag", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From 2d6bb806e7b3be78190b2d63dfaa38fca753e76b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 27 Jun 2022 21:17:24 +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 --- .../gkebackup/v1/BackupForGKEClient.java | 78 +- .../gkebackup/v1/BackupForGKESettings.java | 7 +- .../cloud/gkebackup/v1/gapic_metadata.json | 0 .../cloud/gkebackup/v1/package-info.java | 0 .../gkebackup/v1/stub/BackupForGKEStub.java | 0 .../v1/stub/BackupForGKEStubSettings.java | 12 +- .../stub/GrpcBackupForGKECallableFactory.java | 0 .../v1/stub/GrpcBackupForGKEStub.java | 1 - .../HttpJsonBackupForGKECallableFactory.java | 0 .../v1/stub/HttpJsonBackupForGKEStub.java | 1 - .../v1/BackupForGKEClientHttpJsonTest.java | 0 .../gkebackup/v1/BackupForGKEClientTest.java | 0 .../cloud/gkebackup/v1/MockBackupForGKE.java | 0 .../gkebackup/v1/MockBackupForGKEImpl.java | 0 .../cloud/gkebackup/v1/BackupForGKEGrpc.java | 3001 +++++++++++++ .../cloud/gkebackup/v1/BackupForGKEGrpc.java | 2286 ---------- .../cloud/gkebackup/v1/BackupPlanProto.java | 146 - .../cloud/gkebackup/v1/BackupProto.java | 146 - .../cloud/gkebackup/v1/CommonProto.java | 100 - .../cloud/gkebackup/v1/GKEBackupProto.java | 668 --- .../v1/GetBackupPlanRequestOrBuilder.java | 31 - .../v1/GetBackupRequestOrBuilder.java | 31 - .../v1/GetRestorePlanRequestOrBuilder.java | 31 - .../v1/GetRestoreRequestOrBuilder.java | 31 - .../v1/GetVolumeBackupRequestOrBuilder.java | 31 - .../v1/GetVolumeRestoreRequestOrBuilder.java | 31 - .../cloud/gkebackup/v1/RestorePlanProto.java | 98 - .../cloud/gkebackup/v1/RestoreProto.java | 191 - .../cloud/gkebackup/v1/VolumeProto.java | 126 - .../com/google/cloud/gkebackup/v1/Backup.java | 3759 +++++++++++------ .../google/cloud/gkebackup/v1/BackupName.java | 0 .../cloud/gkebackup/v1/BackupOrBuilder.java | 318 +- .../google/cloud/gkebackup/v1/BackupPlan.java | 2995 ++++++++----- .../cloud/gkebackup/v1/BackupPlanName.java | 0 .../gkebackup/v1/BackupPlanOrBuilder.java | 166 +- .../cloud/gkebackup/v1/BackupPlanProto.java | 183 + .../cloud/gkebackup/v1/BackupProto.java | 198 + .../cloud/gkebackup/v1/CommonProto.java | 118 + .../gkebackup/v1/CreateBackupPlanRequest.java | 570 ++- .../v1/CreateBackupPlanRequestOrBuilder.java | 64 +- .../gkebackup/v1/CreateBackupRequest.java | 515 ++- .../v1/CreateBackupRequestOrBuilder.java | 52 +- .../v1/CreateRestorePlanRequest.java | 567 ++- .../v1/CreateRestorePlanRequestOrBuilder.java | 64 +- .../gkebackup/v1/CreateRestoreRequest.java | 560 ++- .../v1/CreateRestoreRequestOrBuilder.java | 61 +- .../gkebackup/v1/DeleteBackupPlanRequest.java | 421 +- .../v1/DeleteBackupPlanRequestOrBuilder.java | 44 +- .../gkebackup/v1/DeleteBackupRequest.java | 455 +- .../v1/DeleteBackupRequestOrBuilder.java | 47 +- .../v1/DeleteRestorePlanRequest.java | 458 +- .../v1/DeleteRestorePlanRequestOrBuilder.java | 47 +- .../gkebackup/v1/DeleteRestoreRequest.java | 455 +- .../v1/DeleteRestoreRequestOrBuilder.java | 47 +- .../cloud/gkebackup/v1/EncryptionKey.java | 301 +- .../gkebackup/v1/EncryptionKeyOrBuilder.java | 27 +- .../cloud/gkebackup/v1/GKEBackupProto.java | 719 ++++ .../gkebackup/v1/GetBackupPlanRequest.java | 339 +- .../v1/GetBackupPlanRequestOrBuilder.java | 56 + .../cloud/gkebackup/v1/GetBackupRequest.java | 329 +- .../v1/GetBackupRequestOrBuilder.java | 56 + .../gkebackup/v1/GetRestorePlanRequest.java | 339 +- .../v1/GetRestorePlanRequestOrBuilder.java | 56 + .../cloud/gkebackup/v1/GetRestoreRequest.java | 332 +- .../v1/GetRestoreRequestOrBuilder.java | 56 + .../gkebackup/v1/GetVolumeBackupRequest.java | 339 +- .../v1/GetVolumeBackupRequestOrBuilder.java | 56 + .../gkebackup/v1/GetVolumeRestoreRequest.java | 342 +- .../v1/GetVolumeRestoreRequestOrBuilder.java | 56 + .../gkebackup/v1/ListBackupPlansRequest.java | 612 +-- .../v1/ListBackupPlansRequestOrBuilder.java | 65 +- .../gkebackup/v1/ListBackupPlansResponse.java | 573 ++- .../v1/ListBackupPlansResponseOrBuilder.java | 63 +- .../gkebackup/v1/ListBackupsRequest.java | 609 +-- .../v1/ListBackupsRequestOrBuilder.java | 65 +- .../gkebackup/v1/ListBackupsResponse.java | 459 +- .../v1/ListBackupsResponseOrBuilder.java | 46 +- .../gkebackup/v1/ListRestorePlansRequest.java | 615 +-- .../v1/ListRestorePlansRequestOrBuilder.java | 65 +- .../v1/ListRestorePlansResponse.java | 574 ++- .../v1/ListRestorePlansResponseOrBuilder.java | 63 +- .../gkebackup/v1/ListRestoresRequest.java | 612 +-- .../v1/ListRestoresRequestOrBuilder.java | 65 +- .../gkebackup/v1/ListRestoresResponse.java | 569 ++- .../v1/ListRestoresResponseOrBuilder.java | 63 +- .../v1/ListVolumeBackupsRequest.java | 615 +-- .../v1/ListVolumeBackupsRequestOrBuilder.java | 65 +- .../v1/ListVolumeBackupsResponse.java | 456 +- .../ListVolumeBackupsResponseOrBuilder.java | 45 +- .../v1/ListVolumeRestoresRequest.java | 615 +-- .../ListVolumeRestoresRequestOrBuilder.java | 65 +- .../v1/ListVolumeRestoresResponse.java | 453 +- .../ListVolumeRestoresResponseOrBuilder.java | 45 +- .../cloud/gkebackup/v1/LocationName.java | 0 .../cloud/gkebackup/v1/NamespacedName.java | 380 +- .../gkebackup/v1/NamespacedNameOrBuilder.java | 36 +- .../cloud/gkebackup/v1/NamespacedNames.java | 349 +- .../v1/NamespacedNamesOrBuilder.java | 36 +- .../google/cloud/gkebackup/v1/Namespaces.java | 330 +- .../gkebackup/v1/NamespacesOrBuilder.java | 36 +- .../cloud/gkebackup/v1/OperationMetadata.java | 845 ++-- .../v1/OperationMetadataOrBuilder.java | 91 +- .../google/cloud/gkebackup/v1/Restore.java | 1994 +++++---- .../cloud/gkebackup/v1/RestoreConfig.java | 3380 ++++++++++----- .../gkebackup/v1/RestoreConfigOrBuilder.java | 155 +- .../cloud/gkebackup/v1/RestoreName.java | 0 .../cloud/gkebackup/v1/RestoreOrBuilder.java | 228 +- .../cloud/gkebackup/v1/RestorePlan.java | 1446 ++++--- .../cloud/gkebackup/v1/RestorePlanName.java | 0 .../gkebackup/v1/RestorePlanOrBuilder.java | 173 +- .../cloud/gkebackup/v1/RestorePlanProto.java | 123 + .../cloud/gkebackup/v1/RestoreProto.java | 239 ++ .../gkebackup/v1/UpdateBackupPlanRequest.java | 483 ++- .../v1/UpdateBackupPlanRequestOrBuilder.java | 46 +- .../gkebackup/v1/UpdateBackupRequest.java | 464 +- .../v1/UpdateBackupRequestOrBuilder.java | 43 +- .../v1/UpdateRestorePlanRequest.java | 480 ++- .../v1/UpdateRestorePlanRequestOrBuilder.java | 46 +- .../gkebackup/v1/UpdateRestoreRequest.java | 473 ++- .../v1/UpdateRestoreRequestOrBuilder.java | 43 +- .../cloud/gkebackup/v1/VolumeBackup.java | 1605 ++++--- .../cloud/gkebackup/v1/VolumeBackupName.java | 0 .../gkebackup/v1/VolumeBackupOrBuilder.java | 171 +- .../cloud/gkebackup/v1/VolumeProto.java | 165 + .../cloud/gkebackup/v1/VolumeRestore.java | 1606 ++++--- .../cloud/gkebackup/v1/VolumeRestoreName.java | 0 .../gkebackup/v1/VolumeRestoreOrBuilder.java | 174 +- .../google/cloud/gkebackup/v1/backup.proto | 0 .../cloud/gkebackup/v1/backup_plan.proto | 0 .../google/cloud/gkebackup/v1/common.proto | 0 .../google/cloud/gkebackup/v1/gkebackup.proto | 0 .../google/cloud/gkebackup/v1/restore.proto | 0 .../cloud/gkebackup/v1/restore_plan.proto | 0 .../google/cloud/gkebackup/v1/volume.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createbackup/AsyncCreateBackup.java | 0 .../createbackup/AsyncCreateBackupLRO.java | 0 .../createbackup/SyncCreateBackup.java | 0 ...reateBackupBackupplannameBackupString.java | 0 .../SyncCreateBackupStringBackupString.java | 0 .../AsyncCreateBackupPlan.java | 0 .../AsyncCreateBackupPlanLRO.java | 0 .../SyncCreateBackupPlan.java | 0 ...ackupPlanLocationnameBackupplanString.java | 0 ...reateBackupPlanStringBackupplanString.java | 0 .../createrestore/AsyncCreateRestore.java | 0 .../createrestore/AsyncCreateRestoreLRO.java | 0 .../createrestore/SyncCreateRestore.java | 0 ...teRestoreRestoreplannameRestoreString.java | 0 .../SyncCreateRestoreStringRestoreString.java | 0 .../AsyncCreateRestorePlan.java | 0 .../AsyncCreateRestorePlanLRO.java | 0 .../SyncCreateRestorePlan.java | 0 ...torePlanLocationnameRestoreplanString.java | 0 ...ateRestorePlanStringRestoreplanString.java | 0 .../deletebackup/AsyncDeleteBackup.java | 0 .../deletebackup/AsyncDeleteBackupLRO.java | 0 .../deletebackup/SyncDeleteBackup.java | 0 .../SyncDeleteBackupBackupname.java | 0 .../deletebackup/SyncDeleteBackupString.java | 0 .../AsyncDeleteBackupPlan.java | 0 .../AsyncDeleteBackupPlanLRO.java | 0 .../SyncDeleteBackupPlan.java | 0 .../SyncDeleteBackupPlanBackupplanname.java | 0 .../SyncDeleteBackupPlanString.java | 0 .../deleterestore/AsyncDeleteRestore.java | 0 .../deleterestore/AsyncDeleteRestoreLRO.java | 0 .../deleterestore/SyncDeleteRestore.java | 0 .../SyncDeleteRestoreRestorename.java | 0 .../SyncDeleteRestoreString.java | 0 .../AsyncDeleteRestorePlan.java | 0 .../AsyncDeleteRestorePlanLRO.java | 0 .../SyncDeleteRestorePlan.java | 0 .../SyncDeleteRestorePlanRestoreplanname.java | 0 .../SyncDeleteRestorePlanString.java | 0 .../getbackup/AsyncGetBackup.java | 0 .../getbackup/SyncGetBackup.java | 0 .../getbackup/SyncGetBackupBackupname.java | 0 .../getbackup/SyncGetBackupString.java | 0 .../getbackupplan/AsyncGetBackupPlan.java | 0 .../getbackupplan/SyncGetBackupPlan.java | 0 .../SyncGetBackupPlanBackupplanname.java | 0 .../SyncGetBackupPlanString.java | 0 .../getrestore/AsyncGetRestore.java | 0 .../getrestore/SyncGetRestore.java | 0 .../getrestore/SyncGetRestoreRestorename.java | 0 .../getrestore/SyncGetRestoreString.java | 0 .../getrestoreplan/AsyncGetRestorePlan.java | 0 .../getrestoreplan/SyncGetRestorePlan.java | 0 .../SyncGetRestorePlanRestoreplanname.java | 0 .../SyncGetRestorePlanString.java | 0 .../getvolumebackup/AsyncGetVolumeBackup.java | 0 .../getvolumebackup/SyncGetVolumeBackup.java | 0 .../SyncGetVolumeBackupString.java | 0 .../SyncGetVolumeBackupVolumebackupname.java | 0 .../AsyncGetVolumeRestore.java | 0 .../SyncGetVolumeRestore.java | 0 .../SyncGetVolumeRestoreString.java | 0 ...SyncGetVolumeRestoreVolumerestorename.java | 0 .../listbackupplans/AsyncListBackupPlans.java | 0 .../AsyncListBackupPlansPaged.java | 0 .../listbackupplans/SyncListBackupPlans.java | 0 .../SyncListBackupPlansLocationname.java | 0 .../SyncListBackupPlansString.java | 0 .../listbackups/AsyncListBackups.java | 0 .../listbackups/AsyncListBackupsPaged.java | 0 .../listbackups/SyncListBackups.java | 0 .../SyncListBackupsBackupplanname.java | 0 .../listbackups/SyncListBackupsString.java | 0 .../AsyncListRestorePlans.java | 0 .../AsyncListRestorePlansPaged.java | 0 .../SyncListRestorePlans.java | 0 .../SyncListRestorePlansLocationname.java | 0 .../SyncListRestorePlansString.java | 0 .../listrestores/AsyncListRestores.java | 0 .../listrestores/AsyncListRestoresPaged.java | 0 .../listrestores/SyncListRestores.java | 0 .../SyncListRestoresRestoreplanname.java | 0 .../listrestores/SyncListRestoresString.java | 0 .../AsyncListVolumeBackups.java | 0 .../AsyncListVolumeBackupsPaged.java | 0 .../SyncListVolumeBackups.java | 0 .../SyncListVolumeBackupsBackupname.java | 0 .../SyncListVolumeBackupsString.java | 0 .../AsyncListVolumeRestores.java | 0 .../AsyncListVolumeRestoresPaged.java | 0 .../SyncListVolumeRestores.java | 0 .../SyncListVolumeRestoresRestorename.java | 0 .../SyncListVolumeRestoresString.java | 0 .../updatebackup/AsyncUpdateBackup.java | 0 .../updatebackup/AsyncUpdateBackupLRO.java | 0 .../updatebackup/SyncUpdateBackup.java | 0 .../SyncUpdateBackupBackupFieldmask.java | 0 .../AsyncUpdateBackupPlan.java | 0 .../AsyncUpdateBackupPlanLRO.java | 0 .../SyncUpdateBackupPlan.java | 0 ...ncUpdateBackupPlanBackupplanFieldmask.java | 0 .../updaterestore/AsyncUpdateRestore.java | 0 .../updaterestore/AsyncUpdateRestoreLRO.java | 0 .../updaterestore/SyncUpdateRestore.java | 0 .../SyncUpdateRestoreRestoreFieldmask.java | 0 .../AsyncUpdateRestorePlan.java | 0 .../AsyncUpdateRestorePlanLRO.java | 0 .../SyncUpdateRestorePlan.java | 0 ...UpdateRestorePlanRestoreplanFieldmask.java | 0 .../getbackupplan/SyncGetBackupPlan.java | 0 .../getbackupplan/SyncGetBackupPlan.java | 0 249 files changed, 28377 insertions(+), 17354 deletions(-) rename {owl-bot-staging/v1/google-cloud-gke-backup => google-cloud-gke-backup}/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java (98%) rename {owl-bot-staging/v1/google-cloud-gke-backup => google-cloud-gke-backup}/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKESettings.java (98%) rename {owl-bot-staging/v1/google-cloud-gke-backup => google-cloud-gke-backup}/src/main/java/com/google/cloud/gkebackup/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-gke-backup => google-cloud-gke-backup}/src/main/java/com/google/cloud/gkebackup/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-gke-backup => google-cloud-gke-backup}/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStub.java (100%) rename {owl-bot-staging/v1/google-cloud-gke-backup => google-cloud-gke-backup}/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java (99%) rename {owl-bot-staging/v1/google-cloud-gke-backup => google-cloud-gke-backup}/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKECallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-gke-backup => google-cloud-gke-backup}/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKEStub.java (99%) rename {owl-bot-staging/v1/google-cloud-gke-backup => google-cloud-gke-backup}/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKECallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-gke-backup => google-cloud-gke-backup}/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKEStub.java (99%) rename {owl-bot-staging/v1/google-cloud-gke-backup => google-cloud-gke-backup}/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-gke-backup => google-cloud-gke-backup}/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-gke-backup => google-cloud-gke-backup}/src/test/java/com/google/cloud/gkebackup/v1/MockBackupForGKE.java (100%) rename {owl-bot-staging/v1/google-cloud-gke-backup => google-cloud-gke-backup}/src/test/java/com/google/cloud/gkebackup/v1/MockBackupForGKEImpl.java (100%) create mode 100644 grpc-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CommonProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GKEBackupProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeProto.java rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/Backup.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/BackupName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/BackupOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/BackupPlan.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanOrBuilder.java (80%) create mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanProto.java create mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupProto.java create mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CommonProto.java rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequestOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequestOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequestOrBuilder.java (54%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequestOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequestOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequestOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKey.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKeyOrBuilder.java (55%) create mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GKEBackupProto.java rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequest.java (65%) create mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequest.java (66%) create mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequest.java (65%) create mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequest.java (66%) create mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequest.java (66%) create mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequest.java (65%) create mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequestOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponse.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponseOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequestOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponseOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequestOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponse.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponseOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequestOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponse.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponseOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequestOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponse.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponseOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequestOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponse.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponseOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/LocationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/NamespacedName.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNameOrBuilder.java (54%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNames.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNamesOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/Namespaces.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/NamespacesOrBuilder.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadata.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadataOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/Restore.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfig.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfigOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/RestoreName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/RestoreOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/RestorePlan.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanOrBuilder.java (72%) create mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanProto.java create mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreProto.java rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequestOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequest.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequestOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequestOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequestOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackup.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupOrBuilder.java (73%) create mode 100644 proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeProto.java rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestore.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/proto/google/cloud/gkebackup/v1/backup.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/proto/google/cloud/gkebackup/v1/backup_plan.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/proto/google/cloud/gkebackup/v1/common.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/proto/google/cloud/gkebackup/v1/gkebackup.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/proto/google/cloud/gkebackup/v1/restore.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/proto/google/cloud/gkebackup/v1/restore_plan.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-gke-backup-v1 => proto-google-cloud-gke-backup-v1}/src/main/proto/google/cloud/gkebackup/v1/volume.proto (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/AsyncCreateBackup.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/AsyncCreateBackupLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackup.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackupBackupplannameBackupString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackupStringBackupString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/AsyncCreateBackupPlan.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/AsyncCreateBackupPlanLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlan.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlanLocationnameBackupplanString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlanStringBackupplanString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/AsyncCreateRestore.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/AsyncCreateRestoreLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestore.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestoreRestoreplannameRestoreString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestoreStringRestoreString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/AsyncCreateRestorePlan.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/AsyncCreateRestorePlanLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlan.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlanLocationnameRestoreplanString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlanStringRestoreplanString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/AsyncDeleteBackup.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/AsyncDeleteBackupLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackup.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackupBackupname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackupString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/AsyncDeleteBackupPlan.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/AsyncDeleteBackupPlanLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlan.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlanBackupplanname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlanString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/AsyncDeleteRestore.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/AsyncDeleteRestoreLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestore.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestoreRestorename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestoreString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/AsyncDeleteRestorePlan.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/AsyncDeleteRestorePlanLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlan.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlanRestoreplanname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlanString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/AsyncGetBackup.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackup.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackupBackupname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackupString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/AsyncGetBackupPlan.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlan.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlanBackupplanname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlanString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/AsyncGetRestore.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestore.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestoreRestorename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestoreString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/AsyncGetRestorePlan.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlan.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlanRestoreplanname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlanString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/AsyncGetVolumeBackup.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackup.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackupString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackupVolumebackupname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/AsyncGetVolumeRestore.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestore.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestoreString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestoreVolumerestorename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/AsyncListBackupPlans.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/AsyncListBackupPlansPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlans.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlansLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlansString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/AsyncListBackups.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/AsyncListBackupsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackups.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackupsBackupplanname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackupsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/AsyncListRestorePlans.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/AsyncListRestorePlansPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlans.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlansLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlansString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/AsyncListRestores.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/AsyncListRestoresPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestores.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestoresRestoreplanname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestoresString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/AsyncListVolumeBackups.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/AsyncListVolumeBackupsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackups.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackupsBackupname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackupsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/AsyncListVolumeRestores.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/AsyncListVolumeRestoresPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestores.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestoresRestorename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestoresString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/AsyncUpdateBackup.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/AsyncUpdateBackupLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/SyncUpdateBackup.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/SyncUpdateBackupBackupFieldmask.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/AsyncUpdateBackupPlan.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/AsyncUpdateBackupPlanLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/SyncUpdateBackupPlan.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/SyncUpdateBackupPlanBackupplanFieldmask.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/AsyncUpdateRestore.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/AsyncUpdateRestoreLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/SyncUpdateRestore.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/SyncUpdateRestoreRestoreFieldmask.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/AsyncUpdateRestorePlan.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/AsyncUpdateRestorePlanLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/SyncUpdateRestorePlan.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/SyncUpdateRestorePlanRestoreplanFieldmask.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkesettings/getbackupplan/SyncGetBackupPlan.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/gkebackup/v1/stub/backupforgkestubsettings/getbackupplan/SyncGetBackupPlan.java (100%) diff --git a/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java b/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java rename to google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java index 0f5d9e0..47ee24f 100644 --- a/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java +++ b/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java @@ -63,13 +63,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -3439,7 +3439,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListBackupPlansPagedResponse extends AbstractPagedListResponse< - ListBackupPlansRequest, ListBackupPlansResponse, BackupPlan, ListBackupPlansPage, + ListBackupPlansRequest, + ListBackupPlansResponse, + BackupPlan, + ListBackupPlansPage, ListBackupPlansFixedSizeCollection> { public static ApiFuture createAsync( @@ -3489,7 +3492,10 @@ public ApiFuture createPageAsync( public static class ListBackupPlansFixedSizeCollection extends AbstractFixedSizeCollection< - ListBackupPlansRequest, ListBackupPlansResponse, BackupPlan, ListBackupPlansPage, + ListBackupPlansRequest, + ListBackupPlansResponse, + BackupPlan, + ListBackupPlansPage, ListBackupPlansFixedSizeCollection> { private ListBackupPlansFixedSizeCollection( @@ -3510,7 +3516,10 @@ protected ListBackupPlansFixedSizeCollection createCollection( public static class ListBackupsPagedResponse extends AbstractPagedListResponse< - ListBackupsRequest, ListBackupsResponse, Backup, ListBackupsPage, + ListBackupsRequest, + ListBackupsResponse, + Backup, + ListBackupsPage, ListBackupsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3557,7 +3566,10 @@ public ApiFuture createPageAsync( public static class ListBackupsFixedSizeCollection extends AbstractFixedSizeCollection< - ListBackupsRequest, ListBackupsResponse, Backup, ListBackupsPage, + ListBackupsRequest, + ListBackupsResponse, + Backup, + ListBackupsPage, ListBackupsFixedSizeCollection> { private ListBackupsFixedSizeCollection(List pages, int collectionSize) { @@ -3577,7 +3589,10 @@ protected ListBackupsFixedSizeCollection createCollection( public static class ListVolumeBackupsPagedResponse extends AbstractPagedListResponse< - ListVolumeBackupsRequest, ListVolumeBackupsResponse, VolumeBackup, ListVolumeBackupsPage, + ListVolumeBackupsRequest, + ListVolumeBackupsResponse, + VolumeBackup, + ListVolumeBackupsPage, ListVolumeBackupsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3598,7 +3613,9 @@ private ListVolumeBackupsPagedResponse(ListVolumeBackupsPage page) { public static class ListVolumeBackupsPage extends AbstractPage< - ListVolumeBackupsRequest, ListVolumeBackupsResponse, VolumeBackup, + ListVolumeBackupsRequest, + ListVolumeBackupsResponse, + VolumeBackup, ListVolumeBackupsPage> { private ListVolumeBackupsPage( @@ -3628,7 +3645,10 @@ public ApiFuture createPageAsync( public static class ListVolumeBackupsFixedSizeCollection extends AbstractFixedSizeCollection< - ListVolumeBackupsRequest, ListVolumeBackupsResponse, VolumeBackup, ListVolumeBackupsPage, + ListVolumeBackupsRequest, + ListVolumeBackupsResponse, + VolumeBackup, + ListVolumeBackupsPage, ListVolumeBackupsFixedSizeCollection> { private ListVolumeBackupsFixedSizeCollection( @@ -3649,7 +3669,10 @@ protected ListVolumeBackupsFixedSizeCollection createCollection( public static class ListRestorePlansPagedResponse extends AbstractPagedListResponse< - ListRestorePlansRequest, ListRestorePlansResponse, RestorePlan, ListRestorePlansPage, + ListRestorePlansRequest, + ListRestorePlansResponse, + RestorePlan, + ListRestorePlansPage, ListRestorePlansFixedSizeCollection> { public static ApiFuture createAsync( @@ -3699,7 +3722,10 @@ public ApiFuture createPageAsync( public static class ListRestorePlansFixedSizeCollection extends AbstractFixedSizeCollection< - ListRestorePlansRequest, ListRestorePlansResponse, RestorePlan, ListRestorePlansPage, + ListRestorePlansRequest, + ListRestorePlansResponse, + RestorePlan, + ListRestorePlansPage, ListRestorePlansFixedSizeCollection> { private ListRestorePlansFixedSizeCollection( @@ -3720,7 +3746,10 @@ protected ListRestorePlansFixedSizeCollection createCollection( public static class ListRestoresPagedResponse extends AbstractPagedListResponse< - ListRestoresRequest, ListRestoresResponse, Restore, ListRestoresPage, + ListRestoresRequest, + ListRestoresResponse, + Restore, + ListRestoresPage, ListRestoresFixedSizeCollection> { public static ApiFuture createAsync( @@ -3769,7 +3798,10 @@ public ApiFuture createPageAsync( public static class ListRestoresFixedSizeCollection extends AbstractFixedSizeCollection< - ListRestoresRequest, ListRestoresResponse, Restore, ListRestoresPage, + ListRestoresRequest, + ListRestoresResponse, + Restore, + ListRestoresPage, ListRestoresFixedSizeCollection> { private ListRestoresFixedSizeCollection(List pages, int collectionSize) { @@ -3789,8 +3821,11 @@ protected ListRestoresFixedSizeCollection createCollection( public static class ListVolumeRestoresPagedResponse extends AbstractPagedListResponse< - ListVolumeRestoresRequest, ListVolumeRestoresResponse, VolumeRestore, - ListVolumeRestoresPage, ListVolumeRestoresFixedSizeCollection> { + ListVolumeRestoresRequest, + ListVolumeRestoresResponse, + VolumeRestore, + ListVolumeRestoresPage, + ListVolumeRestoresFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, @@ -3810,7 +3845,9 @@ private ListVolumeRestoresPagedResponse(ListVolumeRestoresPage page) { public static class ListVolumeRestoresPage extends AbstractPage< - ListVolumeRestoresRequest, ListVolumeRestoresResponse, VolumeRestore, + ListVolumeRestoresRequest, + ListVolumeRestoresResponse, + VolumeRestore, ListVolumeRestoresPage> { private ListVolumeRestoresPage( @@ -3840,8 +3877,11 @@ public ApiFuture createPageAsync( public static class ListVolumeRestoresFixedSizeCollection extends AbstractFixedSizeCollection< - ListVolumeRestoresRequest, ListVolumeRestoresResponse, VolumeRestore, - ListVolumeRestoresPage, ListVolumeRestoresFixedSizeCollection> { + ListVolumeRestoresRequest, + ListVolumeRestoresResponse, + VolumeRestore, + ListVolumeRestoresPage, + ListVolumeRestoresFixedSizeCollection> { private ListVolumeRestoresFixedSizeCollection( List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKESettings.java b/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKESettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKESettings.java rename to google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKESettings.java index 9db8076..c4202fe 100644 --- a/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKESettings.java +++ b/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKESettings.java @@ -34,7 +34,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.cloud.gkebackup.v1.stub.BackupForGKEStubSettings; @@ -51,9 +50,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/gapic_metadata.json b/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/gapic_metadata.json rename to google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/package-info.java b/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/package-info.java rename to google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStub.java b/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStub.java rename to google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStub.java diff --git a/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java b/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java rename to google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java index ad6d49d..854c954 100644 --- a/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java +++ b/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java @@ -107,9 +107,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -469,7 +469,8 @@ public ApiFuture getFuturePagedResponse( ListVolumeBackupsRequest, ListVolumeBackupsResponse, ListVolumeBackupsPagedResponse> LIST_VOLUME_BACKUPS_PAGE_STR_FACT = new PagedListResponseFactory< - ListVolumeBackupsRequest, ListVolumeBackupsResponse, + ListVolumeBackupsRequest, + ListVolumeBackupsResponse, ListVolumeBackupsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -525,7 +526,8 @@ public ApiFuture getFuturePagedResponse( ListVolumeRestoresRequest, ListVolumeRestoresResponse, ListVolumeRestoresPagedResponse> LIST_VOLUME_RESTORES_PAGE_STR_FACT = new PagedListResponseFactory< - ListVolumeRestoresRequest, ListVolumeRestoresResponse, + ListVolumeRestoresRequest, + ListVolumeRestoresResponse, ListVolumeRestoresPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( diff --git a/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKECallableFactory.java b/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKECallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKECallableFactory.java rename to google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKECallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKEStub.java b/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKEStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKEStub.java rename to google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKEStub.java index fcff246..010c036 100644 --- a/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKEStub.java +++ b/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/GrpcBackupForGKEStub.java @@ -74,7 +74,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKECallableFactory.java b/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKECallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKECallableFactory.java rename to google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKECallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKEStub.java b/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKEStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKEStub.java rename to google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKEStub.java index bbe1fff..a726aa1 100644 --- a/owl-bot-staging/v1/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKEStub.java +++ b/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/HttpJsonBackupForGKEStub.java @@ -35,7 +35,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientHttpJsonTest.java b/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientHttpJsonTest.java rename to google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientTest.java b/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientTest.java rename to google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/MockBackupForGKE.java b/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/MockBackupForGKE.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/MockBackupForGKE.java rename to google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/MockBackupForGKE.java diff --git a/owl-bot-staging/v1/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/MockBackupForGKEImpl.java b/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/MockBackupForGKEImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/MockBackupForGKEImpl.java rename to google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/MockBackupForGKEImpl.java diff --git a/grpc-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEGrpc.java b/grpc-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEGrpc.java new file mode 100644 index 0000000..8df5ccd --- /dev/null +++ b/grpc-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEGrpc.java @@ -0,0 +1,3001 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.gkebackup.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * BackupForGKE allows Kubernetes administrators to configure, execute, and
+ * manage backup and restore operations for their GKE clusters.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/gkebackup/v1/gkebackup.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class BackupForGKEGrpc { + + private BackupForGKEGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.gkebackup.v1.BackupForGKE"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest, com.google.longrunning.Operation> + getCreateBackupPlanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBackupPlan", + requestType = com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest, com.google.longrunning.Operation> + getCreateBackupPlanMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest, com.google.longrunning.Operation> + getCreateBackupPlanMethod; + if ((getCreateBackupPlanMethod = BackupForGKEGrpc.getCreateBackupPlanMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getCreateBackupPlanMethod = BackupForGKEGrpc.getCreateBackupPlanMethod) == null) { + BackupForGKEGrpc.getCreateBackupPlanMethod = + getCreateBackupPlanMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBackupPlan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BackupForGKEMethodDescriptorSupplier("CreateBackupPlan")) + .build(); + } + } + } + return getCreateBackupPlanMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.ListBackupPlansRequest, + com.google.cloud.gkebackup.v1.ListBackupPlansResponse> + getListBackupPlansMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBackupPlans", + requestType = com.google.cloud.gkebackup.v1.ListBackupPlansRequest.class, + responseType = com.google.cloud.gkebackup.v1.ListBackupPlansResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.ListBackupPlansRequest, + com.google.cloud.gkebackup.v1.ListBackupPlansResponse> + getListBackupPlansMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.ListBackupPlansRequest, + com.google.cloud.gkebackup.v1.ListBackupPlansResponse> + getListBackupPlansMethod; + if ((getListBackupPlansMethod = BackupForGKEGrpc.getListBackupPlansMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getListBackupPlansMethod = BackupForGKEGrpc.getListBackupPlansMethod) == null) { + BackupForGKEGrpc.getListBackupPlansMethod = + getListBackupPlansMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBackupPlans")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListBackupPlansRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListBackupPlansResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BackupForGKEMethodDescriptorSupplier("ListBackupPlans")) + .build(); + } + } + } + return getListBackupPlansMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.GetBackupPlanRequest, + com.google.cloud.gkebackup.v1.BackupPlan> + getGetBackupPlanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBackupPlan", + requestType = com.google.cloud.gkebackup.v1.GetBackupPlanRequest.class, + responseType = com.google.cloud.gkebackup.v1.BackupPlan.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.GetBackupPlanRequest, + com.google.cloud.gkebackup.v1.BackupPlan> + getGetBackupPlanMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.GetBackupPlanRequest, + com.google.cloud.gkebackup.v1.BackupPlan> + getGetBackupPlanMethod; + if ((getGetBackupPlanMethod = BackupForGKEGrpc.getGetBackupPlanMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getGetBackupPlanMethod = BackupForGKEGrpc.getGetBackupPlanMethod) == null) { + BackupForGKEGrpc.getGetBackupPlanMethod = + getGetBackupPlanMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBackupPlan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.GetBackupPlanRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance())) + .setSchemaDescriptor( + new BackupForGKEMethodDescriptorSupplier("GetBackupPlan")) + .build(); + } + } + } + return getGetBackupPlanMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest, com.google.longrunning.Operation> + getUpdateBackupPlanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBackupPlan", + requestType = com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest, com.google.longrunning.Operation> + getUpdateBackupPlanMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest, com.google.longrunning.Operation> + getUpdateBackupPlanMethod; + if ((getUpdateBackupPlanMethod = BackupForGKEGrpc.getUpdateBackupPlanMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getUpdateBackupPlanMethod = BackupForGKEGrpc.getUpdateBackupPlanMethod) == null) { + BackupForGKEGrpc.getUpdateBackupPlanMethod = + getUpdateBackupPlanMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBackupPlan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BackupForGKEMethodDescriptorSupplier("UpdateBackupPlan")) + .build(); + } + } + } + return getUpdateBackupPlanMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest, com.google.longrunning.Operation> + getDeleteBackupPlanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBackupPlan", + requestType = com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest, com.google.longrunning.Operation> + getDeleteBackupPlanMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest, com.google.longrunning.Operation> + getDeleteBackupPlanMethod; + if ((getDeleteBackupPlanMethod = BackupForGKEGrpc.getDeleteBackupPlanMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getDeleteBackupPlanMethod = BackupForGKEGrpc.getDeleteBackupPlanMethod) == null) { + BackupForGKEGrpc.getDeleteBackupPlanMethod = + getDeleteBackupPlanMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBackupPlan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BackupForGKEMethodDescriptorSupplier("DeleteBackupPlan")) + .build(); + } + } + } + return getDeleteBackupPlanMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.CreateBackupRequest, com.google.longrunning.Operation> + getCreateBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBackup", + requestType = com.google.cloud.gkebackup.v1.CreateBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.CreateBackupRequest, com.google.longrunning.Operation> + getCreateBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.CreateBackupRequest, com.google.longrunning.Operation> + getCreateBackupMethod; + if ((getCreateBackupMethod = BackupForGKEGrpc.getCreateBackupMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getCreateBackupMethod = BackupForGKEGrpc.getCreateBackupMethod) == null) { + BackupForGKEGrpc.getCreateBackupMethod = + getCreateBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.CreateBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("CreateBackup")) + .build(); + } + } + } + return getCreateBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.ListBackupsRequest, + com.google.cloud.gkebackup.v1.ListBackupsResponse> + getListBackupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBackups", + requestType = com.google.cloud.gkebackup.v1.ListBackupsRequest.class, + responseType = com.google.cloud.gkebackup.v1.ListBackupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.ListBackupsRequest, + com.google.cloud.gkebackup.v1.ListBackupsResponse> + getListBackupsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.ListBackupsRequest, + com.google.cloud.gkebackup.v1.ListBackupsResponse> + getListBackupsMethod; + if ((getListBackupsMethod = BackupForGKEGrpc.getListBackupsMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getListBackupsMethod = BackupForGKEGrpc.getListBackupsMethod) == null) { + BackupForGKEGrpc.getListBackupsMethod = + getListBackupsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBackups")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListBackupsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListBackupsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("ListBackups")) + .build(); + } + } + } + return getListBackupsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.GetBackupRequest, com.google.cloud.gkebackup.v1.Backup> + getGetBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBackup", + requestType = com.google.cloud.gkebackup.v1.GetBackupRequest.class, + responseType = com.google.cloud.gkebackup.v1.Backup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.GetBackupRequest, com.google.cloud.gkebackup.v1.Backup> + getGetBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.GetBackupRequest, com.google.cloud.gkebackup.v1.Backup> + getGetBackupMethod; + if ((getGetBackupMethod = BackupForGKEGrpc.getGetBackupMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getGetBackupMethod = BackupForGKEGrpc.getGetBackupMethod) == null) { + BackupForGKEGrpc.getGetBackupMethod = + getGetBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.GetBackupRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.Backup.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("GetBackup")) + .build(); + } + } + } + return getGetBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.UpdateBackupRequest, com.google.longrunning.Operation> + getUpdateBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBackup", + requestType = com.google.cloud.gkebackup.v1.UpdateBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.UpdateBackupRequest, com.google.longrunning.Operation> + getUpdateBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.UpdateBackupRequest, com.google.longrunning.Operation> + getUpdateBackupMethod; + if ((getUpdateBackupMethod = BackupForGKEGrpc.getUpdateBackupMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getUpdateBackupMethod = BackupForGKEGrpc.getUpdateBackupMethod) == null) { + BackupForGKEGrpc.getUpdateBackupMethod = + getUpdateBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.UpdateBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("UpdateBackup")) + .build(); + } + } + } + return getUpdateBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.DeleteBackupRequest, com.google.longrunning.Operation> + getDeleteBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBackup", + requestType = com.google.cloud.gkebackup.v1.DeleteBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.DeleteBackupRequest, com.google.longrunning.Operation> + getDeleteBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.DeleteBackupRequest, com.google.longrunning.Operation> + getDeleteBackupMethod; + if ((getDeleteBackupMethod = BackupForGKEGrpc.getDeleteBackupMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getDeleteBackupMethod = BackupForGKEGrpc.getDeleteBackupMethod) == null) { + BackupForGKEGrpc.getDeleteBackupMethod = + getDeleteBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.DeleteBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("DeleteBackup")) + .build(); + } + } + } + return getDeleteBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest, + com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse> + getListVolumeBackupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVolumeBackups", + requestType = com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.class, + responseType = com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest, + com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse> + getListVolumeBackupsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest, + com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse> + getListVolumeBackupsMethod; + if ((getListVolumeBackupsMethod = BackupForGKEGrpc.getListVolumeBackupsMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getListVolumeBackupsMethod = BackupForGKEGrpc.getListVolumeBackupsMethod) == null) { + BackupForGKEGrpc.getListVolumeBackupsMethod = + getListVolumeBackupsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVolumeBackups")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BackupForGKEMethodDescriptorSupplier("ListVolumeBackups")) + .build(); + } + } + } + return getListVolumeBackupsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest, + com.google.cloud.gkebackup.v1.VolumeBackup> + getGetVolumeBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetVolumeBackup", + requestType = com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.class, + responseType = com.google.cloud.gkebackup.v1.VolumeBackup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest, + com.google.cloud.gkebackup.v1.VolumeBackup> + getGetVolumeBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest, + com.google.cloud.gkebackup.v1.VolumeBackup> + getGetVolumeBackupMethod; + if ((getGetVolumeBackupMethod = BackupForGKEGrpc.getGetVolumeBackupMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getGetVolumeBackupMethod = BackupForGKEGrpc.getGetVolumeBackupMethod) == null) { + BackupForGKEGrpc.getGetVolumeBackupMethod = + getGetVolumeBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolumeBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.VolumeBackup.getDefaultInstance())) + .setSchemaDescriptor( + new BackupForGKEMethodDescriptorSupplier("GetVolumeBackup")) + .build(); + } + } + } + return getGetVolumeBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest, com.google.longrunning.Operation> + getCreateRestorePlanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRestorePlan", + requestType = com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest, com.google.longrunning.Operation> + getCreateRestorePlanMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest, + com.google.longrunning.Operation> + getCreateRestorePlanMethod; + if ((getCreateRestorePlanMethod = BackupForGKEGrpc.getCreateRestorePlanMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getCreateRestorePlanMethod = BackupForGKEGrpc.getCreateRestorePlanMethod) == null) { + BackupForGKEGrpc.getCreateRestorePlanMethod = + getCreateRestorePlanMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRestorePlan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BackupForGKEMethodDescriptorSupplier("CreateRestorePlan")) + .build(); + } + } + } + return getCreateRestorePlanMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.ListRestorePlansRequest, + com.google.cloud.gkebackup.v1.ListRestorePlansResponse> + getListRestorePlansMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRestorePlans", + requestType = com.google.cloud.gkebackup.v1.ListRestorePlansRequest.class, + responseType = com.google.cloud.gkebackup.v1.ListRestorePlansResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.ListRestorePlansRequest, + com.google.cloud.gkebackup.v1.ListRestorePlansResponse> + getListRestorePlansMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.ListRestorePlansRequest, + com.google.cloud.gkebackup.v1.ListRestorePlansResponse> + getListRestorePlansMethod; + if ((getListRestorePlansMethod = BackupForGKEGrpc.getListRestorePlansMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getListRestorePlansMethod = BackupForGKEGrpc.getListRestorePlansMethod) == null) { + BackupForGKEGrpc.getListRestorePlansMethod = + getListRestorePlansMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRestorePlans")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListRestorePlansRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListRestorePlansResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BackupForGKEMethodDescriptorSupplier("ListRestorePlans")) + .build(); + } + } + } + return getListRestorePlansMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.GetRestorePlanRequest, + com.google.cloud.gkebackup.v1.RestorePlan> + getGetRestorePlanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRestorePlan", + requestType = com.google.cloud.gkebackup.v1.GetRestorePlanRequest.class, + responseType = com.google.cloud.gkebackup.v1.RestorePlan.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.GetRestorePlanRequest, + com.google.cloud.gkebackup.v1.RestorePlan> + getGetRestorePlanMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.GetRestorePlanRequest, + com.google.cloud.gkebackup.v1.RestorePlan> + getGetRestorePlanMethod; + if ((getGetRestorePlanMethod = BackupForGKEGrpc.getGetRestorePlanMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getGetRestorePlanMethod = BackupForGKEGrpc.getGetRestorePlanMethod) == null) { + BackupForGKEGrpc.getGetRestorePlanMethod = + getGetRestorePlanMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRestorePlan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.GetRestorePlanRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance())) + .setSchemaDescriptor( + new BackupForGKEMethodDescriptorSupplier("GetRestorePlan")) + .build(); + } + } + } + return getGetRestorePlanMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest, com.google.longrunning.Operation> + getUpdateRestorePlanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateRestorePlan", + requestType = com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest, com.google.longrunning.Operation> + getUpdateRestorePlanMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest, + com.google.longrunning.Operation> + getUpdateRestorePlanMethod; + if ((getUpdateRestorePlanMethod = BackupForGKEGrpc.getUpdateRestorePlanMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getUpdateRestorePlanMethod = BackupForGKEGrpc.getUpdateRestorePlanMethod) == null) { + BackupForGKEGrpc.getUpdateRestorePlanMethod = + getUpdateRestorePlanMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRestorePlan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BackupForGKEMethodDescriptorSupplier("UpdateRestorePlan")) + .build(); + } + } + } + return getUpdateRestorePlanMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest, com.google.longrunning.Operation> + getDeleteRestorePlanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRestorePlan", + requestType = com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest, com.google.longrunning.Operation> + getDeleteRestorePlanMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest, + com.google.longrunning.Operation> + getDeleteRestorePlanMethod; + if ((getDeleteRestorePlanMethod = BackupForGKEGrpc.getDeleteRestorePlanMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getDeleteRestorePlanMethod = BackupForGKEGrpc.getDeleteRestorePlanMethod) == null) { + BackupForGKEGrpc.getDeleteRestorePlanMethod = + getDeleteRestorePlanMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRestorePlan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BackupForGKEMethodDescriptorSupplier("DeleteRestorePlan")) + .build(); + } + } + } + return getDeleteRestorePlanMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.CreateRestoreRequest, com.google.longrunning.Operation> + getCreateRestoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRestore", + requestType = com.google.cloud.gkebackup.v1.CreateRestoreRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.CreateRestoreRequest, com.google.longrunning.Operation> + getCreateRestoreMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.CreateRestoreRequest, com.google.longrunning.Operation> + getCreateRestoreMethod; + if ((getCreateRestoreMethod = BackupForGKEGrpc.getCreateRestoreMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getCreateRestoreMethod = BackupForGKEGrpc.getCreateRestoreMethod) == null) { + BackupForGKEGrpc.getCreateRestoreMethod = + getCreateRestoreMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRestore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.CreateRestoreRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BackupForGKEMethodDescriptorSupplier("CreateRestore")) + .build(); + } + } + } + return getCreateRestoreMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.ListRestoresRequest, + com.google.cloud.gkebackup.v1.ListRestoresResponse> + getListRestoresMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRestores", + requestType = com.google.cloud.gkebackup.v1.ListRestoresRequest.class, + responseType = com.google.cloud.gkebackup.v1.ListRestoresResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.ListRestoresRequest, + com.google.cloud.gkebackup.v1.ListRestoresResponse> + getListRestoresMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.ListRestoresRequest, + com.google.cloud.gkebackup.v1.ListRestoresResponse> + getListRestoresMethod; + if ((getListRestoresMethod = BackupForGKEGrpc.getListRestoresMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getListRestoresMethod = BackupForGKEGrpc.getListRestoresMethod) == null) { + BackupForGKEGrpc.getListRestoresMethod = + getListRestoresMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRestores")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListRestoresRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListRestoresResponse + .getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("ListRestores")) + .build(); + } + } + } + return getListRestoresMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.GetRestoreRequest, com.google.cloud.gkebackup.v1.Restore> + getGetRestoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRestore", + requestType = com.google.cloud.gkebackup.v1.GetRestoreRequest.class, + responseType = com.google.cloud.gkebackup.v1.Restore.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.GetRestoreRequest, com.google.cloud.gkebackup.v1.Restore> + getGetRestoreMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.GetRestoreRequest, com.google.cloud.gkebackup.v1.Restore> + getGetRestoreMethod; + if ((getGetRestoreMethod = BackupForGKEGrpc.getGetRestoreMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getGetRestoreMethod = BackupForGKEGrpc.getGetRestoreMethod) == null) { + BackupForGKEGrpc.getGetRestoreMethod = + getGetRestoreMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRestore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.GetRestoreRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.Restore.getDefaultInstance())) + .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("GetRestore")) + .build(); + } + } + } + return getGetRestoreMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.UpdateRestoreRequest, com.google.longrunning.Operation> + getUpdateRestoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateRestore", + requestType = com.google.cloud.gkebackup.v1.UpdateRestoreRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.UpdateRestoreRequest, com.google.longrunning.Operation> + getUpdateRestoreMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.UpdateRestoreRequest, com.google.longrunning.Operation> + getUpdateRestoreMethod; + if ((getUpdateRestoreMethod = BackupForGKEGrpc.getUpdateRestoreMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getUpdateRestoreMethod = BackupForGKEGrpc.getUpdateRestoreMethod) == null) { + BackupForGKEGrpc.getUpdateRestoreMethod = + getUpdateRestoreMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRestore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.UpdateRestoreRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BackupForGKEMethodDescriptorSupplier("UpdateRestore")) + .build(); + } + } + } + return getUpdateRestoreMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.DeleteRestoreRequest, com.google.longrunning.Operation> + getDeleteRestoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRestore", + requestType = com.google.cloud.gkebackup.v1.DeleteRestoreRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.DeleteRestoreRequest, com.google.longrunning.Operation> + getDeleteRestoreMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.DeleteRestoreRequest, com.google.longrunning.Operation> + getDeleteRestoreMethod; + if ((getDeleteRestoreMethod = BackupForGKEGrpc.getDeleteRestoreMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getDeleteRestoreMethod = BackupForGKEGrpc.getDeleteRestoreMethod) == null) { + BackupForGKEGrpc.getDeleteRestoreMethod = + getDeleteRestoreMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRestore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.DeleteRestoreRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BackupForGKEMethodDescriptorSupplier("DeleteRestore")) + .build(); + } + } + } + return getDeleteRestoreMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest, + com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse> + getListVolumeRestoresMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVolumeRestores", + requestType = com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.class, + responseType = com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest, + com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse> + getListVolumeRestoresMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest, + com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse> + getListVolumeRestoresMethod; + if ((getListVolumeRestoresMethod = BackupForGKEGrpc.getListVolumeRestoresMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getListVolumeRestoresMethod = BackupForGKEGrpc.getListVolumeRestoresMethod) == null) { + BackupForGKEGrpc.getListVolumeRestoresMethod = + getListVolumeRestoresMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVolumeRestores")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BackupForGKEMethodDescriptorSupplier("ListVolumeRestores")) + .build(); + } + } + } + return getListVolumeRestoresMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest, + com.google.cloud.gkebackup.v1.VolumeRestore> + getGetVolumeRestoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetVolumeRestore", + requestType = com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.class, + responseType = com.google.cloud.gkebackup.v1.VolumeRestore.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest, + com.google.cloud.gkebackup.v1.VolumeRestore> + getGetVolumeRestoreMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest, + com.google.cloud.gkebackup.v1.VolumeRestore> + getGetVolumeRestoreMethod; + if ((getGetVolumeRestoreMethod = BackupForGKEGrpc.getGetVolumeRestoreMethod) == null) { + synchronized (BackupForGKEGrpc.class) { + if ((getGetVolumeRestoreMethod = BackupForGKEGrpc.getGetVolumeRestoreMethod) == null) { + BackupForGKEGrpc.getGetVolumeRestoreMethod = + getGetVolumeRestoreMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolumeRestore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkebackup.v1.VolumeRestore.getDefaultInstance())) + .setSchemaDescriptor( + new BackupForGKEMethodDescriptorSupplier("GetVolumeRestore")) + .build(); + } + } + } + return getGetVolumeRestoreMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static BackupForGKEStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BackupForGKEStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BackupForGKEStub(channel, callOptions); + } + }; + return BackupForGKEStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static BackupForGKEBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BackupForGKEBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BackupForGKEBlockingStub(channel, callOptions); + } + }; + return BackupForGKEBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static BackupForGKEFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BackupForGKEFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BackupForGKEFutureStub(channel, callOptions); + } + }; + return BackupForGKEFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * BackupForGKE allows Kubernetes administrators to configure, execute, and
+   * manage backup and restore operations for their GKE clusters.
+   * 
+ */ + public abstract static class BackupForGKEImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a new BackupPlan in a given location.
+     * 
+ */ + public void createBackupPlan( + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBackupPlanMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists BackupPlans in a given location.
+     * 
+ */ + public void listBackupPlans( + com.google.cloud.gkebackup.v1.ListBackupPlansRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBackupPlansMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve the details of a single BackupPlan.
+     * 
+ */ + public void getBackupPlan( + com.google.cloud.gkebackup.v1.GetBackupPlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetBackupPlanMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a BackupPlan.
+     * 
+ */ + public void updateBackupPlan( + com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBackupPlanMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an existing BackupPlan.
+     * 
+ */ + public void deleteBackupPlan( + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBackupPlanMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a Backup for the given BackupPlan.
+     * 
+ */ + public void createBackup( + com.google.cloud.gkebackup.v1.CreateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the Backups for a given BackupPlan.
+     * 
+ */ + public void listBackups( + com.google.cloud.gkebackup.v1.ListBackupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBackupsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve the details of a single Backup.
+     * 
+ */ + public void getBackup( + com.google.cloud.gkebackup.v1.GetBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a Backup.
+     * 
+ */ + public void updateBackup( + com.google.cloud.gkebackup.v1.UpdateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an existing Backup.
+     * 
+ */ + public void deleteBackup( + com.google.cloud.gkebackup.v1.DeleteBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the VolumeBackups for a given Backup.
+     * 
+ */ + public void listVolumeBackups( + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListVolumeBackupsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve the details of a single VolumeBackup.
+     * 
+ */ + public void getVolumeBackup( + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetVolumeBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new RestorePlan in a given location.
+     * 
+ */ + public void createRestorePlan( + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateRestorePlanMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists RestorePlans in a given location.
+     * 
+ */ + public void listRestorePlans( + com.google.cloud.gkebackup.v1.ListRestorePlansRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRestorePlansMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve the details of a single RestorePlan.
+     * 
+ */ + public void getRestorePlan( + com.google.cloud.gkebackup.v1.GetRestorePlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetRestorePlanMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a RestorePlan.
+     * 
+ */ + public void updateRestorePlan( + com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateRestorePlanMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an existing RestorePlan.
+     * 
+ */ + public void deleteRestorePlan( + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRestorePlanMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Restore for the given RestorePlan.
+     * 
+ */ + public void createRestore( + com.google.cloud.gkebackup.v1.CreateRestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateRestoreMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the Restores for a given RestorePlan.
+     * 
+ */ + public void listRestores( + com.google.cloud.gkebackup.v1.ListRestoresRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRestoresMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves the details of a single Restore.
+     * 
+ */ + public void getRestore( + com.google.cloud.gkebackup.v1.GetRestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRestoreMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a Restore.
+     * 
+ */ + public void updateRestore( + com.google.cloud.gkebackup.v1.UpdateRestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateRestoreMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an existing Restore.
+     * 
+ */ + public void deleteRestore( + com.google.cloud.gkebackup.v1.DeleteRestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRestoreMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the VolumeRestores for a given Restore.
+     * 
+ */ + public void listVolumeRestores( + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListVolumeRestoresMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve the details of a single VolumeRestore.
+     * 
+ */ + public void getVolumeRestore( + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetVolumeRestoreMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateBackupPlanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_BACKUP_PLAN))) + .addMethod( + getListBackupPlansMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.ListBackupPlansRequest, + com.google.cloud.gkebackup.v1.ListBackupPlansResponse>( + this, METHODID_LIST_BACKUP_PLANS))) + .addMethod( + getGetBackupPlanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.GetBackupPlanRequest, + com.google.cloud.gkebackup.v1.BackupPlan>(this, METHODID_GET_BACKUP_PLAN))) + .addMethod( + getUpdateBackupPlanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_BACKUP_PLAN))) + .addMethod( + getDeleteBackupPlanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_BACKUP_PLAN))) + .addMethod( + getCreateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.CreateBackupRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_BACKUP))) + .addMethod( + getListBackupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.ListBackupsRequest, + com.google.cloud.gkebackup.v1.ListBackupsResponse>( + this, METHODID_LIST_BACKUPS))) + .addMethod( + getGetBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.GetBackupRequest, + com.google.cloud.gkebackup.v1.Backup>(this, METHODID_GET_BACKUP))) + .addMethod( + getUpdateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.UpdateBackupRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_BACKUP))) + .addMethod( + getDeleteBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.DeleteBackupRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_BACKUP))) + .addMethod( + getListVolumeBackupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest, + com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse>( + this, METHODID_LIST_VOLUME_BACKUPS))) + .addMethod( + getGetVolumeBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest, + com.google.cloud.gkebackup.v1.VolumeBackup>( + this, METHODID_GET_VOLUME_BACKUP))) + .addMethod( + getCreateRestorePlanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_RESTORE_PLAN))) + .addMethod( + getListRestorePlansMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.ListRestorePlansRequest, + com.google.cloud.gkebackup.v1.ListRestorePlansResponse>( + this, METHODID_LIST_RESTORE_PLANS))) + .addMethod( + getGetRestorePlanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.GetRestorePlanRequest, + com.google.cloud.gkebackup.v1.RestorePlan>(this, METHODID_GET_RESTORE_PLAN))) + .addMethod( + getUpdateRestorePlanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_RESTORE_PLAN))) + .addMethod( + getDeleteRestorePlanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_RESTORE_PLAN))) + .addMethod( + getCreateRestoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.CreateRestoreRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_RESTORE))) + .addMethod( + getListRestoresMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.ListRestoresRequest, + com.google.cloud.gkebackup.v1.ListRestoresResponse>( + this, METHODID_LIST_RESTORES))) + .addMethod( + getGetRestoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.GetRestoreRequest, + com.google.cloud.gkebackup.v1.Restore>(this, METHODID_GET_RESTORE))) + .addMethod( + getUpdateRestoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.UpdateRestoreRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_RESTORE))) + .addMethod( + getDeleteRestoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.DeleteRestoreRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_RESTORE))) + .addMethod( + getListVolumeRestoresMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest, + com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse>( + this, METHODID_LIST_VOLUME_RESTORES))) + .addMethod( + getGetVolumeRestoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest, + com.google.cloud.gkebackup.v1.VolumeRestore>( + this, METHODID_GET_VOLUME_RESTORE))) + .build(); + } + } + + /** + * + * + *
+   * BackupForGKE allows Kubernetes administrators to configure, execute, and
+   * manage backup and restore operations for their GKE clusters.
+   * 
+ */ + public static final class BackupForGKEStub + extends io.grpc.stub.AbstractAsyncStub { + private BackupForGKEStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BackupForGKEStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BackupForGKEStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new BackupPlan in a given location.
+     * 
+ */ + public void createBackupPlan( + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBackupPlanMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists BackupPlans in a given location.
+     * 
+ */ + public void listBackupPlans( + com.google.cloud.gkebackup.v1.ListBackupPlansRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBackupPlansMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieve the details of a single BackupPlan.
+     * 
+ */ + public void getBackupPlan( + com.google.cloud.gkebackup.v1.GetBackupPlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBackupPlanMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a BackupPlan.
+     * 
+ */ + public void updateBackupPlan( + com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBackupPlanMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an existing BackupPlan.
+     * 
+ */ + public void deleteBackupPlan( + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBackupPlanMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a Backup for the given BackupPlan.
+     * 
+ */ + public void createBackup( + com.google.cloud.gkebackup.v1.CreateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBackupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the Backups for a given BackupPlan.
+     * 
+ */ + public void listBackups( + com.google.cloud.gkebackup.v1.ListBackupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBackupsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieve the details of a single Backup.
+     * 
+ */ + public void getBackup( + com.google.cloud.gkebackup.v1.GetBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBackupMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Update a Backup.
+     * 
+ */ + public void updateBackup( + com.google.cloud.gkebackup.v1.UpdateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an existing Backup.
+     * 
+ */ + public void deleteBackup( + com.google.cloud.gkebackup.v1.DeleteBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the VolumeBackups for a given Backup.
+     * 
+ */ + public void listVolumeBackups( + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVolumeBackupsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieve the details of a single VolumeBackup.
+     * 
+ */ + public void getVolumeBackup( + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetVolumeBackupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new RestorePlan in a given location.
+     * 
+ */ + public void createRestorePlan( + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRestorePlanMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists RestorePlans in a given location.
+     * 
+ */ + public void listRestorePlans( + com.google.cloud.gkebackup.v1.ListRestorePlansRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRestorePlansMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieve the details of a single RestorePlan.
+     * 
+ */ + public void getRestorePlan( + com.google.cloud.gkebackup.v1.GetRestorePlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRestorePlanMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a RestorePlan.
+     * 
+ */ + public void updateRestorePlan( + com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateRestorePlanMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an existing RestorePlan.
+     * 
+ */ + public void deleteRestorePlan( + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRestorePlanMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new Restore for the given RestorePlan.
+     * 
+ */ + public void createRestore( + com.google.cloud.gkebackup.v1.CreateRestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRestoreMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the Restores for a given RestorePlan.
+     * 
+ */ + public void listRestores( + com.google.cloud.gkebackup.v1.ListRestoresRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRestoresMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves the details of a single Restore.
+     * 
+ */ + public void getRestore( + com.google.cloud.gkebackup.v1.GetRestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRestoreMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Update a Restore.
+     * 
+ */ + public void updateRestore( + com.google.cloud.gkebackup.v1.UpdateRestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateRestoreMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an existing Restore.
+     * 
+ */ + public void deleteRestore( + com.google.cloud.gkebackup.v1.DeleteRestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRestoreMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the VolumeRestores for a given Restore.
+     * 
+ */ + public void listVolumeRestores( + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVolumeRestoresMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieve the details of a single VolumeRestore.
+     * 
+ */ + public void getVolumeRestore( + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetVolumeRestoreMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * BackupForGKE allows Kubernetes administrators to configure, execute, and
+   * manage backup and restore operations for their GKE clusters.
+   * 
+ */ + public static final class BackupForGKEBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private BackupForGKEBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BackupForGKEBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BackupForGKEBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new BackupPlan in a given location.
+     * 
+ */ + public com.google.longrunning.Operation createBackupPlan( + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBackupPlanMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists BackupPlans in a given location.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.ListBackupPlansResponse listBackupPlans( + com.google.cloud.gkebackup.v1.ListBackupPlansRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBackupPlansMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve the details of a single BackupPlan.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.BackupPlan getBackupPlan( + com.google.cloud.gkebackup.v1.GetBackupPlanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBackupPlanMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a BackupPlan.
+     * 
+ */ + public com.google.longrunning.Operation updateBackupPlan( + com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBackupPlanMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an existing BackupPlan.
+     * 
+ */ + public com.google.longrunning.Operation deleteBackupPlan( + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBackupPlanMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a Backup for the given BackupPlan.
+     * 
+ */ + public com.google.longrunning.Operation createBackup( + com.google.cloud.gkebackup.v1.CreateBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the Backups for a given BackupPlan.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.ListBackupsResponse listBackups( + com.google.cloud.gkebackup.v1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBackupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve the details of a single Backup.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.Backup getBackup( + com.google.cloud.gkebackup.v1.GetBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a Backup.
+     * 
+ */ + public com.google.longrunning.Operation updateBackup( + com.google.cloud.gkebackup.v1.UpdateBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an existing Backup.
+     * 
+ */ + public com.google.longrunning.Operation deleteBackup( + com.google.cloud.gkebackup.v1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the VolumeBackups for a given Backup.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse listVolumeBackups( + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVolumeBackupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve the details of a single VolumeBackup.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.VolumeBackup getVolumeBackup( + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetVolumeBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new RestorePlan in a given location.
+     * 
+ */ + public com.google.longrunning.Operation createRestorePlan( + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRestorePlanMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists RestorePlans in a given location.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.ListRestorePlansResponse listRestorePlans( + com.google.cloud.gkebackup.v1.ListRestorePlansRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRestorePlansMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve the details of a single RestorePlan.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.RestorePlan getRestorePlan( + com.google.cloud.gkebackup.v1.GetRestorePlanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRestorePlanMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a RestorePlan.
+     * 
+ */ + public com.google.longrunning.Operation updateRestorePlan( + com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateRestorePlanMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an existing RestorePlan.
+     * 
+ */ + public com.google.longrunning.Operation deleteRestorePlan( + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRestorePlanMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Restore for the given RestorePlan.
+     * 
+ */ + public com.google.longrunning.Operation createRestore( + com.google.cloud.gkebackup.v1.CreateRestoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRestoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the Restores for a given RestorePlan.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.ListRestoresResponse listRestores( + com.google.cloud.gkebackup.v1.ListRestoresRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRestoresMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves the details of a single Restore.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.Restore getRestore( + com.google.cloud.gkebackup.v1.GetRestoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRestoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a Restore.
+     * 
+ */ + public com.google.longrunning.Operation updateRestore( + com.google.cloud.gkebackup.v1.UpdateRestoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateRestoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an existing Restore.
+     * 
+ */ + public com.google.longrunning.Operation deleteRestore( + com.google.cloud.gkebackup.v1.DeleteRestoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRestoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the VolumeRestores for a given Restore.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse listVolumeRestores( + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVolumeRestoresMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve the details of a single VolumeRestore.
+     * 
+ */ + public com.google.cloud.gkebackup.v1.VolumeRestore getVolumeRestore( + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetVolumeRestoreMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * BackupForGKE allows Kubernetes administrators to configure, execute, and
+   * manage backup and restore operations for their GKE clusters.
+   * 
+ */ + public static final class BackupForGKEFutureStub + extends io.grpc.stub.AbstractFutureStub { + private BackupForGKEFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BackupForGKEFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BackupForGKEFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new BackupPlan in a given location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createBackupPlan(com.google.cloud.gkebackup.v1.CreateBackupPlanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBackupPlanMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists BackupPlans in a given location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkebackup.v1.ListBackupPlansResponse> + listBackupPlans(com.google.cloud.gkebackup.v1.ListBackupPlansRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBackupPlansMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve the details of a single BackupPlan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkebackup.v1.BackupPlan> + getBackupPlan(com.google.cloud.gkebackup.v1.GetBackupPlanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBackupPlanMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a BackupPlan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateBackupPlan(com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBackupPlanMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an existing BackupPlan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteBackupPlan(com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBackupPlanMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a Backup for the given BackupPlan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createBackup(com.google.cloud.gkebackup.v1.CreateBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the Backups for a given BackupPlan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkebackup.v1.ListBackupsResponse> + listBackups(com.google.cloud.gkebackup.v1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve the details of a single Backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getBackup(com.google.cloud.gkebackup.v1.GetBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a Backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateBackup(com.google.cloud.gkebackup.v1.UpdateBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an existing Backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteBackup(com.google.cloud.gkebackup.v1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the VolumeBackups for a given Backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse> + listVolumeBackups(com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVolumeBackupsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve the details of a single VolumeBackup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkebackup.v1.VolumeBackup> + getVolumeBackup(com.google.cloud.gkebackup.v1.GetVolumeBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetVolumeBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new RestorePlan in a given location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createRestorePlan(com.google.cloud.gkebackup.v1.CreateRestorePlanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRestorePlanMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists RestorePlans in a given location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkebackup.v1.ListRestorePlansResponse> + listRestorePlans(com.google.cloud.gkebackup.v1.ListRestorePlansRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRestorePlansMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve the details of a single RestorePlan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkebackup.v1.RestorePlan> + getRestorePlan(com.google.cloud.gkebackup.v1.GetRestorePlanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRestorePlanMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a RestorePlan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateRestorePlan(com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateRestorePlanMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an existing RestorePlan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteRestorePlan(com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRestorePlanMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Restore for the given RestorePlan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createRestore(com.google.cloud.gkebackup.v1.CreateRestoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRestoreMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the Restores for a given RestorePlan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkebackup.v1.ListRestoresResponse> + listRestores(com.google.cloud.gkebackup.v1.ListRestoresRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRestoresMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves the details of a single Restore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getRestore(com.google.cloud.gkebackup.v1.GetRestoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRestoreMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a Restore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateRestore(com.google.cloud.gkebackup.v1.UpdateRestoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateRestoreMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an existing Restore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteRestore(com.google.cloud.gkebackup.v1.DeleteRestoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRestoreMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the VolumeRestores for a given Restore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse> + listVolumeRestores(com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVolumeRestoresMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve the details of a single VolumeRestore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkebackup.v1.VolumeRestore> + getVolumeRestore(com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetVolumeRestoreMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_BACKUP_PLAN = 0; + private static final int METHODID_LIST_BACKUP_PLANS = 1; + private static final int METHODID_GET_BACKUP_PLAN = 2; + private static final int METHODID_UPDATE_BACKUP_PLAN = 3; + private static final int METHODID_DELETE_BACKUP_PLAN = 4; + private static final int METHODID_CREATE_BACKUP = 5; + private static final int METHODID_LIST_BACKUPS = 6; + private static final int METHODID_GET_BACKUP = 7; + private static final int METHODID_UPDATE_BACKUP = 8; + private static final int METHODID_DELETE_BACKUP = 9; + private static final int METHODID_LIST_VOLUME_BACKUPS = 10; + private static final int METHODID_GET_VOLUME_BACKUP = 11; + private static final int METHODID_CREATE_RESTORE_PLAN = 12; + private static final int METHODID_LIST_RESTORE_PLANS = 13; + private static final int METHODID_GET_RESTORE_PLAN = 14; + private static final int METHODID_UPDATE_RESTORE_PLAN = 15; + private static final int METHODID_DELETE_RESTORE_PLAN = 16; + private static final int METHODID_CREATE_RESTORE = 17; + private static final int METHODID_LIST_RESTORES = 18; + private static final int METHODID_GET_RESTORE = 19; + private static final int METHODID_UPDATE_RESTORE = 20; + private static final int METHODID_DELETE_RESTORE = 21; + private static final int METHODID_LIST_VOLUME_RESTORES = 22; + private static final int METHODID_GET_VOLUME_RESTORE = 23; + + 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 BackupForGKEImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BackupForGKEImplBase 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_BACKUP_PLAN: + serviceImpl.createBackupPlan( + (com.google.cloud.gkebackup.v1.CreateBackupPlanRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BACKUP_PLANS: + serviceImpl.listBackupPlans( + (com.google.cloud.gkebackup.v1.ListBackupPlansRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_BACKUP_PLAN: + serviceImpl.getBackupPlan( + (com.google.cloud.gkebackup.v1.GetBackupPlanRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_BACKUP_PLAN: + serviceImpl.updateBackupPlan( + (com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BACKUP_PLAN: + serviceImpl.deleteBackupPlan( + (com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_BACKUP: + serviceImpl.createBackup( + (com.google.cloud.gkebackup.v1.CreateBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BACKUPS: + serviceImpl.listBackups( + (com.google.cloud.gkebackup.v1.ListBackupsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_BACKUP: + serviceImpl.getBackup( + (com.google.cloud.gkebackup.v1.GetBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_BACKUP: + serviceImpl.updateBackup( + (com.google.cloud.gkebackup.v1.UpdateBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BACKUP: + serviceImpl.deleteBackup( + (com.google.cloud.gkebackup.v1.DeleteBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_VOLUME_BACKUPS: + serviceImpl.listVolumeBackups( + (com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_VOLUME_BACKUP: + serviceImpl.getVolumeBackup( + (com.google.cloud.gkebackup.v1.GetVolumeBackupRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_RESTORE_PLAN: + serviceImpl.createRestorePlan( + (com.google.cloud.gkebackup.v1.CreateRestorePlanRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RESTORE_PLANS: + serviceImpl.listRestorePlans( + (com.google.cloud.gkebackup.v1.ListRestorePlansRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_RESTORE_PLAN: + serviceImpl.getRestorePlan( + (com.google.cloud.gkebackup.v1.GetRestorePlanRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_RESTORE_PLAN: + serviceImpl.updateRestorePlan( + (com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_RESTORE_PLAN: + serviceImpl.deleteRestorePlan( + (com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_RESTORE: + serviceImpl.createRestore( + (com.google.cloud.gkebackup.v1.CreateRestoreRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RESTORES: + serviceImpl.listRestores( + (com.google.cloud.gkebackup.v1.ListRestoresRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_RESTORE: + serviceImpl.getRestore( + (com.google.cloud.gkebackup.v1.GetRestoreRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_RESTORE: + serviceImpl.updateRestore( + (com.google.cloud.gkebackup.v1.UpdateRestoreRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_RESTORE: + serviceImpl.deleteRestore( + (com.google.cloud.gkebackup.v1.DeleteRestoreRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_VOLUME_RESTORES: + serviceImpl.listVolumeRestores( + (com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse>) + responseObserver); + break; + case METHODID_GET_VOLUME_RESTORE: + serviceImpl.getVolumeRestore( + (com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest) 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(); + } + } + } + + private abstract static class BackupForGKEBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BackupForGKEBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BackupForGKE"); + } + } + + private static final class BackupForGKEFileDescriptorSupplier + extends BackupForGKEBaseDescriptorSupplier { + BackupForGKEFileDescriptorSupplier() {} + } + + private static final class BackupForGKEMethodDescriptorSupplier + extends BackupForGKEBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + BackupForGKEMethodDescriptorSupplier(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 (BackupForGKEGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BackupForGKEFileDescriptorSupplier()) + .addMethod(getCreateBackupPlanMethod()) + .addMethod(getListBackupPlansMethod()) + .addMethod(getGetBackupPlanMethod()) + .addMethod(getUpdateBackupPlanMethod()) + .addMethod(getDeleteBackupPlanMethod()) + .addMethod(getCreateBackupMethod()) + .addMethod(getListBackupsMethod()) + .addMethod(getGetBackupMethod()) + .addMethod(getUpdateBackupMethod()) + .addMethod(getDeleteBackupMethod()) + .addMethod(getListVolumeBackupsMethod()) + .addMethod(getGetVolumeBackupMethod()) + .addMethod(getCreateRestorePlanMethod()) + .addMethod(getListRestorePlansMethod()) + .addMethod(getGetRestorePlanMethod()) + .addMethod(getUpdateRestorePlanMethod()) + .addMethod(getDeleteRestorePlanMethod()) + .addMethod(getCreateRestoreMethod()) + .addMethod(getListRestoresMethod()) + .addMethod(getGetRestoreMethod()) + .addMethod(getUpdateRestoreMethod()) + .addMethod(getDeleteRestoreMethod()) + .addMethod(getListVolumeRestoresMethod()) + .addMethod(getGetVolumeRestoreMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEGrpc.java deleted file mode 100644 index 7ba6155..0000000 --- a/owl-bot-staging/v1/grpc-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEGrpc.java +++ /dev/null @@ -1,2286 +0,0 @@ -package com.google.cloud.gkebackup.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * BackupForGKE allows Kubernetes administrators to configure, execute, and
- * manage backup and restore operations for their GKE clusters.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/gkebackup/v1/gkebackup.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BackupForGKEGrpc { - - private BackupForGKEGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.gkebackup.v1.BackupForGKE"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateBackupPlanMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateBackupPlan", - requestType = com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateBackupPlanMethod() { - io.grpc.MethodDescriptor getCreateBackupPlanMethod; - if ((getCreateBackupPlanMethod = BackupForGKEGrpc.getCreateBackupPlanMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getCreateBackupPlanMethod = BackupForGKEGrpc.getCreateBackupPlanMethod) == null) { - BackupForGKEGrpc.getCreateBackupPlanMethod = getCreateBackupPlanMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBackupPlan")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("CreateBackupPlan")) - .build(); - } - } - } - return getCreateBackupPlanMethod; - } - - private static volatile io.grpc.MethodDescriptor getListBackupPlansMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListBackupPlans", - requestType = com.google.cloud.gkebackup.v1.ListBackupPlansRequest.class, - responseType = com.google.cloud.gkebackup.v1.ListBackupPlansResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListBackupPlansMethod() { - io.grpc.MethodDescriptor getListBackupPlansMethod; - if ((getListBackupPlansMethod = BackupForGKEGrpc.getListBackupPlansMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getListBackupPlansMethod = BackupForGKEGrpc.getListBackupPlansMethod) == null) { - BackupForGKEGrpc.getListBackupPlansMethod = getListBackupPlansMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBackupPlans")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListBackupPlansRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListBackupPlansResponse.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("ListBackupPlans")) - .build(); - } - } - } - return getListBackupPlansMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetBackupPlanMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBackupPlan", - requestType = com.google.cloud.gkebackup.v1.GetBackupPlanRequest.class, - responseType = com.google.cloud.gkebackup.v1.BackupPlan.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBackupPlanMethod() { - io.grpc.MethodDescriptor getGetBackupPlanMethod; - if ((getGetBackupPlanMethod = BackupForGKEGrpc.getGetBackupPlanMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getGetBackupPlanMethod = BackupForGKEGrpc.getGetBackupPlanMethod) == null) { - BackupForGKEGrpc.getGetBackupPlanMethod = getGetBackupPlanMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBackupPlan")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.GetBackupPlanRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("GetBackupPlan")) - .build(); - } - } - } - return getGetBackupPlanMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateBackupPlanMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateBackupPlan", - requestType = com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateBackupPlanMethod() { - io.grpc.MethodDescriptor getUpdateBackupPlanMethod; - if ((getUpdateBackupPlanMethod = BackupForGKEGrpc.getUpdateBackupPlanMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getUpdateBackupPlanMethod = BackupForGKEGrpc.getUpdateBackupPlanMethod) == null) { - BackupForGKEGrpc.getUpdateBackupPlanMethod = getUpdateBackupPlanMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBackupPlan")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("UpdateBackupPlan")) - .build(); - } - } - } - return getUpdateBackupPlanMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteBackupPlanMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteBackupPlan", - requestType = com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteBackupPlanMethod() { - io.grpc.MethodDescriptor getDeleteBackupPlanMethod; - if ((getDeleteBackupPlanMethod = BackupForGKEGrpc.getDeleteBackupPlanMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getDeleteBackupPlanMethod = BackupForGKEGrpc.getDeleteBackupPlanMethod) == null) { - BackupForGKEGrpc.getDeleteBackupPlanMethod = getDeleteBackupPlanMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBackupPlan")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("DeleteBackupPlan")) - .build(); - } - } - } - return getDeleteBackupPlanMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateBackup", - requestType = com.google.cloud.gkebackup.v1.CreateBackupRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateBackupMethod() { - io.grpc.MethodDescriptor getCreateBackupMethod; - if ((getCreateBackupMethod = BackupForGKEGrpc.getCreateBackupMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getCreateBackupMethod = BackupForGKEGrpc.getCreateBackupMethod) == null) { - BackupForGKEGrpc.getCreateBackupMethod = getCreateBackupMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBackup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.CreateBackupRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("CreateBackup")) - .build(); - } - } - } - return getCreateBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor getListBackupsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListBackups", - requestType = com.google.cloud.gkebackup.v1.ListBackupsRequest.class, - responseType = com.google.cloud.gkebackup.v1.ListBackupsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListBackupsMethod() { - io.grpc.MethodDescriptor getListBackupsMethod; - if ((getListBackupsMethod = BackupForGKEGrpc.getListBackupsMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getListBackupsMethod = BackupForGKEGrpc.getListBackupsMethod) == null) { - BackupForGKEGrpc.getListBackupsMethod = getListBackupsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBackups")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListBackupsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListBackupsResponse.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("ListBackups")) - .build(); - } - } - } - return getListBackupsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBackup", - requestType = com.google.cloud.gkebackup.v1.GetBackupRequest.class, - responseType = com.google.cloud.gkebackup.v1.Backup.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBackupMethod() { - io.grpc.MethodDescriptor getGetBackupMethod; - if ((getGetBackupMethod = BackupForGKEGrpc.getGetBackupMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getGetBackupMethod = BackupForGKEGrpc.getGetBackupMethod) == null) { - BackupForGKEGrpc.getGetBackupMethod = getGetBackupMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBackup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.GetBackupRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.Backup.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("GetBackup")) - .build(); - } - } - } - return getGetBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateBackup", - requestType = com.google.cloud.gkebackup.v1.UpdateBackupRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateBackupMethod() { - io.grpc.MethodDescriptor getUpdateBackupMethod; - if ((getUpdateBackupMethod = BackupForGKEGrpc.getUpdateBackupMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getUpdateBackupMethod = BackupForGKEGrpc.getUpdateBackupMethod) == null) { - BackupForGKEGrpc.getUpdateBackupMethod = getUpdateBackupMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBackup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.UpdateBackupRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("UpdateBackup")) - .build(); - } - } - } - return getUpdateBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteBackup", - requestType = com.google.cloud.gkebackup.v1.DeleteBackupRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteBackupMethod() { - io.grpc.MethodDescriptor getDeleteBackupMethod; - if ((getDeleteBackupMethod = BackupForGKEGrpc.getDeleteBackupMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getDeleteBackupMethod = BackupForGKEGrpc.getDeleteBackupMethod) == null) { - BackupForGKEGrpc.getDeleteBackupMethod = getDeleteBackupMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBackup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.DeleteBackupRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("DeleteBackup")) - .build(); - } - } - } - return getDeleteBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor getListVolumeBackupsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListVolumeBackups", - requestType = com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.class, - responseType = com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListVolumeBackupsMethod() { - io.grpc.MethodDescriptor getListVolumeBackupsMethod; - if ((getListVolumeBackupsMethod = BackupForGKEGrpc.getListVolumeBackupsMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getListVolumeBackupsMethod = BackupForGKEGrpc.getListVolumeBackupsMethod) == null) { - BackupForGKEGrpc.getListVolumeBackupsMethod = getListVolumeBackupsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVolumeBackups")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("ListVolumeBackups")) - .build(); - } - } - } - return getListVolumeBackupsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetVolumeBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetVolumeBackup", - requestType = com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.class, - responseType = com.google.cloud.gkebackup.v1.VolumeBackup.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetVolumeBackupMethod() { - io.grpc.MethodDescriptor getGetVolumeBackupMethod; - if ((getGetVolumeBackupMethod = BackupForGKEGrpc.getGetVolumeBackupMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getGetVolumeBackupMethod = BackupForGKEGrpc.getGetVolumeBackupMethod) == null) { - BackupForGKEGrpc.getGetVolumeBackupMethod = getGetVolumeBackupMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolumeBackup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.VolumeBackup.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("GetVolumeBackup")) - .build(); - } - } - } - return getGetVolumeBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateRestorePlanMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRestorePlan", - requestType = com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateRestorePlanMethod() { - io.grpc.MethodDescriptor getCreateRestorePlanMethod; - if ((getCreateRestorePlanMethod = BackupForGKEGrpc.getCreateRestorePlanMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getCreateRestorePlanMethod = BackupForGKEGrpc.getCreateRestorePlanMethod) == null) { - BackupForGKEGrpc.getCreateRestorePlanMethod = getCreateRestorePlanMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRestorePlan")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("CreateRestorePlan")) - .build(); - } - } - } - return getCreateRestorePlanMethod; - } - - private static volatile io.grpc.MethodDescriptor getListRestorePlansMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRestorePlans", - requestType = com.google.cloud.gkebackup.v1.ListRestorePlansRequest.class, - responseType = com.google.cloud.gkebackup.v1.ListRestorePlansResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListRestorePlansMethod() { - io.grpc.MethodDescriptor getListRestorePlansMethod; - if ((getListRestorePlansMethod = BackupForGKEGrpc.getListRestorePlansMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getListRestorePlansMethod = BackupForGKEGrpc.getListRestorePlansMethod) == null) { - BackupForGKEGrpc.getListRestorePlansMethod = getListRestorePlansMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRestorePlans")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListRestorePlansRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListRestorePlansResponse.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("ListRestorePlans")) - .build(); - } - } - } - return getListRestorePlansMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetRestorePlanMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRestorePlan", - requestType = com.google.cloud.gkebackup.v1.GetRestorePlanRequest.class, - responseType = com.google.cloud.gkebackup.v1.RestorePlan.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetRestorePlanMethod() { - io.grpc.MethodDescriptor getGetRestorePlanMethod; - if ((getGetRestorePlanMethod = BackupForGKEGrpc.getGetRestorePlanMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getGetRestorePlanMethod = BackupForGKEGrpc.getGetRestorePlanMethod) == null) { - BackupForGKEGrpc.getGetRestorePlanMethod = getGetRestorePlanMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRestorePlan")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.GetRestorePlanRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("GetRestorePlan")) - .build(); - } - } - } - return getGetRestorePlanMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateRestorePlanMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateRestorePlan", - requestType = com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateRestorePlanMethod() { - io.grpc.MethodDescriptor getUpdateRestorePlanMethod; - if ((getUpdateRestorePlanMethod = BackupForGKEGrpc.getUpdateRestorePlanMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getUpdateRestorePlanMethod = BackupForGKEGrpc.getUpdateRestorePlanMethod) == null) { - BackupForGKEGrpc.getUpdateRestorePlanMethod = getUpdateRestorePlanMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRestorePlan")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("UpdateRestorePlan")) - .build(); - } - } - } - return getUpdateRestorePlanMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteRestorePlanMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRestorePlan", - requestType = com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteRestorePlanMethod() { - io.grpc.MethodDescriptor getDeleteRestorePlanMethod; - if ((getDeleteRestorePlanMethod = BackupForGKEGrpc.getDeleteRestorePlanMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getDeleteRestorePlanMethod = BackupForGKEGrpc.getDeleteRestorePlanMethod) == null) { - BackupForGKEGrpc.getDeleteRestorePlanMethod = getDeleteRestorePlanMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRestorePlan")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("DeleteRestorePlan")) - .build(); - } - } - } - return getDeleteRestorePlanMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateRestoreMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRestore", - requestType = com.google.cloud.gkebackup.v1.CreateRestoreRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateRestoreMethod() { - io.grpc.MethodDescriptor getCreateRestoreMethod; - if ((getCreateRestoreMethod = BackupForGKEGrpc.getCreateRestoreMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getCreateRestoreMethod = BackupForGKEGrpc.getCreateRestoreMethod) == null) { - BackupForGKEGrpc.getCreateRestoreMethod = getCreateRestoreMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRestore")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.CreateRestoreRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("CreateRestore")) - .build(); - } - } - } - return getCreateRestoreMethod; - } - - private static volatile io.grpc.MethodDescriptor getListRestoresMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRestores", - requestType = com.google.cloud.gkebackup.v1.ListRestoresRequest.class, - responseType = com.google.cloud.gkebackup.v1.ListRestoresResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListRestoresMethod() { - io.grpc.MethodDescriptor getListRestoresMethod; - if ((getListRestoresMethod = BackupForGKEGrpc.getListRestoresMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getListRestoresMethod = BackupForGKEGrpc.getListRestoresMethod) == null) { - BackupForGKEGrpc.getListRestoresMethod = getListRestoresMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRestores")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListRestoresRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListRestoresResponse.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("ListRestores")) - .build(); - } - } - } - return getListRestoresMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetRestoreMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRestore", - requestType = com.google.cloud.gkebackup.v1.GetRestoreRequest.class, - responseType = com.google.cloud.gkebackup.v1.Restore.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetRestoreMethod() { - io.grpc.MethodDescriptor getGetRestoreMethod; - if ((getGetRestoreMethod = BackupForGKEGrpc.getGetRestoreMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getGetRestoreMethod = BackupForGKEGrpc.getGetRestoreMethod) == null) { - BackupForGKEGrpc.getGetRestoreMethod = getGetRestoreMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRestore")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.GetRestoreRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.Restore.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("GetRestore")) - .build(); - } - } - } - return getGetRestoreMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateRestoreMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateRestore", - requestType = com.google.cloud.gkebackup.v1.UpdateRestoreRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateRestoreMethod() { - io.grpc.MethodDescriptor getUpdateRestoreMethod; - if ((getUpdateRestoreMethod = BackupForGKEGrpc.getUpdateRestoreMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getUpdateRestoreMethod = BackupForGKEGrpc.getUpdateRestoreMethod) == null) { - BackupForGKEGrpc.getUpdateRestoreMethod = getUpdateRestoreMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRestore")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.UpdateRestoreRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("UpdateRestore")) - .build(); - } - } - } - return getUpdateRestoreMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteRestoreMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRestore", - requestType = com.google.cloud.gkebackup.v1.DeleteRestoreRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteRestoreMethod() { - io.grpc.MethodDescriptor getDeleteRestoreMethod; - if ((getDeleteRestoreMethod = BackupForGKEGrpc.getDeleteRestoreMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getDeleteRestoreMethod = BackupForGKEGrpc.getDeleteRestoreMethod) == null) { - BackupForGKEGrpc.getDeleteRestoreMethod = getDeleteRestoreMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRestore")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.DeleteRestoreRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("DeleteRestore")) - .build(); - } - } - } - return getDeleteRestoreMethod; - } - - private static volatile io.grpc.MethodDescriptor getListVolumeRestoresMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListVolumeRestores", - requestType = com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.class, - responseType = com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListVolumeRestoresMethod() { - io.grpc.MethodDescriptor getListVolumeRestoresMethod; - if ((getListVolumeRestoresMethod = BackupForGKEGrpc.getListVolumeRestoresMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getListVolumeRestoresMethod = BackupForGKEGrpc.getListVolumeRestoresMethod) == null) { - BackupForGKEGrpc.getListVolumeRestoresMethod = getListVolumeRestoresMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVolumeRestores")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("ListVolumeRestores")) - .build(); - } - } - } - return getListVolumeRestoresMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetVolumeRestoreMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetVolumeRestore", - requestType = com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.class, - responseType = com.google.cloud.gkebackup.v1.VolumeRestore.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetVolumeRestoreMethod() { - io.grpc.MethodDescriptor getGetVolumeRestoreMethod; - if ((getGetVolumeRestoreMethod = BackupForGKEGrpc.getGetVolumeRestoreMethod) == null) { - synchronized (BackupForGKEGrpc.class) { - if ((getGetVolumeRestoreMethod = BackupForGKEGrpc.getGetVolumeRestoreMethod) == null) { - BackupForGKEGrpc.getGetVolumeRestoreMethod = getGetVolumeRestoreMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolumeRestore")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkebackup.v1.VolumeRestore.getDefaultInstance())) - .setSchemaDescriptor(new BackupForGKEMethodDescriptorSupplier("GetVolumeRestore")) - .build(); - } - } - } - return getGetVolumeRestoreMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static BackupForGKEStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BackupForGKEStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BackupForGKEStub(channel, callOptions); - } - }; - return BackupForGKEStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static BackupForGKEBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BackupForGKEBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BackupForGKEBlockingStub(channel, callOptions); - } - }; - return BackupForGKEBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static BackupForGKEFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BackupForGKEFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BackupForGKEFutureStub(channel, callOptions); - } - }; - return BackupForGKEFutureStub.newStub(factory, channel); - } - - /** - *
-   * BackupForGKE allows Kubernetes administrators to configure, execute, and
-   * manage backup and restore operations for their GKE clusters.
-   * 
- */ - public static abstract class BackupForGKEImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a new BackupPlan in a given location.
-     * 
- */ - public void createBackupPlan(com.google.cloud.gkebackup.v1.CreateBackupPlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBackupPlanMethod(), responseObserver); - } - - /** - *
-     * Lists BackupPlans in a given location.
-     * 
- */ - public void listBackupPlans(com.google.cloud.gkebackup.v1.ListBackupPlansRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBackupPlansMethod(), responseObserver); - } - - /** - *
-     * Retrieve the details of a single BackupPlan.
-     * 
- */ - public void getBackupPlan(com.google.cloud.gkebackup.v1.GetBackupPlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupPlanMethod(), responseObserver); - } - - /** - *
-     * Update a BackupPlan.
-     * 
- */ - public void updateBackupPlan(com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBackupPlanMethod(), responseObserver); - } - - /** - *
-     * Deletes an existing BackupPlan.
-     * 
- */ - public void deleteBackupPlan(com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBackupPlanMethod(), responseObserver); - } - - /** - *
-     * Creates a Backup for the given BackupPlan.
-     * 
- */ - public void createBackup(com.google.cloud.gkebackup.v1.CreateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBackupMethod(), responseObserver); - } - - /** - *
-     * Lists the Backups for a given BackupPlan.
-     * 
- */ - public void listBackups(com.google.cloud.gkebackup.v1.ListBackupsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBackupsMethod(), responseObserver); - } - - /** - *
-     * Retrieve the details of a single Backup.
-     * 
- */ - public void getBackup(com.google.cloud.gkebackup.v1.GetBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); - } - - /** - *
-     * Update a Backup.
-     * 
- */ - public void updateBackup(com.google.cloud.gkebackup.v1.UpdateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBackupMethod(), responseObserver); - } - - /** - *
-     * Deletes an existing Backup.
-     * 
- */ - public void deleteBackup(com.google.cloud.gkebackup.v1.DeleteBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBackupMethod(), responseObserver); - } - - /** - *
-     * Lists the VolumeBackups for a given Backup.
-     * 
- */ - public void listVolumeBackups(com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVolumeBackupsMethod(), responseObserver); - } - - /** - *
-     * Retrieve the details of a single VolumeBackup.
-     * 
- */ - public void getVolumeBackup(com.google.cloud.gkebackup.v1.GetVolumeBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVolumeBackupMethod(), responseObserver); - } - - /** - *
-     * Creates a new RestorePlan in a given location.
-     * 
- */ - public void createRestorePlan(com.google.cloud.gkebackup.v1.CreateRestorePlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRestorePlanMethod(), responseObserver); - } - - /** - *
-     * Lists RestorePlans in a given location.
-     * 
- */ - public void listRestorePlans(com.google.cloud.gkebackup.v1.ListRestorePlansRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRestorePlansMethod(), responseObserver); - } - - /** - *
-     * Retrieve the details of a single RestorePlan.
-     * 
- */ - public void getRestorePlan(com.google.cloud.gkebackup.v1.GetRestorePlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRestorePlanMethod(), responseObserver); - } - - /** - *
-     * Update a RestorePlan.
-     * 
- */ - public void updateRestorePlan(com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateRestorePlanMethod(), responseObserver); - } - - /** - *
-     * Deletes an existing RestorePlan.
-     * 
- */ - public void deleteRestorePlan(com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRestorePlanMethod(), responseObserver); - } - - /** - *
-     * Creates a new Restore for the given RestorePlan.
-     * 
- */ - public void createRestore(com.google.cloud.gkebackup.v1.CreateRestoreRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRestoreMethod(), responseObserver); - } - - /** - *
-     * Lists the Restores for a given RestorePlan.
-     * 
- */ - public void listRestores(com.google.cloud.gkebackup.v1.ListRestoresRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRestoresMethod(), responseObserver); - } - - /** - *
-     * Retrieves the details of a single Restore.
-     * 
- */ - public void getRestore(com.google.cloud.gkebackup.v1.GetRestoreRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRestoreMethod(), responseObserver); - } - - /** - *
-     * Update a Restore.
-     * 
- */ - public void updateRestore(com.google.cloud.gkebackup.v1.UpdateRestoreRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateRestoreMethod(), responseObserver); - } - - /** - *
-     * Deletes an existing Restore.
-     * 
- */ - public void deleteRestore(com.google.cloud.gkebackup.v1.DeleteRestoreRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRestoreMethod(), responseObserver); - } - - /** - *
-     * Lists the VolumeRestores for a given Restore.
-     * 
- */ - public void listVolumeRestores(com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVolumeRestoresMethod(), responseObserver); - } - - /** - *
-     * Retrieve the details of a single VolumeRestore.
-     * 
- */ - public void getVolumeRestore(com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVolumeRestoreMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateBackupPlanMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_BACKUP_PLAN))) - .addMethod( - getListBackupPlansMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.ListBackupPlansRequest, - com.google.cloud.gkebackup.v1.ListBackupPlansResponse>( - this, METHODID_LIST_BACKUP_PLANS))) - .addMethod( - getGetBackupPlanMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.GetBackupPlanRequest, - com.google.cloud.gkebackup.v1.BackupPlan>( - this, METHODID_GET_BACKUP_PLAN))) - .addMethod( - getUpdateBackupPlanMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_BACKUP_PLAN))) - .addMethod( - getDeleteBackupPlanMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_BACKUP_PLAN))) - .addMethod( - getCreateBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.CreateBackupRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_BACKUP))) - .addMethod( - getListBackupsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.ListBackupsRequest, - com.google.cloud.gkebackup.v1.ListBackupsResponse>( - this, METHODID_LIST_BACKUPS))) - .addMethod( - getGetBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.GetBackupRequest, - com.google.cloud.gkebackup.v1.Backup>( - this, METHODID_GET_BACKUP))) - .addMethod( - getUpdateBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.UpdateBackupRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_BACKUP))) - .addMethod( - getDeleteBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.DeleteBackupRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_BACKUP))) - .addMethod( - getListVolumeBackupsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest, - com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse>( - this, METHODID_LIST_VOLUME_BACKUPS))) - .addMethod( - getGetVolumeBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest, - com.google.cloud.gkebackup.v1.VolumeBackup>( - this, METHODID_GET_VOLUME_BACKUP))) - .addMethod( - getCreateRestorePlanMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_RESTORE_PLAN))) - .addMethod( - getListRestorePlansMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.ListRestorePlansRequest, - com.google.cloud.gkebackup.v1.ListRestorePlansResponse>( - this, METHODID_LIST_RESTORE_PLANS))) - .addMethod( - getGetRestorePlanMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.GetRestorePlanRequest, - com.google.cloud.gkebackup.v1.RestorePlan>( - this, METHODID_GET_RESTORE_PLAN))) - .addMethod( - getUpdateRestorePlanMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_RESTORE_PLAN))) - .addMethod( - getDeleteRestorePlanMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_RESTORE_PLAN))) - .addMethod( - getCreateRestoreMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.CreateRestoreRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_RESTORE))) - .addMethod( - getListRestoresMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.ListRestoresRequest, - com.google.cloud.gkebackup.v1.ListRestoresResponse>( - this, METHODID_LIST_RESTORES))) - .addMethod( - getGetRestoreMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.GetRestoreRequest, - com.google.cloud.gkebackup.v1.Restore>( - this, METHODID_GET_RESTORE))) - .addMethod( - getUpdateRestoreMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.UpdateRestoreRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_RESTORE))) - .addMethod( - getDeleteRestoreMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.DeleteRestoreRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_RESTORE))) - .addMethod( - getListVolumeRestoresMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest, - com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse>( - this, METHODID_LIST_VOLUME_RESTORES))) - .addMethod( - getGetVolumeRestoreMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest, - com.google.cloud.gkebackup.v1.VolumeRestore>( - this, METHODID_GET_VOLUME_RESTORE))) - .build(); - } - } - - /** - *
-   * BackupForGKE allows Kubernetes administrators to configure, execute, and
-   * manage backup and restore operations for their GKE clusters.
-   * 
- */ - public static final class BackupForGKEStub extends io.grpc.stub.AbstractAsyncStub { - private BackupForGKEStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BackupForGKEStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BackupForGKEStub(channel, callOptions); - } - - /** - *
-     * Creates a new BackupPlan in a given location.
-     * 
- */ - public void createBackupPlan(com.google.cloud.gkebackup.v1.CreateBackupPlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBackupPlanMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists BackupPlans in a given location.
-     * 
- */ - public void listBackupPlans(com.google.cloud.gkebackup.v1.ListBackupPlansRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBackupPlansMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieve the details of a single BackupPlan.
-     * 
- */ - public void getBackupPlan(com.google.cloud.gkebackup.v1.GetBackupPlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetBackupPlanMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update a BackupPlan.
-     * 
- */ - public void updateBackupPlan(com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBackupPlanMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an existing BackupPlan.
-     * 
- */ - public void deleteBackupPlan(com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBackupPlanMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a Backup for the given BackupPlan.
-     * 
- */ - public void createBackup(com.google.cloud.gkebackup.v1.CreateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists the Backups for a given BackupPlan.
-     * 
- */ - public void listBackups(com.google.cloud.gkebackup.v1.ListBackupsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBackupsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieve the details of a single Backup.
-     * 
- */ - public void getBackup(com.google.cloud.gkebackup.v1.GetBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetBackupMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update a Backup.
-     * 
- */ - public void updateBackup(com.google.cloud.gkebackup.v1.UpdateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an existing Backup.
-     * 
- */ - public void deleteBackup(com.google.cloud.gkebackup.v1.DeleteBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists the VolumeBackups for a given Backup.
-     * 
- */ - public void listVolumeBackups(com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListVolumeBackupsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieve the details of a single VolumeBackup.
-     * 
- */ - public void getVolumeBackup(com.google.cloud.gkebackup.v1.GetVolumeBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetVolumeBackupMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new RestorePlan in a given location.
-     * 
- */ - public void createRestorePlan(com.google.cloud.gkebackup.v1.CreateRestorePlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRestorePlanMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists RestorePlans in a given location.
-     * 
- */ - public void listRestorePlans(com.google.cloud.gkebackup.v1.ListRestorePlansRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRestorePlansMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieve the details of a single RestorePlan.
-     * 
- */ - public void getRestorePlan(com.google.cloud.gkebackup.v1.GetRestorePlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRestorePlanMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update a RestorePlan.
-     * 
- */ - public void updateRestorePlan(com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateRestorePlanMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an existing RestorePlan.
-     * 
- */ - public void deleteRestorePlan(com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRestorePlanMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Restore for the given RestorePlan.
-     * 
- */ - public void createRestore(com.google.cloud.gkebackup.v1.CreateRestoreRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRestoreMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists the Restores for a given RestorePlan.
-     * 
- */ - public void listRestores(com.google.cloud.gkebackup.v1.ListRestoresRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRestoresMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieves the details of a single Restore.
-     * 
- */ - public void getRestore(com.google.cloud.gkebackup.v1.GetRestoreRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRestoreMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update a Restore.
-     * 
- */ - public void updateRestore(com.google.cloud.gkebackup.v1.UpdateRestoreRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateRestoreMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an existing Restore.
-     * 
- */ - public void deleteRestore(com.google.cloud.gkebackup.v1.DeleteRestoreRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRestoreMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists the VolumeRestores for a given Restore.
-     * 
- */ - public void listVolumeRestores(com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListVolumeRestoresMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieve the details of a single VolumeRestore.
-     * 
- */ - public void getVolumeRestore(com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetVolumeRestoreMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * BackupForGKE allows Kubernetes administrators to configure, execute, and
-   * manage backup and restore operations for their GKE clusters.
-   * 
- */ - public static final class BackupForGKEBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private BackupForGKEBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BackupForGKEBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BackupForGKEBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a new BackupPlan in a given location.
-     * 
- */ - public com.google.longrunning.Operation createBackupPlan(com.google.cloud.gkebackup.v1.CreateBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateBackupPlanMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists BackupPlans in a given location.
-     * 
- */ - public com.google.cloud.gkebackup.v1.ListBackupPlansResponse listBackupPlans(com.google.cloud.gkebackup.v1.ListBackupPlansRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBackupPlansMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieve the details of a single BackupPlan.
-     * 
- */ - public com.google.cloud.gkebackup.v1.BackupPlan getBackupPlan(com.google.cloud.gkebackup.v1.GetBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetBackupPlanMethod(), getCallOptions(), request); - } - - /** - *
-     * Update a BackupPlan.
-     * 
- */ - public com.google.longrunning.Operation updateBackupPlan(com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateBackupPlanMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an existing BackupPlan.
-     * 
- */ - public com.google.longrunning.Operation deleteBackupPlan(com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBackupPlanMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a Backup for the given BackupPlan.
-     * 
- */ - public com.google.longrunning.Operation createBackup(com.google.cloud.gkebackup.v1.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateBackupMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists the Backups for a given BackupPlan.
-     * 
- */ - public com.google.cloud.gkebackup.v1.ListBackupsResponse listBackups(com.google.cloud.gkebackup.v1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBackupsMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieve the details of a single Backup.
-     * 
- */ - public com.google.cloud.gkebackup.v1.Backup getBackup(com.google.cloud.gkebackup.v1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetBackupMethod(), getCallOptions(), request); - } - - /** - *
-     * Update a Backup.
-     * 
- */ - public com.google.longrunning.Operation updateBackup(com.google.cloud.gkebackup.v1.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateBackupMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an existing Backup.
-     * 
- */ - public com.google.longrunning.Operation deleteBackup(com.google.cloud.gkebackup.v1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBackupMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists the VolumeBackups for a given Backup.
-     * 
- */ - public com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse listVolumeBackups(com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListVolumeBackupsMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieve the details of a single VolumeBackup.
-     * 
- */ - public com.google.cloud.gkebackup.v1.VolumeBackup getVolumeBackup(com.google.cloud.gkebackup.v1.GetVolumeBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetVolumeBackupMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new RestorePlan in a given location.
-     * 
- */ - public com.google.longrunning.Operation createRestorePlan(com.google.cloud.gkebackup.v1.CreateRestorePlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateRestorePlanMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists RestorePlans in a given location.
-     * 
- */ - public com.google.cloud.gkebackup.v1.ListRestorePlansResponse listRestorePlans(com.google.cloud.gkebackup.v1.ListRestorePlansRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRestorePlansMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieve the details of a single RestorePlan.
-     * 
- */ - public com.google.cloud.gkebackup.v1.RestorePlan getRestorePlan(com.google.cloud.gkebackup.v1.GetRestorePlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRestorePlanMethod(), getCallOptions(), request); - } - - /** - *
-     * Update a RestorePlan.
-     * 
- */ - public com.google.longrunning.Operation updateRestorePlan(com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateRestorePlanMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an existing RestorePlan.
-     * 
- */ - public com.google.longrunning.Operation deleteRestorePlan(com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRestorePlanMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Restore for the given RestorePlan.
-     * 
- */ - public com.google.longrunning.Operation createRestore(com.google.cloud.gkebackup.v1.CreateRestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateRestoreMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists the Restores for a given RestorePlan.
-     * 
- */ - public com.google.cloud.gkebackup.v1.ListRestoresResponse listRestores(com.google.cloud.gkebackup.v1.ListRestoresRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRestoresMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieves the details of a single Restore.
-     * 
- */ - public com.google.cloud.gkebackup.v1.Restore getRestore(com.google.cloud.gkebackup.v1.GetRestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRestoreMethod(), getCallOptions(), request); - } - - /** - *
-     * Update a Restore.
-     * 
- */ - public com.google.longrunning.Operation updateRestore(com.google.cloud.gkebackup.v1.UpdateRestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateRestoreMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an existing Restore.
-     * 
- */ - public com.google.longrunning.Operation deleteRestore(com.google.cloud.gkebackup.v1.DeleteRestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRestoreMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists the VolumeRestores for a given Restore.
-     * 
- */ - public com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse listVolumeRestores(com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListVolumeRestoresMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieve the details of a single VolumeRestore.
-     * 
- */ - public com.google.cloud.gkebackup.v1.VolumeRestore getVolumeRestore(com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetVolumeRestoreMethod(), getCallOptions(), request); - } - } - - /** - *
-   * BackupForGKE allows Kubernetes administrators to configure, execute, and
-   * manage backup and restore operations for their GKE clusters.
-   * 
- */ - public static final class BackupForGKEFutureStub extends io.grpc.stub.AbstractFutureStub { - private BackupForGKEFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BackupForGKEFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BackupForGKEFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a new BackupPlan in a given location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createBackupPlan( - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateBackupPlanMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists BackupPlans in a given location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listBackupPlans( - com.google.cloud.gkebackup.v1.ListBackupPlansRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListBackupPlansMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieve the details of a single BackupPlan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getBackupPlan( - com.google.cloud.gkebackup.v1.GetBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetBackupPlanMethod(), getCallOptions()), request); - } - - /** - *
-     * Update a BackupPlan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateBackupPlan( - com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateBackupPlanMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an existing BackupPlan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteBackupPlan( - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteBackupPlanMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a Backup for the given BackupPlan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createBackup( - com.google.cloud.gkebackup.v1.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists the Backups for a given BackupPlan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listBackups( - com.google.cloud.gkebackup.v1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieve the details of a single Backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getBackup( - com.google.cloud.gkebackup.v1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetBackupMethod(), getCallOptions()), request); - } - - /** - *
-     * Update a Backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateBackup( - com.google.cloud.gkebackup.v1.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an existing Backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteBackup( - com.google.cloud.gkebackup.v1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists the VolumeBackups for a given Backup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listVolumeBackups( - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListVolumeBackupsMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieve the details of a single VolumeBackup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getVolumeBackup( - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetVolumeBackupMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new RestorePlan in a given location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createRestorePlan( - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateRestorePlanMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists RestorePlans in a given location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listRestorePlans( - com.google.cloud.gkebackup.v1.ListRestorePlansRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRestorePlansMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieve the details of a single RestorePlan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getRestorePlan( - com.google.cloud.gkebackup.v1.GetRestorePlanRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRestorePlanMethod(), getCallOptions()), request); - } - - /** - *
-     * Update a RestorePlan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateRestorePlan( - com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateRestorePlanMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an existing RestorePlan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteRestorePlan( - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRestorePlanMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Restore for the given RestorePlan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createRestore( - com.google.cloud.gkebackup.v1.CreateRestoreRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateRestoreMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists the Restores for a given RestorePlan.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listRestores( - com.google.cloud.gkebackup.v1.ListRestoresRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRestoresMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieves the details of a single Restore.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getRestore( - com.google.cloud.gkebackup.v1.GetRestoreRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRestoreMethod(), getCallOptions()), request); - } - - /** - *
-     * Update a Restore.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateRestore( - com.google.cloud.gkebackup.v1.UpdateRestoreRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateRestoreMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an existing Restore.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteRestore( - com.google.cloud.gkebackup.v1.DeleteRestoreRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRestoreMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists the VolumeRestores for a given Restore.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listVolumeRestores( - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListVolumeRestoresMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieve the details of a single VolumeRestore.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getVolumeRestore( - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetVolumeRestoreMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_BACKUP_PLAN = 0; - private static final int METHODID_LIST_BACKUP_PLANS = 1; - private static final int METHODID_GET_BACKUP_PLAN = 2; - private static final int METHODID_UPDATE_BACKUP_PLAN = 3; - private static final int METHODID_DELETE_BACKUP_PLAN = 4; - private static final int METHODID_CREATE_BACKUP = 5; - private static final int METHODID_LIST_BACKUPS = 6; - private static final int METHODID_GET_BACKUP = 7; - private static final int METHODID_UPDATE_BACKUP = 8; - private static final int METHODID_DELETE_BACKUP = 9; - private static final int METHODID_LIST_VOLUME_BACKUPS = 10; - private static final int METHODID_GET_VOLUME_BACKUP = 11; - private static final int METHODID_CREATE_RESTORE_PLAN = 12; - private static final int METHODID_LIST_RESTORE_PLANS = 13; - private static final int METHODID_GET_RESTORE_PLAN = 14; - private static final int METHODID_UPDATE_RESTORE_PLAN = 15; - private static final int METHODID_DELETE_RESTORE_PLAN = 16; - private static final int METHODID_CREATE_RESTORE = 17; - private static final int METHODID_LIST_RESTORES = 18; - private static final int METHODID_GET_RESTORE = 19; - private static final int METHODID_UPDATE_RESTORE = 20; - private static final int METHODID_DELETE_RESTORE = 21; - private static final int METHODID_LIST_VOLUME_RESTORES = 22; - private static final int METHODID_GET_VOLUME_RESTORE = 23; - - 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 BackupForGKEImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BackupForGKEImplBase 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_BACKUP_PLAN: - serviceImpl.createBackupPlan((com.google.cloud.gkebackup.v1.CreateBackupPlanRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_BACKUP_PLANS: - serviceImpl.listBackupPlans((com.google.cloud.gkebackup.v1.ListBackupPlansRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_BACKUP_PLAN: - serviceImpl.getBackupPlan((com.google.cloud.gkebackup.v1.GetBackupPlanRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_BACKUP_PLAN: - serviceImpl.updateBackupPlan((com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_BACKUP_PLAN: - serviceImpl.deleteBackupPlan((com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_BACKUP: - serviceImpl.createBackup((com.google.cloud.gkebackup.v1.CreateBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_BACKUPS: - serviceImpl.listBackups((com.google.cloud.gkebackup.v1.ListBackupsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_BACKUP: - serviceImpl.getBackup((com.google.cloud.gkebackup.v1.GetBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_BACKUP: - serviceImpl.updateBackup((com.google.cloud.gkebackup.v1.UpdateBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_BACKUP: - serviceImpl.deleteBackup((com.google.cloud.gkebackup.v1.DeleteBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_VOLUME_BACKUPS: - serviceImpl.listVolumeBackups((com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_VOLUME_BACKUP: - serviceImpl.getVolumeBackup((com.google.cloud.gkebackup.v1.GetVolumeBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_RESTORE_PLAN: - serviceImpl.createRestorePlan((com.google.cloud.gkebackup.v1.CreateRestorePlanRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RESTORE_PLANS: - serviceImpl.listRestorePlans((com.google.cloud.gkebackup.v1.ListRestorePlansRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_RESTORE_PLAN: - serviceImpl.getRestorePlan((com.google.cloud.gkebackup.v1.GetRestorePlanRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_RESTORE_PLAN: - serviceImpl.updateRestorePlan((com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_RESTORE_PLAN: - serviceImpl.deleteRestorePlan((com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_RESTORE: - serviceImpl.createRestore((com.google.cloud.gkebackup.v1.CreateRestoreRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RESTORES: - serviceImpl.listRestores((com.google.cloud.gkebackup.v1.ListRestoresRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_RESTORE: - serviceImpl.getRestore((com.google.cloud.gkebackup.v1.GetRestoreRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_RESTORE: - serviceImpl.updateRestore((com.google.cloud.gkebackup.v1.UpdateRestoreRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_RESTORE: - serviceImpl.deleteRestore((com.google.cloud.gkebackup.v1.DeleteRestoreRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_VOLUME_RESTORES: - serviceImpl.listVolumeRestores((com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_VOLUME_RESTORE: - serviceImpl.getVolumeRestore((com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest) 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(); - } - } - } - - private static abstract class BackupForGKEBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - BackupForGKEBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BackupForGKE"); - } - } - - private static final class BackupForGKEFileDescriptorSupplier - extends BackupForGKEBaseDescriptorSupplier { - BackupForGKEFileDescriptorSupplier() {} - } - - private static final class BackupForGKEMethodDescriptorSupplier - extends BackupForGKEBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - BackupForGKEMethodDescriptorSupplier(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 (BackupForGKEGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BackupForGKEFileDescriptorSupplier()) - .addMethod(getCreateBackupPlanMethod()) - .addMethod(getListBackupPlansMethod()) - .addMethod(getGetBackupPlanMethod()) - .addMethod(getUpdateBackupPlanMethod()) - .addMethod(getDeleteBackupPlanMethod()) - .addMethod(getCreateBackupMethod()) - .addMethod(getListBackupsMethod()) - .addMethod(getGetBackupMethod()) - .addMethod(getUpdateBackupMethod()) - .addMethod(getDeleteBackupMethod()) - .addMethod(getListVolumeBackupsMethod()) - .addMethod(getGetVolumeBackupMethod()) - .addMethod(getCreateRestorePlanMethod()) - .addMethod(getListRestorePlansMethod()) - .addMethod(getGetRestorePlanMethod()) - .addMethod(getUpdateRestorePlanMethod()) - .addMethod(getDeleteRestorePlanMethod()) - .addMethod(getCreateRestoreMethod()) - .addMethod(getListRestoresMethod()) - .addMethod(getGetRestoreMethod()) - .addMethod(getUpdateRestoreMethod()) - .addMethod(getDeleteRestoreMethod()) - .addMethod(getListVolumeRestoresMethod()) - .addMethod(getGetVolumeRestoreMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanProto.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanProto.java deleted file mode 100644 index 0994ff3..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanProto.java +++ /dev/null @@ -1,146 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/backup_plan.proto - -package com.google.cloud.gkebackup.v1; - -public final class BackupPlanProto { - private BackupPlanProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_BackupPlan_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/gkebackup/v1/backup_plan." + - "proto\022\031google.cloud.gkebackup.v1\032\037google" + - "/api/field_behavior.proto\032\031google/api/re" + - "source.proto\032&google/cloud/gkebackup/v1/" + - "common.proto\032\037google/protobuf/timestamp." + - "proto\"\327\t\n\nBackupPlan\022\021\n\004name\030\001 \001(\tB\003\340A\003\022" + - "\020\n\003uid\030\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032" + - ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + - "e_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + - "B\003\340A\003\022\023\n\013description\030\005 \001(\t\022<\n\007cluster\030\006 " + - "\001(\tB+\340A\005\340A\002\372A\"\n container.googleapis.com" + - "/Cluster\022O\n\020retention_policy\030\007 \001(\01325.goo" + - "gle.cloud.gkebackup.v1.BackupPlan.Retent" + - "ionPolicy\022A\n\006labels\030\010 \003(\01321.google.cloud" + - ".gkebackup.v1.BackupPlan.LabelsEntry\022G\n\017" + - "backup_schedule\030\t \001(\0132..google.cloud.gke" + - "backup.v1.BackupPlan.Schedule\022\021\n\004etag\030\n " + - "\001(\tB\003\340A\003\022\023\n\013deactivated\030\013 \001(\010\022I\n\rbackup_" + - "config\030\014 \001(\01322.google.cloud.gkebackup.v1" + - ".BackupPlan.BackupConfig\022 \n\023protected_po" + - "d_count\030\r \001(\005B\003\340A\003\032^\n\017RetentionPolicy\022\037\n" + - "\027backup_delete_lock_days\030\001 \001(\005\022\032\n\022backup" + - "_retain_days\030\002 \001(\005\022\016\n\006locked\030\003 \001(\010\0321\n\010Sc" + - "hedule\022\025\n\rcron_schedule\030\001 \001(\t\022\016\n\006paused\030" + - "\002 \001(\010\032\303\002\n\014BackupConfig\022\030\n\016all_namespaces" + - "\030\001 \001(\010H\000\022D\n\023selected_namespaces\030\002 \001(\0132%." + - "google.cloud.gkebackup.v1.NamespacesH\000\022K" + - "\n\025selected_applications\030\003 \001(\0132*.google.c" + - "loud.gkebackup.v1.NamespacedNamesH\000\022\033\n\023i" + - "nclude_volume_data\030\004 \001(\010\022\027\n\017include_secr" + - "ets\030\005 \001(\010\022@\n\016encryption_key\030\006 \001(\0132(.goog" + - "le.cloud.gkebackup.v1.EncryptionKeyB\016\n\014b" + - "ackup_scope\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + - "\r\n\005value\030\002 \001(\t:\0028\001:k\352Ah\n#gkebackup.googl" + - "eapis.com/BackupPlan\022Aprojects/{project}" + - "/locations/{location}/backupPlans/{backu" + - "p_plan}B\315\001\n\035com.google.cloud.gkebackup.v" + - "1B\017BackupPlanProtoP\001ZBgoogle.golang.org/" + - "genproto/googleapis/cloud/gkebackup/v1;g" + - "kebackup\252\002\031Google.Cloud.GkeBackup.V1\312\002\031G" + - "oogle\\Cloud\\GkeBackup\\V1\352\002\034Google::Cloud" + - "::GkeBackup::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkebackup_v1_BackupPlan_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor, - new java.lang.String[] { "Name", "Uid", "CreateTime", "UpdateTime", "Description", "Cluster", "RetentionPolicy", "Labels", "BackupSchedule", "Etag", "Deactivated", "BackupConfig", "ProtectedPodCount", }); - internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor = - internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor, - new java.lang.String[] { "BackupDeleteLockDays", "BackupRetainDays", "Locked", }); - internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor = - internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor, - new java.lang.String[] { "CronSchedule", "Paused", }); - internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor = - internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor, - new java.lang.String[] { "AllNamespaces", "SelectedNamespaces", "SelectedApplications", "IncludeVolumeData", "IncludeSecrets", "EncryptionKey", "BackupScope", }); - internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_descriptor = - internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupProto.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupProto.java deleted file mode 100644 index 9759ebf..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupProto.java +++ /dev/null @@ -1,146 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/backup.proto - -package com.google.cloud.gkebackup.v1; - -public final class BackupProto { - private BackupProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_Backup_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_Backup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n&google/cloud/gkebackup/v1/backup.proto" + - "\022\031google.cloud.gkebackup.v1\032\037google/api/" + - "field_behavior.proto\032\031google/api/resourc" + - "e.proto\032&google/cloud/gkebackup/v1/commo" + - "n.proto\032\037google/protobuf/timestamp.proto" + - "\"\273\r\n\006Backup\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 " + - "\001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\004 " + - "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006" + - "manual\030\005 \001(\010B\003\340A\003\022=\n\006labels\030\006 \003(\0132-.goog" + - "le.cloud.gkebackup.v1.Backup.LabelsEntry" + - "\022\030\n\020delete_lock_days\030\007 \001(\005\022@\n\027delete_loc" + - "k_expire_time\030\010 \001(\0132\032.google.protobuf.Ti" + - "mestampB\003\340A\003\022\023\n\013retain_days\030\t \001(\005\022;\n\022ret" + - "ain_expire_time\030\n \001(\0132\032.google.protobuf." + - "TimestampB\003\340A\003\022E\n\016encryption_key\030\013 \001(\0132(" + - ".google.cloud.gkebackup.v1.EncryptionKey" + - "B\003\340A\003\022\035\n\016all_namespaces\030\014 \001(\010B\003\340A\003H\000\022I\n\023" + - "selected_namespaces\030\r \001(\0132%.google.cloud" + - ".gkebackup.v1.NamespacesB\003\340A\003H\000\022P\n\025selec" + - "ted_applications\030\016 \001(\0132*.google.cloud.gk" + - "ebackup.v1.NamespacedNamesB\003\340A\003H\000\022!\n\024con" + - "tains_volume_data\030\017 \001(\010B\003\340A\003\022\035\n\020contains" + - "_secrets\030\020 \001(\010B\003\340A\003\022P\n\020cluster_metadata\030" + - "\021 \001(\01321.google.cloud.gkebackup.v1.Backup" + - ".ClusterMetadataB\003\340A\003\022;\n\005state\030\022 \001(\0162\'.g" + - "oogle.cloud.gkebackup.v1.Backup.StateB\003\340" + - "A\003\022\031\n\014state_reason\030\023 \001(\tB\003\340A\003\0226\n\rcomplet" + - "e_time\030\024 \001(\0132\032.google.protobuf.Timestamp" + - "B\003\340A\003\022\033\n\016resource_count\030\025 \001(\005B\003\340A\003\022\031\n\014vo" + - "lume_count\030\026 \001(\005B\003\340A\003\022\027\n\nsize_bytes\030\027 \001(" + - "\003B\003\340A\003\022\021\n\004etag\030\030 \001(\tB\003\340A\003\022\023\n\013description" + - "\030\031 \001(\t\022\026\n\tpod_count\030\032 \001(\005B\003\340A\003\022%\n\030config" + - "_backup_size_bytes\030\033 \001(\003B\003\340A\003\032\235\002\n\017Cluste" + - "rMetadata\022\017\n\007cluster\030\001 \001(\t\022\023\n\013k8s_versio" + - "n\030\002 \001(\t\022e\n\023backup_crd_versions\030\003 \003(\0132H.g" + - "oogle.cloud.gkebackup.v1.Backup.ClusterM" + - "etadata.BackupCrdVersionsEntry\022\025\n\013gke_ve" + - "rsion\030\004 \001(\tH\000\022\030\n\016anthos_version\030\005 \001(\tH\000\032" + - "8\n\026BackupCrdVersionsEntry\022\013\n\003key\030\001 \001(\t\022\r" + - "\n\005value\030\002 \001(\t:\0028\001B\022\n\020platform_version\032-\n" + - "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + - ":\0028\001\"f\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010" + - "CREATING\020\001\022\017\n\013IN_PROGRESS\020\002\022\r\n\tSUCCEEDED" + - "\020\003\022\n\n\006FAILED\020\004\022\014\n\010DELETING\020\005:x\352Au\n\037gkeba" + - "ckup.googleapis.com/Backup\022Rprojects/{pr" + - "oject}/locations/{location}/backupPlans/" + - "{backup_plan}/backups/{backup}B\016\n\014backup" + - "_scopeB\311\001\n\035com.google.cloud.gkebackup.v1" + - "B\013BackupProtoP\001ZBgoogle.golang.org/genpr" + - "oto/googleapis/cloud/gkebackup/v1;gkebac" + - "kup\252\002\031Google.Cloud.GkeBackup.V1\312\002\031Google" + - "\\Cloud\\GkeBackup\\V1\352\002\034Google::Cloud::Gke" + - "Backup::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_gkebackup_v1_Backup_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkebackup_v1_Backup_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_Backup_descriptor, - new java.lang.String[] { "Name", "Uid", "CreateTime", "UpdateTime", "Manual", "Labels", "DeleteLockDays", "DeleteLockExpireTime", "RetainDays", "RetainExpireTime", "EncryptionKey", "AllNamespaces", "SelectedNamespaces", "SelectedApplications", "ContainsVolumeData", "ContainsSecrets", "ClusterMetadata", "State", "StateReason", "CompleteTime", "ResourceCount", "VolumeCount", "SizeBytes", "Etag", "Description", "PodCount", "ConfigBackupSizeBytes", "BackupScope", }); - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor = - internal_static_google_cloud_gkebackup_v1_Backup_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor, - new java.lang.String[] { "Cluster", "K8SVersion", "BackupCrdVersions", "GkeVersion", "AnthosVersion", "PlatformVersion", }); - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_descriptor = - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_descriptor = - internal_static_google_cloud_gkebackup_v1_Backup_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CommonProto.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CommonProto.java deleted file mode 100644 index ee33afa..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CommonProto.java +++ /dev/null @@ -1,100 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/common.proto - -package com.google.cloud.gkebackup.v1; - -public final class CommonProto { - private CommonProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_Namespaces_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_NamespacedName_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_NamespacedNames_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_EncryptionKey_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n&google/cloud/gkebackup/v1/common.proto" + - "\022\031google.cloud.gkebackup.v1\032\031google/api/" + - "resource.proto\" \n\nNamespaces\022\022\n\nnamespac" + - "es\030\001 \003(\t\"1\n\016NamespacedName\022\021\n\tnamespace\030" + - "\001 \001(\t\022\014\n\004name\030\002 \001(\t\"V\n\017NamespacedNames\022C" + - "\n\020namespaced_names\030\001 \003(\0132).google.cloud." + - "gkebackup.v1.NamespacedName\"W\n\rEncryptio" + - "nKey\022F\n\026gcp_kms_encryption_key\030\001 \001(\tB&\372A" + - "#\n!cloudkms.googleapis.com/CryptoKeyB\311\001\n" + - "\035com.google.cloud.gkebackup.v1B\013CommonPr" + - "otoP\001ZBgoogle.golang.org/genproto/google" + - "apis/cloud/gkebackup/v1;gkebackup\252\002\031Goog" + - "le.Cloud.GkeBackup.V1\312\002\031Google\\Cloud\\Gke" + - "Backup\\V1\352\002\034Google::Cloud::GkeBackup::V1" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkebackup_v1_Namespaces_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor, - new java.lang.String[] { "Namespaces", }); - internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkebackup_v1_NamespacedName_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor, - new java.lang.String[] { "Namespace", "Name", }); - internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkebackup_v1_NamespacedNames_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor, - new java.lang.String[] { "NamespacedNames", }); - internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkebackup_v1_EncryptionKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor, - new java.lang.String[] { "GcpKmsEncryptionKey", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GKEBackupProto.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GKEBackupProto.java deleted file mode 100644 index 2e717cf..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GKEBackupProto.java +++ /dev/null @@ -1,668 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/gkebackup.proto - -package com.google.cloud.gkebackup.v1; - -public final class GKEBackupProto { - private GKEBackupProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_GetBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/gkebackup/v1/gkebackup.pr" + - "oto\022\031google.cloud.gkebackup.v1\032\034google/a" + - "pi/annotations.proto\032\027google/api/client." + - "proto\032\037google/api/field_behavior.proto\032\031" + - "google/api/resource.proto\032&google/cloud/" + - "gkebackup/v1/backup.proto\032+google/cloud/" + - "gkebackup/v1/backup_plan.proto\032\'google/c" + - "loud/gkebackup/v1/restore.proto\032,google/" + - "cloud/gkebackup/v1/restore_plan.proto\032&g" + - "oogle/cloud/gkebackup/v1/volume.proto\032#g" + - "oogle/longrunning/operations.proto\032 goog" + - "le/protobuf/field_mask.proto\032\037google/pro" + - "tobuf/timestamp.proto\"\200\002\n\021OperationMetad" + - "ata\0224\n\013create_time\030\001 \001(\0132\032.google.protob" + - "uf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.go" + - "ogle.protobuf.TimestampB\003\340A\003\022\023\n\006target\030\003" + - " \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_m" + - "essage\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellat" + - "ion\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003" + - "\"\262\001\n\027CreateBackupPlanRequest\0229\n\006parent\030\001" + - " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + - "ocation\022?\n\013backup_plan\030\002 \001(\0132%.google.cl" + - "oud.gkebackup.v1.BackupPlanB\003\340A\002\022\033\n\016back" + - "up_plan_id\030\003 \001(\tB\003\340A\002\"\234\001\n\026ListBackupPlan" + - "sRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locati" + - "ons.googleapis.com/Location\022\021\n\tpage_size" + - "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001" + - "(\t\022\020\n\010order_by\030\005 \001(\t\"\204\001\n\027ListBackupPlans" + - "Response\022;\n\014backup_plans\030\001 \003(\0132%.google." + - "cloud.gkebackup.v1.BackupPlan\022\027\n\017next_pa" + - "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\024G" + - "etBackupPlanRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A" + - "%\n#gkebackup.googleapis.com/BackupPlan\"\213" + - "\001\n\027UpdateBackupPlanRequest\022?\n\013backup_pla" + - "n\030\001 \001(\0132%.google.cloud.gkebackup.v1.Back" + - "upPlanB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.googl" + - "e.protobuf.FieldMask\"b\n\027DeleteBackupPlan" + - "Request\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#gkebackup" + - ".googleapis.com/BackupPlan\022\014\n\004etag\030\002 \001(\t" + - "\"\230\001\n\023CreateBackupRequest\022;\n\006parent\030\001 \001(\t" + - "B+\340A\002\372A%\n#gkebackup.googleapis.com/Backu" + - "pPlan\0221\n\006backup\030\002 \001(\0132!.google.cloud.gke" + - "backup.v1.Backup\022\021\n\tbackup_id\030\003 \001(\t\"\232\001\n\022" + - "ListBackupsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372" + - "A%\n#gkebackup.googleapis.com/BackupPlan\022" + - "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016" + - "\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"b\n\023List" + - "BackupsResponse\0222\n\007backups\030\001 \003(\0132!.googl" + - "e.cloud.gkebackup.v1.Backup\022\027\n\017next_page" + - "_token\030\002 \001(\t\"I\n\020GetBackupRequest\0225\n\004name" + - "\030\001 \001(\tB\'\340A\002\372A!\n\037gkebackup.googleapis.com" + - "/Backup\"~\n\023UpdateBackupRequest\0226\n\006backup" + - "\030\001 \001(\0132!.google.cloud.gkebackup.v1.Backu" + - "pB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.pro" + - "tobuf.FieldMask\"i\n\023DeleteBackupRequest\0225" + - "\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037gkebackup.googleap" + - "is.com/Backup\022\014\n\004etag\030\002 \001(\t\022\r\n\005force\030\003 \001" + - "(\010\"\234\001\n\030ListVolumeBackupsRequest\0227\n\006paren" + - "t\030\001 \001(\tB\'\340A\002\372A!\n\037gkebackup.googleapis.co" + - "m/Backup\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + - "n\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(" + - "\t\"u\n\031ListVolumeBackupsResponse\022?\n\016volume" + - "_backups\030\001 \003(\0132\'.google.cloud.gkebackup." + - "v1.VolumeBackup\022\027\n\017next_page_token\030\002 \001(\t" + - "\"U\n\026GetVolumeBackupRequest\022;\n\004name\030\001 \001(\t" + - "B-\340A\002\372A\'\n%gkebackup.googleapis.com/Volum" + - "eBackup\"\266\001\n\030CreateRestorePlanRequest\0229\n\006" + - "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + - "is.com/Location\022A\n\014restore_plan\030\002 \001(\0132&." + - "google.cloud.gkebackup.v1.RestorePlanB\003\340" + - "A\002\022\034\n\017restore_plan_id\030\003 \001(\tB\003\340A\002\"\235\001\n\027Lis" + - "tRestorePlansRequest\0229\n\006parent\030\001 \001(\tB)\340A" + - "\002\372A#\n!locations.googleapis.com/Location\022" + - "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016" + - "\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\207\001\n\030Lis" + - "tRestorePlansResponse\022=\n\rrestore_plans\030\001" + - " \003(\0132&.google.cloud.gkebackup.v1.Restore" + - "Plan\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" + - "able\030\003 \003(\t\"S\n\025GetRestorePlanRequest\022:\n\004n" + - "ame\030\001 \001(\tB,\340A\002\372A&\n$gkebackup.googleapis." + - "com/RestorePlan\"\216\001\n\030UpdateRestorePlanReq" + - "uest\022A\n\014restore_plan\030\001 \001(\0132&.google.clou" + - "d.gkebackup.v1.RestorePlanB\003\340A\002\022/\n\013updat" + - "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + - "\"s\n\030DeleteRestorePlanRequest\022:\n\004name\030\001 \001" + - "(\tB,\340A\002\372A&\n$gkebackup.googleapis.com/Res" + - "torePlan\022\014\n\004etag\030\002 \001(\t\022\r\n\005force\030\003 \001(\010\"\247\001" + - "\n\024CreateRestoreRequest\022<\n\006parent\030\001 \001(\tB," + - "\340A\002\372A&\n$gkebackup.googleapis.com/Restore" + - "Plan\0228\n\007restore\030\002 \001(\0132\".google.cloud.gke" + - "backup.v1.RestoreB\003\340A\002\022\027\n\nrestore_id\030\003 \001" + - "(\tB\003\340A\002\"\234\001\n\023ListRestoresRequest\022<\n\006paren" + - "t\030\001 \001(\tB,\340A\002\372A&\n$gkebackup.googleapis.co" + - "m/RestorePlan\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + - "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" + - "\030\005 \001(\t\"z\n\024ListRestoresResponse\0224\n\010restor" + - "es\030\001 \003(\0132\".google.cloud.gkebackup.v1.Res" + - "tore\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" + - "able\030\003 \003(\t\"K\n\021GetRestoreRequest\0226\n\004name\030" + - "\001 \001(\tB(\340A\002\372A\"\n gkebackup.googleapis.com/" + - "Restore\"\201\001\n\024UpdateRestoreRequest\0228\n\007rest" + - "ore\030\001 \001(\0132\".google.cloud.gkebackup.v1.Re" + - "storeB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google" + - ".protobuf.FieldMask\"k\n\024DeleteRestoreRequ" + - "est\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n gkebackup.goo" + - "gleapis.com/Restore\022\014\n\004etag\030\002 \001(\t\022\r\n\005for" + - "ce\030\003 \001(\010\"\236\001\n\031ListVolumeRestoresRequest\0228" + - "\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n gkebackup.google" + - "apis.com/Restore\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" + - "age_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order" + - "_by\030\005 \001(\t\"x\n\032ListVolumeRestoresResponse\022" + - "A\n\017volume_restores\030\001 \003(\0132(.google.cloud." + - "gkebackup.v1.VolumeRestore\022\027\n\017next_page_" + - "token\030\002 \001(\t\"W\n\027GetVolumeRestoreRequest\022<" + - "\n\004name\030\001 \001(\tB.\340A\002\372A(\n&gkebackup.googleap" + - "is.com/VolumeRestore2\305(\n\014BackupForGKE\022\362\001" + - "\n\020CreateBackupPlan\0222.google.cloud.gkebac" + - "kup.v1.CreateBackupPlanRequest\032\035.google." + - "longrunning.Operation\"\212\001\202\323\344\223\002>\"//v1/{par" + - "ent=projects/*/locations/*}/backupPlans:" + - "\013backup_plan\332A!parent,backup_plan,backup" + - "_plan_id\312A\037\n\nBackupPlan\022\021OperationMetada" + - "ta\022\272\001\n\017ListBackupPlans\0221.google.cloud.gk" + - "ebackup.v1.ListBackupPlansRequest\0322.goog" + - "le.cloud.gkebackup.v1.ListBackupPlansRes" + - "ponse\"@\202\323\344\223\0021\022//v1/{parent=projects/*/lo" + - "cations/*}/backupPlans\332A\006parent\022\247\001\n\rGetB" + - "ackupPlan\022/.google.cloud.gkebackup.v1.Ge" + - "tBackupPlanRequest\032%.google.cloud.gkebac" + - "kup.v1.BackupPlan\">\202\323\344\223\0021\022//v1/{name=pro" + - "jects/*/locations/*/backupPlans/*}\332A\004nam" + - "e\022\364\001\n\020UpdateBackupPlan\0222.google.cloud.gk" + - "ebackup.v1.UpdateBackupPlanRequest\032\035.goo" + - "gle.longrunning.Operation\"\214\001\202\323\344\223\002J2;/v1/" + - "{backup_plan.name=projects/*/locations/*" + - "/backupPlans/*}:\013backup_plan\332A\027backup_pl" + - "an,update_mask\312A\037\n\nBackupPlan\022\021Operation" + - "Metadata\022\322\001\n\020DeleteBackupPlan\0222.google.c" + - "loud.gkebackup.v1.DeleteBackupPlanReques" + - "t\032\035.google.longrunning.Operation\"k\202\323\344\223\0021" + - "*//v1/{name=projects/*/locations/*/backu" + - "pPlans/*}\332A\004name\312A*\n\025google.protobuf.Emp" + - "ty\022\021OperationMetadata\022\341\001\n\014CreateBackup\022." + - ".google.cloud.gkebackup.v1.CreateBackupR" + - "equest\032\035.google.longrunning.Operation\"\201\001" + - "\202\323\344\223\002C\"9/v1/{parent=projects/*/locations" + - "/*/backupPlans/*}/backups:\006backup\332A\027pare" + - "nt,backup,backup_id\312A\033\n\006Backup\022\021Operatio" + - "nMetadata\022\270\001\n\013ListBackups\022-.google.cloud" + - ".gkebackup.v1.ListBackupsRequest\032..googl" + - "e.cloud.gkebackup.v1.ListBackupsResponse" + - "\"J\202\323\344\223\002;\0229/v1/{parent=projects/*/locatio" + - "ns/*/backupPlans/*}/backups\332A\006parent\022\245\001\n" + - "\tGetBackup\022+.google.cloud.gkebackup.v1.G" + - "etBackupRequest\032!.google.cloud.gkebackup" + - ".v1.Backup\"H\202\323\344\223\002;\0229/v1/{name=projects/*" + - "/locations/*/backupPlans/*/backups/*}\332A\004" + - "name\022\343\001\n\014UpdateBackup\022..google.cloud.gke" + - "backup.v1.UpdateBackupRequest\032\035.google.l" + - "ongrunning.Operation\"\203\001\202\323\344\223\002J2@/v1/{back" + - "up.name=projects/*/locations/*/backupPla" + - "ns/*/backups/*}:\006backup\332A\022backup,update_" + - "mask\312A\033\n\006Backup\022\021OperationMetadata\022\324\001\n\014D" + - "eleteBackup\022..google.cloud.gkebackup.v1." + - "DeleteBackupRequest\032\035.google.longrunning" + - ".Operation\"u\202\323\344\223\002;*9/v1/{name=projects/*" + - "/locations/*/backupPlans/*/backups/*}\332A\004" + - "name\312A*\n\025google.protobuf.Empty\022\021Operatio" + - "nMetadata\022\332\001\n\021ListVolumeBackups\0223.google" + - ".cloud.gkebackup.v1.ListVolumeBackupsReq" + - "uest\0324.google.cloud.gkebackup.v1.ListVol" + - "umeBackupsResponse\"Z\202\323\344\223\002K\022I/v1/{parent=" + - "projects/*/locations/*/backupPlans/*/bac" + - "kups/*}/volumeBackups\332A\006parent\022\307\001\n\017GetVo" + - "lumeBackup\0221.google.cloud.gkebackup.v1.G" + - "etVolumeBackupRequest\032\'.google.cloud.gke" + - "backup.v1.VolumeBackup\"X\202\323\344\223\002K\022I/v1/{nam" + - "e=projects/*/locations/*/backupPlans/*/b" + - "ackups/*/volumeBackups/*}\332A\004name\022\371\001\n\021Cre" + - "ateRestorePlan\0223.google.cloud.gkebackup." + - "v1.CreateRestorePlanRequest\032\035.google.lon" + - "grunning.Operation\"\217\001\202\323\344\223\002@\"0/v1/{parent" + - "=projects/*/locations/*}/restorePlans:\014r" + - "estore_plan\332A#parent,restore_plan,restor" + - "e_plan_id\312A \n\013RestorePlan\022\021OperationMeta" + - "data\022\276\001\n\020ListRestorePlans\0222.google.cloud" + - ".gkebackup.v1.ListRestorePlansRequest\0323." + - "google.cloud.gkebackup.v1.ListRestorePla" + - "nsResponse\"A\202\323\344\223\0022\0220/v1/{parent=projects" + - "/*/locations/*}/restorePlans\332A\006parent\022\253\001" + - "\n\016GetRestorePlan\0220.google.cloud.gkebacku" + - "p.v1.GetRestorePlanRequest\032&.google.clou" + - "d.gkebackup.v1.RestorePlan\"?\202\323\344\223\0022\0220/v1/" + - "{name=projects/*/locations/*/restorePlan" + - "s/*}\332A\004name\022\373\001\n\021UpdateRestorePlan\0223.goog" + - "le.cloud.gkebackup.v1.UpdateRestorePlanR" + - "equest\032\035.google.longrunning.Operation\"\221\001" + - "\202\323\344\223\002M2=/v1/{restore_plan.name=projects/" + - "*/locations/*/restorePlans/*}:\014restore_p" + - "lan\332A\030restore_plan,update_mask\312A \n\013Resto" + - "rePlan\022\021OperationMetadata\022\325\001\n\021DeleteRest" + - "orePlan\0223.google.cloud.gkebackup.v1.Dele" + - "teRestorePlanRequest\032\035.google.longrunnin" + - "g.Operation\"l\202\323\344\223\0022*0/v1/{name=projects/" + - "*/locations/*/restorePlans/*}\332A\004name\312A*\n" + - "\025google.protobuf.Empty\022\021OperationMetadat" + - "a\022\351\001\n\rCreateRestore\022/.google.cloud.gkeba" + - "ckup.v1.CreateRestoreRequest\032\035.google.lo" + - "ngrunning.Operation\"\207\001\202\323\344\223\002F\";/v1/{paren" + - "t=projects/*/locations/*/restorePlans/*}" + - "/restores:\007restore\332A\031parent,restore,rest" + - "ore_id\312A\034\n\007Restore\022\021OperationMetadata\022\275\001" + - "\n\014ListRestores\022..google.cloud.gkebackup." + - "v1.ListRestoresRequest\032/.google.cloud.gk" + - "ebackup.v1.ListRestoresResponse\"L\202\323\344\223\002=\022" + - ";/v1/{parent=projects/*/locations/*/rest" + - "orePlans/*}/restores\332A\006parent\022\252\001\n\nGetRes" + - "tore\022,.google.cloud.gkebackup.v1.GetRest" + - "oreRequest\032\".google.cloud.gkebackup.v1.R" + - "estore\"J\202\323\344\223\002=\022;/v1/{name=projects/*/loc" + - "ations/*/restorePlans/*/restores/*}\332A\004na" + - "me\022\353\001\n\rUpdateRestore\022/.google.cloud.gkeb" + - "ackup.v1.UpdateRestoreRequest\032\035.google.l" + - "ongrunning.Operation\"\211\001\202\323\344\223\002N2C/v1/{rest" + - "ore.name=projects/*/locations/*/restoreP" + - "lans/*/restores/*}:\007restore\332A\023restore,up" + - "date_mask\312A\034\n\007Restore\022\021OperationMetadata" + - "\022\330\001\n\rDeleteRestore\022/.google.cloud.gkebac" + - "kup.v1.DeleteRestoreRequest\032\035.google.lon" + - "grunning.Operation\"w\202\323\344\223\002=*;/v1/{name=pr" + - "ojects/*/locations/*/restorePlans/*/rest" + - "ores/*}\332A\004name\312A*\n\025google.protobuf.Empty" + - "\022\021OperationMetadata\022\340\001\n\022ListVolumeRestor" + - "es\0224.google.cloud.gkebackup.v1.ListVolum" + - "eRestoresRequest\0325.google.cloud.gkebacku" + - "p.v1.ListVolumeRestoresResponse\"]\202\323\344\223\002N\022" + - "L/v1/{parent=projects/*/locations/*/rest" + - "orePlans/*/restores/*}/volumeRestores\332A\006" + - "parent\022\315\001\n\020GetVolumeRestore\0222.google.clo" + - "ud.gkebackup.v1.GetVolumeRestoreRequest\032" + - "(.google.cloud.gkebackup.v1.VolumeRestor" + - "e\"[\202\323\344\223\002N\022L/v1/{name=projects/*/location" + - "s/*/restorePlans/*/restores/*/volumeRest" + - "ores/*}\332A\004name\032L\312A\030gkebackup.googleapis." + - "com\322A.https://www.googleapis.com/auth/cl" + - "oud-platformB\250\003\n\035com.google.cloud.gkebac" + - "kup.v1B\016GKEBackupProtoP\001ZBgoogle.golang." + - "org/genproto/googleapis/cloud/gkebackup/" + - "v1;gkebackup\252\002\031Google.Cloud.GkeBackup.V1" + - "\312\002\031Google\\Cloud\\GkeBackup\\V1\352\002\034Google::C" + - "loud::GkeBackup::V1\352A^\n container.google" + - "apis.com/Cluster\022:projects/{project}/loc" + - "ations/{location}/clusters/{cluster}\352Ax\n" + - "!cloudkms.googleapis.com/CryptoKey\022Sproj" + - "ects/{project}/locations/{location}/keyR" + - "ings/{key_ring}/cryptoKeys/{crypto_key}b" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.gkebackup.v1.BackupProto.getDescriptor(), - com.google.cloud.gkebackup.v1.BackupPlanProto.getDescriptor(), - com.google.cloud.gkebackup.v1.RestoreProto.getDescriptor(), - com.google.cloud.gkebackup.v1.RestorePlanProto.getDescriptor(), - com.google.cloud.gkebackup.v1.VolumeProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkebackup_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); - internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor, - new java.lang.String[] { "Parent", "BackupPlan", "BackupPlanId", }); - internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor, - new java.lang.String[] { "BackupPlans", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor, - new java.lang.String[] { "BackupPlan", "UpdateMask", }); - internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor, - new java.lang.String[] { "Name", "Etag", }); - internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor, - new java.lang.String[] { "Parent", "Backup", "BackupId", }); - internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor, - new java.lang.String[] { "Backups", "NextPageToken", }); - internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_gkebackup_v1_GetBackupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor, - new java.lang.String[] { "Backup", "UpdateMask", }); - internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor, - new java.lang.String[] { "Name", "Etag", "Force", }); - internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor, - new java.lang.String[] { "VolumeBackups", "NextPageToken", }); - internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor, - new java.lang.String[] { "Parent", "RestorePlan", "RestorePlanId", }); - internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor, - new java.lang.String[] { "RestorePlans", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor, - new java.lang.String[] { "RestorePlan", "UpdateMask", }); - internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor, - new java.lang.String[] { "Name", "Etag", "Force", }); - internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor, - new java.lang.String[] { "Parent", "Restore", "RestoreId", }); - internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor, - new java.lang.String[] { "Restores", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor, - new java.lang.String[] { "Restore", "UpdateMask", }); - internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor, - new java.lang.String[] { "Name", "Etag", "Force", }); - internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor, - new java.lang.String[] { "VolumeRestores", "NextPageToken", }); - internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor, - new java.lang.String[] { "Name", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.gkebackup.v1.BackupProto.getDescriptor(); - com.google.cloud.gkebackup.v1.BackupPlanProto.getDescriptor(); - com.google.cloud.gkebackup.v1.RestoreProto.getDescriptor(); - com.google.cloud.gkebackup.v1.RestorePlanProto.getDescriptor(); - com.google.cloud.gkebackup.v1.VolumeProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequestOrBuilder.java deleted file mode 100644 index c55f514..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/gkebackup.proto - -package com.google.cloud.gkebackup.v1; - -public interface GetBackupPlanRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetBackupPlanRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Fully qualified BackupPlan name.
-   * Format: projects/*/locations/*/backupPlans/*
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Fully qualified BackupPlan name.
-   * Format: projects/*/locations/*/backupPlans/*
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequestOrBuilder.java deleted file mode 100644 index ae48385..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/gkebackup.proto - -package com.google.cloud.gkebackup.v1; - -public interface GetBackupRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetBackupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Full name of the Backup resource.
-   * Format: projects/*/locations/*/backupPlans/*/backups/*
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Full name of the Backup resource.
-   * Format: projects/*/locations/*/backupPlans/*/backups/*
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequestOrBuilder.java deleted file mode 100644 index 4476c58..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/gkebackup.proto - -package com.google.cloud.gkebackup.v1; - -public interface GetRestorePlanRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetRestorePlanRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Fully qualified RestorePlan name.
-   * Format: projects/*/locations/*/restorePlans/*
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Fully qualified RestorePlan name.
-   * Format: projects/*/locations/*/restorePlans/*
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequestOrBuilder.java deleted file mode 100644 index 7f78b6c..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/gkebackup.proto - -package com.google.cloud.gkebackup.v1; - -public interface GetRestoreRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetRestoreRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the restore resource.
-   * Format: projects/*/locations/*/restorePlans/*/restores/*
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the restore resource.
-   * Format: projects/*/locations/*/restorePlans/*/restores/*
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequestOrBuilder.java deleted file mode 100644 index 9a891ad..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/gkebackup.proto - -package com.google.cloud.gkebackup.v1; - -public interface GetVolumeBackupRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetVolumeBackupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Full name of the VolumeBackup resource.
-   * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Full name of the VolumeBackup resource.
-   * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequestOrBuilder.java deleted file mode 100644 index b3ff80c..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/gkebackup.proto - -package com.google.cloud.gkebackup.v1; - -public interface GetVolumeRestoreRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetVolumeRestoreRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Full name of the VolumeRestore resource.
-   * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Full name of the VolumeRestore resource.
-   * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanProto.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanProto.java deleted file mode 100644 index 1c91c66..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanProto.java +++ /dev/null @@ -1,98 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/restore_plan.proto - -package com.google.cloud.gkebackup.v1; - -public final class RestorePlanProto { - private RestorePlanProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_RestorePlan_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/gkebackup/v1/restore_plan" + - ".proto\022\031google.cloud.gkebackup.v1\032\037googl" + - "e/api/field_behavior.proto\032\031google/api/r" + - "esource.proto\032\'google/cloud/gkebackup/v1" + - "/restore.proto\032\037google/protobuf/timestam" + - "p.proto\"\363\004\n\013RestorePlan\022\021\n\004name\030\001 \001(\tB\003\340" + - "A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(" + - "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + - "date_time\030\004 \001(\0132\032.google.protobuf.Timest" + - "ampB\003\340A\003\022\023\n\013description\030\005 \001(\t\022C\n\013backup_" + - "plan\030\006 \001(\tB.\340A\005\340A\002\372A%\n#gkebackup.googlea" + - "pis.com/BackupPlan\022<\n\007cluster\030\007 \001(\tB+\340A\005" + - "\340A\002\372A\"\n container.googleapis.com/Cluster" + - "\022E\n\016restore_config\030\010 \001(\0132(.google.cloud." + - "gkebackup.v1.RestoreConfigB\003\340A\002\022B\n\006label" + - "s\030\t \003(\01322.google.cloud.gkebackup.v1.Rest" + - "orePlan.LabelsEntry\022\021\n\004etag\030\n \001(\tB\003\340A\003\032-" + - "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + - "\t:\0028\001:n\352Ak\n$gkebackup.googleapis.com/Res" + - "torePlan\022Cprojects/{project}/locations/{" + - "location}/restorePlans/{restore_plan}B\316\001" + - "\n\035com.google.cloud.gkebackup.v1B\020Restore" + - "PlanProtoP\001ZBgoogle.golang.org/genproto/" + - "googleapis/cloud/gkebackup/v1;gkebackup\252" + - "\002\031Google.Cloud.GkeBackup.V1\312\002\031Google\\Clo" + - "ud\\GkeBackup\\V1\352\002\034Google::Cloud::GkeBack" + - "up::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.gkebackup.v1.RestoreProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkebackup_v1_RestorePlan_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor, - new java.lang.String[] { "Name", "Uid", "CreateTime", "UpdateTime", "Description", "BackupPlan", "Cluster", "RestoreConfig", "Labels", "Etag", }); - internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_descriptor = - internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.gkebackup.v1.RestoreProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreProto.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreProto.java deleted file mode 100644 index 9e254e6..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreProto.java +++ /dev/null @@ -1,191 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/restore.proto - -package com.google.cloud.gkebackup.v1; - -public final class RestoreProto { - private RestoreProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_Restore_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_RestoreConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'google/cloud/gkebackup/v1/restore.prot" + - "o\022\031google.cloud.gkebackup.v1\032\037google/api" + - "/field_behavior.proto\032\031google/api/resour" + - "ce.proto\032&google/cloud/gkebackup/v1/comm" + - "on.proto\032\037google/protobuf/timestamp.prot" + - "o\"\377\007\n\007Restore\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030" + - "\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.google" + - ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" + - "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023" + - "\n\013description\030\005 \001(\t\022:\n\006backup\030\006 \001(\tB*\340A\005" + - "\340A\002\372A!\n\037gkebackup.googleapis.com/Backup\022" + - "9\n\007cluster\030\007 \001(\tB(\340A\003\372A\"\n container.goog" + - "leapis.com/Cluster\022E\n\016restore_config\030\010 \001" + - "(\0132(.google.cloud.gkebackup.v1.RestoreCo" + - "nfigB\003\340A\003\022>\n\006labels\030\t \003(\0132..google.cloud" + - ".gkebackup.v1.Restore.LabelsEntry\022<\n\005sta" + - "te\030\n \001(\0162(.google.cloud.gkebackup.v1.Res" + - "tore.StateB\003\340A\003\022\031\n\014state_reason\030\013 \001(\tB\003\340" + - "A\003\0226\n\rcomplete_time\030\014 \001(\0132\032.google.proto" + - "buf.TimestampB\003\340A\003\022%\n\030resources_restored" + - "_count\030\r \001(\005B\003\340A\003\022%\n\030resources_excluded_" + - "count\030\016 \001(\005B\003\340A\003\022#\n\026resources_failed_cou" + - "nt\030\017 \001(\005B\003\340A\003\022#\n\026volumes_restored_count\030" + - "\020 \001(\005B\003\340A\003\022\021\n\004etag\030\021 \001(\tB\003\340A\003\032-\n\013LabelsE" + - "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"f\n\005" + - "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING" + - "\020\001\022\017\n\013IN_PROGRESS\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FA" + - "ILED\020\004\022\014\n\010DELETING\020\005:}\352Az\n gkebackup.goo" + - "gleapis.com/Restore\022Vprojects/{project}/" + - "locations/{location}/restorePlans/{resto" + - "re_plan}/restores/{restore}\"\250\014\n\rRestoreC" + - "onfig\022d\n\032volume_data_restore_policy\030\001 \001(" + - "\0162@.google.cloud.gkebackup.v1.RestoreCon" + - "fig.VolumeDataRestorePolicy\022p\n cluster_r" + - "esource_conflict_policy\030\002 \001(\0162F.google.c" + - "loud.gkebackup.v1.RestoreConfig.ClusterR" + - "esourceConflictPolicy\022p\n namespaced_reso" + - "urce_restore_mode\030\003 \001(\0162F.google.cloud.g" + - "kebackup.v1.RestoreConfig.NamespacedReso" + - "urceRestoreMode\022l\n\036cluster_resource_rest" + - "ore_scope\030\004 \001(\0132D.google.cloud.gkebackup" + - ".v1.RestoreConfig.ClusterResourceRestore" + - "Scope\022\030\n\016all_namespaces\030\005 \001(\010H\000\022D\n\023selec" + - "ted_namespaces\030\006 \001(\0132%.google.cloud.gkeb" + - "ackup.v1.NamespacesH\000\022K\n\025selected_applic" + - "ations\030\007 \001(\0132*.google.cloud.gkebackup.v1" + - ".NamespacedNamesH\000\022U\n\022substitution_rules" + - "\030\010 \003(\01329.google.cloud.gkebackup.v1.Resto" + - "reConfig.SubstitutionRule\032:\n\tGroupKind\022\026" + - "\n\016resource_group\030\001 \001(\t\022\025\n\rresource_kind\030" + - "\002 \001(\t\032o\n\033ClusterResourceRestoreScope\022P\n\024" + - "selected_group_kinds\030\001 \003(\01322.google.clou" + - "d.gkebackup.v1.RestoreConfig.GroupKind\032\317" + - "\001\n\020SubstitutionRule\022\031\n\021target_namespaces" + - "\030\001 \003(\t\022N\n\022target_group_kinds\030\002 \003(\01322.goo" + - "gle.cloud.gkebackup.v1.RestoreConfig.Gro" + - "upKind\022\035\n\020target_json_path\030\003 \001(\tB\003\340A\002\022\036\n" + - "\026original_value_pattern\030\004 \001(\t\022\021\n\tnew_val" + - "ue\030\005 \001(\t\"\257\001\n\027VolumeDataRestorePolicy\022*\n&" + - "VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED\020\000" + - "\022#\n\037RESTORE_VOLUME_DATA_FROM_BACKUP\020\001\022#\n" + - "\037REUSE_VOLUME_HANDLE_FROM_BACKUP\020\002\022\036\n\032NO" + - "_VOLUME_DATA_RESTORATION\020\003\"\203\001\n\035ClusterRe" + - "sourceConflictPolicy\0220\n,CLUSTER_RESOURCE" + - "_CONFLICT_POLICY_UNSPECIFIED\020\000\022\030\n\024USE_EX" + - "ISTING_VERSION\020\001\022\026\n\022USE_BACKUP_VERSION\020\002" + - "\"\177\n\035NamespacedResourceRestoreMode\0220\n,NAM" + - "ESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIE" + - "D\020\000\022\026\n\022DELETE_AND_RESTORE\020\001\022\024\n\020FAIL_ON_C" + - "ONFLICT\020\002B#\n!namespaced_resource_restore" + - "_scopeB\312\001\n\035com.google.cloud.gkebackup.v1" + - "B\014RestoreProtoP\001ZBgoogle.golang.org/genp" + - "roto/googleapis/cloud/gkebackup/v1;gkeba" + - "ckup\252\002\031Google.Cloud.GkeBackup.V1\312\002\031Googl" + - "e\\Cloud\\GkeBackup\\V1\352\002\034Google::Cloud::Gk" + - "eBackup::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_gkebackup_v1_Restore_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_Restore_descriptor, - new java.lang.String[] { "Name", "Uid", "CreateTime", "UpdateTime", "Description", "Backup", "Cluster", "RestoreConfig", "Labels", "State", "StateReason", "CompleteTime", "ResourcesRestoredCount", "ResourcesExcludedCount", "ResourcesFailedCount", "VolumesRestoredCount", "Etag", }); - internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor = - internal_static_google_cloud_gkebackup_v1_Restore_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkebackup_v1_RestoreConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor, - new java.lang.String[] { "VolumeDataRestorePolicy", "ClusterResourceConflictPolicy", "NamespacedResourceRestoreMode", "ClusterResourceRestoreScope", "AllNamespaces", "SelectedNamespaces", "SelectedApplications", "SubstitutionRules", "NamespacedResourceRestoreScope", }); - internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor = - internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor, - new java.lang.String[] { "ResourceGroup", "ResourceKind", }); - internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor = - internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor, - new java.lang.String[] { "SelectedGroupKinds", }); - internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor = - internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor, - new java.lang.String[] { "TargetNamespaces", "TargetGroupKinds", "TargetJsonPath", "OriginalValuePattern", "NewValue", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeProto.java b/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeProto.java deleted file mode 100644 index e58a0cd..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeProto.java +++ /dev/null @@ -1,126 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkebackup/v1/volume.proto - -package com.google.cloud.gkebackup.v1; - -public final class VolumeProto { - private VolumeProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_VolumeBackup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkebackup_v1_VolumeRestore_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n&google/cloud/gkebackup/v1/volume.proto" + - "\022\031google.cloud.gkebackup.v1\032\037google/api/" + - "field_behavior.proto\032\031google/api/resourc" + - "e.proto\032&google/cloud/gkebackup/v1/commo" + - "n.proto\032\037google/protobuf/timestamp.proto" + - "\"\250\007\n\014VolumeBackup\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003" + - "uid\030\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.go" + - "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" + - "ime\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340" + - "A\003\022B\n\nsource_pvc\030\005 \001(\0132).google.cloud.gk" + - "ebackup.v1.NamespacedNameB\003\340A\003\022!\n\024volume" + - "_backup_handle\030\006 \001(\tB\003\340A\003\022O\n\006format\030\007 \001(" + - "\0162:.google.cloud.gkebackup.v1.VolumeBack" + - "up.VolumeBackupFormatB\003\340A\003\022\032\n\rstorage_by" + - "tes\030\010 \001(\003B\003\340A\003\022\034\n\017disk_size_bytes\030\t \001(\003B" + - "\003\340A\003\0226\n\rcomplete_time\030\n \001(\0132\032.google.pro" + - "tobuf.TimestampB\003\340A\003\022A\n\005state\030\013 \001(\0162-.go" + - "ogle.cloud.gkebackup.v1.VolumeBackup.Sta" + - "teB\003\340A\003\022\032\n\rstate_message\030\014 \001(\tB\003\340A\003\022\021\n\004e" + - "tag\030\r \001(\tB\003\340A\003\"S\n\022VolumeBackupFormat\022$\n " + - "VOLUME_BACKUP_FORMAT_UNSPECIFIED\020\000\022\027\n\023GC" + - "E_PERSISTENT_DISK\020\001\"v\n\005State\022\025\n\021STATE_UN" + - "SPECIFIED\020\000\022\014\n\010CREATING\020\001\022\020\n\014SNAPSHOTTIN" + - "G\020\002\022\r\n\tUPLOADING\020\003\022\r\n\tSUCCEEDED\020\004\022\n\n\006FAI" + - "LED\020\005\022\014\n\010DELETING\020\006:\235\001\352A\231\001\n%gkebackup.go" + - "ogleapis.com/VolumeBackup\022pprojects/{pro" + - "ject}/locations/{location}/backupPlans/{" + - "backup_plan}/backups/{backup}/volumeBack" + - "ups/{volume_backup}\"\347\006\n\rVolumeRestore\022\021\n" + - "\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0224\n\013cr" + - "eate_time\030\003 \001(\0132\032.google.protobuf.Timest" + - "ampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\003\022\032\n\rvolume_backup\030" + - "\005 \001(\tB\003\340A\003\022B\n\ntarget_pvc\030\006 \001(\0132).google." + - "cloud.gkebackup.v1.NamespacedNameB\003\340A\003\022\032" + - "\n\rvolume_handle\030\007 \001(\tB\003\340A\003\022M\n\013volume_typ" + - "e\030\010 \001(\01623.google.cloud.gkebackup.v1.Volu" + - "meRestore.VolumeTypeB\003\340A\003\0226\n\rcomplete_ti" + - "me\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A" + - "\003\022B\n\005state\030\n \001(\0162..google.cloud.gkebacku" + - "p.v1.VolumeRestore.StateB\003\340A\003\022\032\n\rstate_m" + - "essage\030\013 \001(\tB\003\340A\003\022\021\n\004etag\030\014 \001(\tB\003\340A\003\"B\n\n" + - "VolumeType\022\033\n\027VOLUME_TYPE_UNSPECIFIED\020\000\022" + - "\027\n\023GCE_PERSISTENT_DISK\020\001\"d\n\005State\022\025\n\021STA" + - "TE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\r\n\tRESTOR" + - "ING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\022\014\n\010DELE" + - "TING\020\005:\244\001\352A\240\001\n&gkebackup.googleapis.com/" + - "VolumeRestore\022vprojects/{project}/locati" + - "ons/{location}/restorePlans/{restore_pla" + - "n}/restores/{restore}/volumeRestores/{vo" + - "lume_restore}B\311\001\n\035com.google.cloud.gkeba" + - "ckup.v1B\013VolumeProtoP\001ZBgoogle.golang.or" + - "g/genproto/googleapis/cloud/gkebackup/v1" + - ";gkebackup\252\002\031Google.Cloud.GkeBackup.V1\312\002" + - "\031Google\\Cloud\\GkeBackup\\V1\352\002\034Google::Clo" + - "ud::GkeBackup::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkebackup_v1_VolumeBackup_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor, - new java.lang.String[] { "Name", "Uid", "CreateTime", "UpdateTime", "SourcePvc", "VolumeBackupHandle", "Format", "StorageBytes", "DiskSizeBytes", "CompleteTime", "State", "StateMessage", "Etag", }); - internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkebackup_v1_VolumeRestore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor, - new java.lang.String[] { "Name", "Uid", "CreateTime", "UpdateTime", "VolumeBackup", "TargetPvc", "VolumeHandle", "VolumeType", "CompleteTime", "State", "StateMessage", "Etag", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Backup.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Backup.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Backup.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Backup.java index b9d37ef..c0fbf82 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Backup.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Backup.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/backup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Represents a request to perform a single point-in-time capture of
  * some portion of the state of a GKE cluster, the record of the backup
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.gkebackup.v1.Backup}
  */
-public final class Backup extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Backup extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.Backup)
     BackupOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Backup.newBuilder() to construct.
   private Backup(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Backup() {
     name_ = "";
     uid_ = "";
@@ -34,16 +52,15 @@ private Backup() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Backup();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Backup(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -63,236 +80,265 @@ private Backup(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            uid_ = s;
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              uid_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 34:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 40:
+            {
+              manual_ = input.readBool();
+              break;
             }
-
-            break;
-          }
-          case 40: {
-
-            manual_ = input.readBool();
-            break;
-          }
-          case 50: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+          case 50:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 56: {
+          case 56:
+            {
+              deleteLockDays_ = input.readInt32();
+              break;
+            }
+          case 66:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (deleteLockExpireTime_ != null) {
+                subBuilder = deleteLockExpireTime_.toBuilder();
+              }
+              deleteLockExpireTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(deleteLockExpireTime_);
+                deleteLockExpireTime_ = subBuilder.buildPartial();
+              }
 
-            deleteLockDays_ = input.readInt32();
-            break;
-          }
-          case 66: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (deleteLockExpireTime_ != null) {
-              subBuilder = deleteLockExpireTime_.toBuilder();
+              break;
             }
-            deleteLockExpireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(deleteLockExpireTime_);
-              deleteLockExpireTime_ = subBuilder.buildPartial();
+          case 72:
+            {
+              retainDays_ = input.readInt32();
+              break;
             }
+          case 82:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (retainExpireTime_ != null) {
+                subBuilder = retainExpireTime_.toBuilder();
+              }
+              retainExpireTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(retainExpireTime_);
+                retainExpireTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 72: {
-
-            retainDays_ = input.readInt32();
-            break;
-          }
-          case 82: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (retainExpireTime_ != null) {
-              subBuilder = retainExpireTime_.toBuilder();
-            }
-            retainExpireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(retainExpireTime_);
-              retainExpireTime_ = subBuilder.buildPartial();
+              break;
             }
+          case 90:
+            {
+              com.google.cloud.gkebackup.v1.EncryptionKey.Builder subBuilder = null;
+              if (encryptionKey_ != null) {
+                subBuilder = encryptionKey_.toBuilder();
+              }
+              encryptionKey_ =
+                  input.readMessage(
+                      com.google.cloud.gkebackup.v1.EncryptionKey.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(encryptionKey_);
+                encryptionKey_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 90: {
-            com.google.cloud.gkebackup.v1.EncryptionKey.Builder subBuilder = null;
-            if (encryptionKey_ != null) {
-              subBuilder = encryptionKey_.toBuilder();
+              break;
             }
-            encryptionKey_ = input.readMessage(com.google.cloud.gkebackup.v1.EncryptionKey.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(encryptionKey_);
-              encryptionKey_ = subBuilder.buildPartial();
+          case 96:
+            {
+              backupScope_ = input.readBool();
+              backupScopeCase_ = 12;
+              break;
             }
-
-            break;
-          }
-          case 96: {
-            backupScope_ = input.readBool();
-            backupScopeCase_ = 12;
-            break;
-          }
-          case 106: {
-            com.google.cloud.gkebackup.v1.Namespaces.Builder subBuilder = null;
-            if (backupScopeCase_ == 13) {
-              subBuilder = ((com.google.cloud.gkebackup.v1.Namespaces) backupScope_).toBuilder();
+          case 106:
+            {
+              com.google.cloud.gkebackup.v1.Namespaces.Builder subBuilder = null;
+              if (backupScopeCase_ == 13) {
+                subBuilder = ((com.google.cloud.gkebackup.v1.Namespaces) backupScope_).toBuilder();
+              }
+              backupScope_ =
+                  input.readMessage(
+                      com.google.cloud.gkebackup.v1.Namespaces.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.gkebackup.v1.Namespaces) backupScope_);
+                backupScope_ = subBuilder.buildPartial();
+              }
+              backupScopeCase_ = 13;
+              break;
             }
-            backupScope_ =
-                input.readMessage(com.google.cloud.gkebackup.v1.Namespaces.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.gkebackup.v1.Namespaces) backupScope_);
-              backupScope_ = subBuilder.buildPartial();
+          case 114:
+            {
+              com.google.cloud.gkebackup.v1.NamespacedNames.Builder subBuilder = null;
+              if (backupScopeCase_ == 14) {
+                subBuilder =
+                    ((com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_).toBuilder();
+              }
+              backupScope_ =
+                  input.readMessage(
+                      com.google.cloud.gkebackup.v1.NamespacedNames.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_);
+                backupScope_ = subBuilder.buildPartial();
+              }
+              backupScopeCase_ = 14;
+              break;
             }
-            backupScopeCase_ = 13;
-            break;
-          }
-          case 114: {
-            com.google.cloud.gkebackup.v1.NamespacedNames.Builder subBuilder = null;
-            if (backupScopeCase_ == 14) {
-              subBuilder = ((com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_).toBuilder();
+          case 120:
+            {
+              containsVolumeData_ = input.readBool();
+              break;
             }
-            backupScope_ =
-                input.readMessage(com.google.cloud.gkebackup.v1.NamespacedNames.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_);
-              backupScope_ = subBuilder.buildPartial();
+          case 128:
+            {
+              containsSecrets_ = input.readBool();
+              break;
             }
-            backupScopeCase_ = 14;
-            break;
-          }
-          case 120: {
-
-            containsVolumeData_ = input.readBool();
-            break;
-          }
-          case 128: {
+          case 138:
+            {
+              com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder subBuilder = null;
+              if (clusterMetadata_ != null) {
+                subBuilder = clusterMetadata_.toBuilder();
+              }
+              clusterMetadata_ =
+                  input.readMessage(
+                      com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(clusterMetadata_);
+                clusterMetadata_ = subBuilder.buildPartial();
+              }
 
-            containsSecrets_ = input.readBool();
-            break;
-          }
-          case 138: {
-            com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder subBuilder = null;
-            if (clusterMetadata_ != null) {
-              subBuilder = clusterMetadata_.toBuilder();
-            }
-            clusterMetadata_ = input.readMessage(com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(clusterMetadata_);
-              clusterMetadata_ = subBuilder.buildPartial();
+              break;
             }
+          case 144:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 144: {
-            int rawValue = input.readEnum();
+              state_ = rawValue;
+              break;
+            }
+          case 154:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            state_ = rawValue;
-            break;
-          }
-          case 154: {
-            java.lang.String s = input.readStringRequireUtf8();
+              stateReason_ = s;
+              break;
+            }
+          case 162:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (completeTime_ != null) {
+                subBuilder = completeTime_.toBuilder();
+              }
+              completeTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(completeTime_);
+                completeTime_ = subBuilder.buildPartial();
+              }
 
-            stateReason_ = s;
-            break;
-          }
-          case 162: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (completeTime_ != null) {
-              subBuilder = completeTime_.toBuilder();
+              break;
             }
-            completeTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(completeTime_);
-              completeTime_ = subBuilder.buildPartial();
+          case 168:
+            {
+              resourceCount_ = input.readInt32();
+              break;
             }
+          case 176:
+            {
+              volumeCount_ = input.readInt32();
+              break;
+            }
+          case 184:
+            {
+              sizeBytes_ = input.readInt64();
+              break;
+            }
+          case 194:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 168: {
-
-            resourceCount_ = input.readInt32();
-            break;
-          }
-          case 176: {
-
-            volumeCount_ = input.readInt32();
-            break;
-          }
-          case 184: {
-
-            sizeBytes_ = input.readInt64();
-            break;
-          }
-          case 194: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            etag_ = s;
-            break;
-          }
-          case 202: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            description_ = s;
-            break;
-          }
-          case 208: {
-
-            podCount_ = input.readInt32();
-            break;
-          }
-          case 216: {
+              etag_ = s;
+              break;
+            }
+          case 202:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            configBackupSizeBytes_ = input.readInt64();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              description_ = s;
+              break;
+            }
+          case 208:
+            {
+              podCount_ = input.readInt32();
+              break;
+            }
+          case 216:
+            {
+              configBackupSizeBytes_ = input.readInt64();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -300,48 +346,52 @@ private Backup(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkebackup.v1.BackupProto
+        .internal_static_google_cloud_gkebackup_v1_Backup_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 6:
         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.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_fieldAccessorTable
+    return com.google.cloud.gkebackup.v1.BackupProto
+        .internal_static_google_cloud_gkebackup_v1_Backup_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkebackup.v1.Backup.class, com.google.cloud.gkebackup.v1.Backup.Builder.class);
+            com.google.cloud.gkebackup.v1.Backup.class,
+            com.google.cloud.gkebackup.v1.Backup.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * State
    * 
* * Protobuf enum {@code google.cloud.gkebackup.v1.Backup.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The Backup resource is in the process of being created.
      * 
@@ -350,6 +400,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The Backup resource has been created and the associated BackupJob
      * Kubernetes resource has been injected into the source cluster.
@@ -359,6 +411,8 @@ public enum State
      */
     CREATING(1),
     /**
+     *
+     *
      * 
      * The gkebackup agent in the cluster has begun executing the backup
      * operation.
@@ -368,6 +422,8 @@ public enum State
      */
     IN_PROGRESS(2),
     /**
+     *
+     *
      * 
      * The backup operation has completed successfully.
      * 
@@ -376,6 +432,8 @@ public enum State */ SUCCEEDED(3), /** + * + * *
      * The backup operation has failed.
      * 
@@ -384,6 +442,8 @@ public enum State */ FAILED(4), /** + * + * *
      * This Backup resource (and its associated artifacts) is in the process
      * of being deleted.
@@ -396,6 +456,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * The Backup resource is in the process of being created.
      * 
@@ -404,6 +466,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The Backup resource has been created and the associated BackupJob
      * Kubernetes resource has been injected into the source cluster.
@@ -413,6 +477,8 @@ public enum State
      */
     public static final int CREATING_VALUE = 1;
     /**
+     *
+     *
      * 
      * The gkebackup agent in the cluster has begun executing the backup
      * operation.
@@ -422,6 +488,8 @@ public enum State
      */
     public static final int IN_PROGRESS_VALUE = 2;
     /**
+     *
+     *
      * 
      * The backup operation has completed successfully.
      * 
@@ -430,6 +498,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 3; /** + * + * *
      * The backup operation has failed.
      * 
@@ -438,6 +508,8 @@ public enum State */ public static final int FAILED_VALUE = 4; /** + * + * *
      * This Backup resource (and its associated artifacts) is in the process
      * of being deleted.
@@ -447,7 +519,6 @@ public enum State
      */
     public static final int DELETING_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -472,52 +543,55 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return CREATING;
-        case 2: return IN_PROGRESS;
-        case 3: return SUCCEEDED;
-        case 4: return FAILED;
-        case 5: return DELETING;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return CREATING;
+        case 2:
+          return IN_PROGRESS;
+        case 3:
+          return SUCCEEDED;
+        case 4:
+          return FAILED;
+        case 5:
+          return DELETING;
+        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<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.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 State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.gkebackup.v1.Backup.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State 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;
@@ -534,11 +608,14 @@ private State(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.gkebackup.v1.Backup.State)
   }
 
-  public interface ClusterMetadataOrBuilder extends
+  public interface ClusterMetadataOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.Backup.ClusterMetadata)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The source cluster from which this Backup was created.
      * Valid formats:
@@ -549,10 +626,13 @@ public interface ClusterMetadataOrBuilder extends
      * 
* * string cluster = 1; + * * @return The cluster. */ java.lang.String getCluster(); /** + * + * *
      * The source cluster from which this Backup was created.
      * Valid formats:
@@ -563,32 +643,39 @@ public interface ClusterMetadataOrBuilder extends
      * 
* * string cluster = 1; + * * @return The bytes for cluster. */ - com.google.protobuf.ByteString - getClusterBytes(); + com.google.protobuf.ByteString getClusterBytes(); /** + * + * *
      * The Kubernetes server version of the source cluster.
      * 
* * string k8s_version = 2; + * * @return The k8sVersion. */ java.lang.String getK8SVersion(); /** + * + * *
      * The Kubernetes server version of the source cluster.
      * 
* * string k8s_version = 2; + * * @return The bytes for k8sVersion. */ - com.google.protobuf.ByteString - getK8SVersionBytes(); + com.google.protobuf.ByteString getK8SVersionBytes(); /** + * + * *
      * A list of the Backup for GKE CRD versions found in the cluster.
      * 
@@ -597,30 +684,31 @@ public interface ClusterMetadataOrBuilder extends */ int getBackupCrdVersionsCount(); /** + * + * *
      * A list of the Backup for GKE CRD versions found in the cluster.
      * 
* * map<string, string> backup_crd_versions = 3; */ - boolean containsBackupCrdVersions( - java.lang.String key); - /** - * Use {@link #getBackupCrdVersionsMap()} instead. - */ + boolean containsBackupCrdVersions(java.lang.String key); + /** Use {@link #getBackupCrdVersionsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getBackupCrdVersions(); + java.util.Map getBackupCrdVersions(); /** + * + * *
      * A list of the Backup for GKE CRD versions found in the cluster.
      * 
* * map<string, string> backup_crd_versions = 3; */ - java.util.Map - getBackupCrdVersionsMap(); + java.util.Map getBackupCrdVersionsMap(); /** + * + * *
      * A list of the Backup for GKE CRD versions found in the cluster.
      * 
@@ -629,97 +717,117 @@ boolean containsBackupCrdVersions( */ /* nullable */ -java.lang.String getBackupCrdVersionsOrDefault( + java.lang.String getBackupCrdVersionsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
      * A list of the Backup for GKE CRD versions found in the cluster.
      * 
* * map<string, string> backup_crd_versions = 3; */ - - java.lang.String getBackupCrdVersionsOrThrow( - java.lang.String key); + java.lang.String getBackupCrdVersionsOrThrow(java.lang.String key); /** + * + * *
      * GKE version
      * 
* * string gke_version = 4; + * * @return Whether the gkeVersion field is set. */ boolean hasGkeVersion(); /** + * + * *
      * GKE version
      * 
* * string gke_version = 4; + * * @return The gkeVersion. */ java.lang.String getGkeVersion(); /** + * + * *
      * GKE version
      * 
* * string gke_version = 4; + * * @return The bytes for gkeVersion. */ - com.google.protobuf.ByteString - getGkeVersionBytes(); + com.google.protobuf.ByteString getGkeVersionBytes(); /** + * + * *
      * Anthos version
      * 
* * string anthos_version = 5; + * * @return Whether the anthosVersion field is set. */ boolean hasAnthosVersion(); /** + * + * *
      * Anthos version
      * 
* * string anthos_version = 5; + * * @return The anthosVersion. */ java.lang.String getAnthosVersion(); /** + * + * *
      * Anthos version
      * 
* * string anthos_version = 5; + * * @return The bytes for anthosVersion. */ - com.google.protobuf.ByteString - getAnthosVersionBytes(); + com.google.protobuf.ByteString getAnthosVersionBytes(); - public com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.PlatformVersionCase getPlatformVersionCase(); + public com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.PlatformVersionCase + getPlatformVersionCase(); } /** + * + * *
    * Information about the GKE cluster from which this Backup was created.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.Backup.ClusterMetadata} */ - public static final class ClusterMetadata extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ClusterMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.Backup.ClusterMetadata) ClusterMetadataOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClusterMetadata.newBuilder() to construct. private ClusterMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ClusterMetadata() { cluster_ = ""; k8SVersion_ = ""; @@ -727,16 +835,15 @@ private ClusterMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ClusterMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ClusterMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -756,50 +863,59 @@ private ClusterMetadata( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - cluster_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + cluster_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - k8SVersion_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - backupCrdVersions_ = com.google.protobuf.MapField.newMapField( - BackupCrdVersionsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + k8SVersion_ = s; + break; } - com.google.protobuf.MapEntry - backupCrdVersions__ = input.readMessage( - BackupCrdVersionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - backupCrdVersions_.getMutableMap().put( - backupCrdVersions__.getKey(), backupCrdVersions__.getValue()); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - platformVersionCase_ = 4; - platformVersion_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - platformVersionCase_ = 5; - platformVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + backupCrdVersions_ = + com.google.protobuf.MapField.newMapField( + BackupCrdVersionsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + backupCrdVersions__ = + input.readMessage( + BackupCrdVersionsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + backupCrdVersions_ + .getMutableMap() + .put(backupCrdVersions__.getKey(), backupCrdVersions__.getValue()); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + platformVersionCase_ = 4; + platformVersion_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + platformVersionCase_ = 5; + platformVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -807,47 +923,51 @@ private ClusterMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.BackupProto + .internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetBackupCrdVersions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_fieldAccessorTable + return com.google.cloud.gkebackup.v1.BackupProto + .internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.class, com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder.class); + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.class, + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder.class); } private int platformVersionCase_ = 0; private java.lang.Object platformVersion_; + public enum PlatformVersionCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GKE_VERSION(4), ANTHOS_VERSION(5), PLATFORMVERSION_NOT_SET(0); private final int value; + private PlatformVersionCase(int value) { this.value = value; } @@ -863,26 +983,31 @@ public static PlatformVersionCase valueOf(int value) { public static PlatformVersionCase forNumber(int value) { switch (value) { - case 4: return GKE_VERSION; - case 5: return ANTHOS_VERSION; - case 0: return PLATFORMVERSION_NOT_SET; - default: return null; + case 4: + return GKE_VERSION; + case 5: + return ANTHOS_VERSION; + case 0: + return PLATFORMVERSION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public PlatformVersionCase - getPlatformVersionCase() { - return PlatformVersionCase.forNumber( - platformVersionCase_); + public PlatformVersionCase getPlatformVersionCase() { + return PlatformVersionCase.forNumber(platformVersionCase_); } public static final int CLUSTER_FIELD_NUMBER = 1; private volatile java.lang.Object cluster_; /** + * + * *
      * The source cluster from which this Backup was created.
      * Valid formats:
@@ -893,6 +1018,7 @@ public int getNumber() {
      * 
* * string cluster = 1; + * * @return The cluster. */ @java.lang.Override @@ -901,14 +1027,15 @@ public java.lang.String getCluster() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; } } /** + * + * *
      * The source cluster from which this Backup was created.
      * Valid formats:
@@ -919,16 +1046,15 @@ public java.lang.String getCluster() {
      * 
* * string cluster = 1; + * * @return The bytes for cluster. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterBytes() { + public com.google.protobuf.ByteString getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cluster_ = b; return b; } else { @@ -939,11 +1065,14 @@ public java.lang.String getCluster() { public static final int K8S_VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object k8SVersion_; /** + * + * *
      * The Kubernetes server version of the source cluster.
      * 
* * string k8s_version = 2; + * * @return The k8sVersion. */ @java.lang.Override @@ -952,29 +1081,29 @@ public java.lang.String getK8SVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); k8SVersion_ = s; return s; } } /** + * + * *
      * The Kubernetes server version of the source cluster.
      * 
* * string k8s_version = 2; + * * @return The bytes for k8sVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getK8SVersionBytes() { + public com.google.protobuf.ByteString getK8SVersionBytes() { java.lang.Object ref = k8SVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); k8SVersion_ = b; return b; } else { @@ -983,21 +1112,22 @@ public java.lang.String getK8SVersion() { } public static final int BACKUP_CRD_VERSIONS_FIELD_NUMBER = 3; + private static final class BackupCrdVersionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> backupCrdVersions_; + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkebackup.v1.BackupProto + .internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField backupCrdVersions_; + private com.google.protobuf.MapField - internalGetBackupCrdVersions() { + internalGetBackupCrdVersions() { if (backupCrdVersions_ == null) { return com.google.protobuf.MapField.emptyMapField( BackupCrdVersionsDefaultEntryHolder.defaultEntry); @@ -1009,28 +1139,30 @@ public int getBackupCrdVersionsCount() { return internalGetBackupCrdVersions().getMap().size(); } /** + * + * *
      * A list of the Backup for GKE CRD versions found in the cluster.
      * 
* * map<string, string> backup_crd_versions = 3; */ - @java.lang.Override - public boolean containsBackupCrdVersions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsBackupCrdVersions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetBackupCrdVersions().getMap().containsKey(key); } - /** - * Use {@link #getBackupCrdVersionsMap()} instead. - */ + /** Use {@link #getBackupCrdVersionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getBackupCrdVersions() { return getBackupCrdVersionsMap(); } /** + * + * *
      * A list of the Backup for GKE CRD versions found in the cluster.
      * 
@@ -1038,11 +1170,12 @@ public java.util.Map getBackupCrdVersions() * map<string, string> backup_crd_versions = 3; */ @java.lang.Override - public java.util.Map getBackupCrdVersionsMap() { return internalGetBackupCrdVersions().getMap(); } /** + * + * *
      * A list of the Backup for GKE CRD versions found in the cluster.
      * 
@@ -1050,16 +1183,18 @@ public java.util.Map getBackupCrdVersionsMap * map<string, string> backup_crd_versions = 3; */ @java.lang.Override - public java.lang.String getBackupCrdVersionsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetBackupCrdVersions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * A list of the Backup for GKE CRD versions found in the cluster.
      * 
@@ -1067,10 +1202,10 @@ public java.lang.String getBackupCrdVersionsOrDefault( * map<string, string> backup_crd_versions = 3; */ @java.lang.Override - - public java.lang.String getBackupCrdVersionsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getBackupCrdVersionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetBackupCrdVersions().getMap(); if (!map.containsKey(key)) { @@ -1081,22 +1216,28 @@ public java.lang.String getBackupCrdVersionsOrThrow( public static final int GKE_VERSION_FIELD_NUMBER = 4; /** + * + * *
      * GKE version
      * 
* * string gke_version = 4; + * * @return Whether the gkeVersion field is set. */ public boolean hasGkeVersion() { return platformVersionCase_ == 4; } /** + * + * *
      * GKE version
      * 
* * string gke_version = 4; + * * @return The gkeVersion. */ public java.lang.String getGkeVersion() { @@ -1107,8 +1248,7 @@ public java.lang.String getGkeVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (platformVersionCase_ == 4) { platformVersion_ = s; @@ -1117,23 +1257,24 @@ public java.lang.String getGkeVersion() { } } /** + * + * *
      * GKE version
      * 
* * string gke_version = 4; + * * @return The bytes for gkeVersion. */ - public com.google.protobuf.ByteString - getGkeVersionBytes() { + public com.google.protobuf.ByteString getGkeVersionBytes() { java.lang.Object ref = ""; if (platformVersionCase_ == 4) { ref = platformVersion_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (platformVersionCase_ == 4) { platformVersion_ = b; } @@ -1145,22 +1286,28 @@ public java.lang.String getGkeVersion() { public static final int ANTHOS_VERSION_FIELD_NUMBER = 5; /** + * + * *
      * Anthos version
      * 
* * string anthos_version = 5; + * * @return Whether the anthosVersion field is set. */ public boolean hasAnthosVersion() { return platformVersionCase_ == 5; } /** + * + * *
      * Anthos version
      * 
* * string anthos_version = 5; + * * @return The anthosVersion. */ public java.lang.String getAnthosVersion() { @@ -1171,8 +1318,7 @@ public java.lang.String getAnthosVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (platformVersionCase_ == 5) { platformVersion_ = s; @@ -1181,23 +1327,24 @@ public java.lang.String getAnthosVersion() { } } /** + * + * *
      * Anthos version
      * 
* * string anthos_version = 5; + * * @return The bytes for anthosVersion. */ - public com.google.protobuf.ByteString - getAnthosVersionBytes() { + public com.google.protobuf.ByteString getAnthosVersionBytes() { java.lang.Object ref = ""; if (platformVersionCase_ == 5) { ref = platformVersion_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (platformVersionCase_ == 5) { platformVersion_ = b; } @@ -1208,6 +1355,7 @@ public java.lang.String getAnthosVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1219,16 +1367,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cluster_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(k8SVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, k8SVersion_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetBackupCrdVersions(), BackupCrdVersionsDefaultEntryHolder.defaultEntry, @@ -1254,15 +1400,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(k8SVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, k8SVersion_); } - for (java.util.Map.Entry entry - : internalGetBackupCrdVersions().getMap().entrySet()) { - com.google.protobuf.MapEntry - backupCrdVersions__ = BackupCrdVersionsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, backupCrdVersions__); + for (java.util.Map.Entry entry : + internalGetBackupCrdVersions().getMap().entrySet()) { + com.google.protobuf.MapEntry backupCrdVersions__ = + BackupCrdVersionsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, backupCrdVersions__); } if (platformVersionCase_ == 4) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, platformVersion_); @@ -1278,28 +1424,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.Backup.ClusterMetadata)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata other = (com.google.cloud.gkebackup.v1.Backup.ClusterMetadata) obj; + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata other = + (com.google.cloud.gkebackup.v1.Backup.ClusterMetadata) obj; - if (!getCluster() - .equals(other.getCluster())) return false; - if (!getK8SVersion() - .equals(other.getK8SVersion())) return false; - if (!internalGetBackupCrdVersions().equals( - other.internalGetBackupCrdVersions())) return false; + if (!getCluster().equals(other.getCluster())) return false; + if (!getK8SVersion().equals(other.getK8SVersion())) return false; + if (!internalGetBackupCrdVersions().equals(other.internalGetBackupCrdVersions())) + return false; if (!getPlatformVersionCase().equals(other.getPlatformVersionCase())) return false; switch (platformVersionCase_) { case 4: - if (!getGkeVersion() - .equals(other.getGkeVersion())) return false; + if (!getGkeVersion().equals(other.getGkeVersion())) return false; break; case 5: - if (!getAnthosVersion() - .equals(other.getAnthosVersion())) return false; + if (!getAnthosVersion().equals(other.getAnthosVersion())) return false; break; case 0: default: @@ -1341,87 +1484,94 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.Backup.ClusterMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1431,49 +1581,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information about the GKE cluster from which this Backup was created.
      * 
* * Protobuf type {@code google.cloud.gkebackup.v1.Backup.ClusterMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.Backup.ClusterMetadata) com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.BackupProto + .internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetBackupCrdVersions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 3: return internalGetMutableBackupCrdVersions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_fieldAccessorTable + return com.google.cloud.gkebackup.v1.BackupProto + .internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.class, com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder.class); + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.class, + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.newBuilder() @@ -1481,16 +1634,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1505,9 +1657,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.BackupProto + .internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor; } @java.lang.Override @@ -1526,7 +1678,8 @@ public com.google.cloud.gkebackup.v1.Backup.ClusterMetadata build() { @java.lang.Override public com.google.cloud.gkebackup.v1.Backup.ClusterMetadata buildPartial() { - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata result = new com.google.cloud.gkebackup.v1.Backup.ClusterMetadata(this); + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata result = + new com.google.cloud.gkebackup.v1.Backup.ClusterMetadata(this); int from_bitField0_ = bitField0_; result.cluster_ = cluster_; result.k8SVersion_ = k8SVersion_; @@ -1547,38 +1700,41 @@ public com.google.cloud.gkebackup.v1.Backup.ClusterMetadata 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) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.gkebackup.v1.Backup.ClusterMetadata) { - return mergeFrom((com.google.cloud.gkebackup.v1.Backup.ClusterMetadata)other); + return mergeFrom((com.google.cloud.gkebackup.v1.Backup.ClusterMetadata) other); } else { super.mergeFrom(other); return this; @@ -1586,7 +1742,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.Backup.ClusterMetadata other) { - if (other == com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.getDefaultInstance()) + return this; if (!other.getCluster().isEmpty()) { cluster_ = other.cluster_; onChanged(); @@ -1595,24 +1752,26 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.Backup.ClusterMetadata ot k8SVersion_ = other.k8SVersion_; onChanged(); } - internalGetMutableBackupCrdVersions().mergeFrom( - other.internalGetBackupCrdVersions()); + internalGetMutableBackupCrdVersions().mergeFrom(other.internalGetBackupCrdVersions()); switch (other.getPlatformVersionCase()) { - case GKE_VERSION: { - platformVersionCase_ = 4; - platformVersion_ = other.platformVersion_; - onChanged(); - break; - } - case ANTHOS_VERSION: { - platformVersionCase_ = 5; - platformVersion_ = other.platformVersion_; - onChanged(); - break; - } - case PLATFORMVERSION_NOT_SET: { - break; - } + case GKE_VERSION: + { + platformVersionCase_ = 4; + platformVersion_ = other.platformVersion_; + onChanged(); + break; + } + case ANTHOS_VERSION: + { + platformVersionCase_ = 5; + platformVersion_ = other.platformVersion_; + onChanged(); + break; + } + case PLATFORMVERSION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1633,7 +1792,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.Backup.ClusterMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.Backup.ClusterMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1642,12 +1802,12 @@ public Builder mergeFrom( } return this; } + private int platformVersionCase_ = 0; private java.lang.Object platformVersion_; - public PlatformVersionCase - getPlatformVersionCase() { - return PlatformVersionCase.forNumber( - platformVersionCase_); + + public PlatformVersionCase getPlatformVersionCase() { + return PlatformVersionCase.forNumber(platformVersionCase_); } public Builder clearPlatformVersion() { @@ -1661,6 +1821,8 @@ public Builder clearPlatformVersion() { private java.lang.Object cluster_ = ""; /** + * + * *
        * The source cluster from which this Backup was created.
        * Valid formats:
@@ -1671,13 +1833,13 @@ public Builder clearPlatformVersion() {
        * 
* * string cluster = 1; + * * @return The cluster. */ public java.lang.String getCluster() { java.lang.Object ref = cluster_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; @@ -1686,6 +1848,8 @@ public java.lang.String getCluster() { } } /** + * + * *
        * The source cluster from which this Backup was created.
        * Valid formats:
@@ -1696,15 +1860,14 @@ public java.lang.String getCluster() {
        * 
* * string cluster = 1; + * * @return The bytes for cluster. */ - public com.google.protobuf.ByteString - getClusterBytes() { + public com.google.protobuf.ByteString getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cluster_ = b; return b; } else { @@ -1712,6 +1875,8 @@ public java.lang.String getCluster() { } } /** + * + * *
        * The source cluster from which this Backup was created.
        * Valid formats:
@@ -1722,20 +1887,22 @@ public java.lang.String getCluster() {
        * 
* * string cluster = 1; + * * @param value The cluster to set. * @return This builder for chaining. */ - public Builder setCluster( - java.lang.String value) { + public Builder setCluster(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cluster_ = value; onChanged(); return this; } /** + * + * *
        * The source cluster from which this Backup was created.
        * Valid formats:
@@ -1746,15 +1913,18 @@ public Builder setCluster(
        * 
* * string cluster = 1; + * * @return This builder for chaining. */ public Builder clearCluster() { - + cluster_ = getDefaultInstance().getCluster(); onChanged(); return this; } /** + * + * *
        * The source cluster from which this Backup was created.
        * Valid formats:
@@ -1765,16 +1935,16 @@ public Builder clearCluster() {
        * 
* * string cluster = 1; + * * @param value The bytes for cluster to set. * @return This builder for chaining. */ - public Builder setClusterBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cluster_ = value; onChanged(); return this; @@ -1782,18 +1952,20 @@ public Builder setClusterBytes( private java.lang.Object k8SVersion_ = ""; /** + * + * *
        * The Kubernetes server version of the source cluster.
        * 
* * string k8s_version = 2; + * * @return The k8sVersion. */ public java.lang.String getK8SVersion() { java.lang.Object ref = k8SVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); k8SVersion_ = s; return s; @@ -1802,20 +1974,21 @@ public java.lang.String getK8SVersion() { } } /** + * + * *
        * The Kubernetes server version of the source cluster.
        * 
* * string k8s_version = 2; + * * @return The bytes for k8sVersion. */ - public com.google.protobuf.ByteString - getK8SVersionBytes() { + public com.google.protobuf.ByteString getK8SVersionBytes() { java.lang.Object ref = k8SVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); k8SVersion_ = b; return b; } else { @@ -1823,75 +1996,85 @@ public java.lang.String getK8SVersion() { } } /** + * + * *
        * The Kubernetes server version of the source cluster.
        * 
* * string k8s_version = 2; + * * @param value The k8sVersion to set. * @return This builder for chaining. */ - public Builder setK8SVersion( - java.lang.String value) { + public Builder setK8SVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + k8SVersion_ = value; onChanged(); return this; } /** + * + * *
        * The Kubernetes server version of the source cluster.
        * 
* * string k8s_version = 2; + * * @return This builder for chaining. */ public Builder clearK8SVersion() { - + k8SVersion_ = getDefaultInstance().getK8SVersion(); onChanged(); return this; } /** + * + * *
        * The Kubernetes server version of the source cluster.
        * 
* * string k8s_version = 2; + * * @param value The bytes for k8sVersion to set. * @return This builder for chaining. */ - public Builder setK8SVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setK8SVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + k8SVersion_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> backupCrdVersions_; + private com.google.protobuf.MapField backupCrdVersions_; + private com.google.protobuf.MapField - internalGetBackupCrdVersions() { + internalGetBackupCrdVersions() { if (backupCrdVersions_ == null) { return com.google.protobuf.MapField.emptyMapField( BackupCrdVersionsDefaultEntryHolder.defaultEntry); } return backupCrdVersions_; } + private com.google.protobuf.MapField - internalGetMutableBackupCrdVersions() { - onChanged();; + internalGetMutableBackupCrdVersions() { + onChanged(); + ; if (backupCrdVersions_ == null) { - backupCrdVersions_ = com.google.protobuf.MapField.newMapField( - BackupCrdVersionsDefaultEntryHolder.defaultEntry); + backupCrdVersions_ = + com.google.protobuf.MapField.newMapField( + BackupCrdVersionsDefaultEntryHolder.defaultEntry); } if (!backupCrdVersions_.isMutable()) { backupCrdVersions_ = backupCrdVersions_.copy(); @@ -1903,28 +2086,30 @@ public int getBackupCrdVersionsCount() { return internalGetBackupCrdVersions().getMap().size(); } /** + * + * *
        * A list of the Backup for GKE CRD versions found in the cluster.
        * 
* * map<string, string> backup_crd_versions = 3; */ - @java.lang.Override - public boolean containsBackupCrdVersions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsBackupCrdVersions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetBackupCrdVersions().getMap().containsKey(key); } - /** - * Use {@link #getBackupCrdVersionsMap()} instead. - */ + /** Use {@link #getBackupCrdVersionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getBackupCrdVersions() { return getBackupCrdVersionsMap(); } /** + * + * *
        * A list of the Backup for GKE CRD versions found in the cluster.
        * 
@@ -1932,11 +2117,12 @@ public java.util.Map getBackupCrdVersions() * map<string, string> backup_crd_versions = 3; */ @java.lang.Override - public java.util.Map getBackupCrdVersionsMap() { return internalGetBackupCrdVersions().getMap(); } /** + * + * *
        * A list of the Backup for GKE CRD versions found in the cluster.
        * 
@@ -1944,16 +2130,18 @@ public java.util.Map getBackupCrdVersionsMap * map<string, string> backup_crd_versions = 3; */ @java.lang.Override - public java.lang.String getBackupCrdVersionsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetBackupCrdVersions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
        * A list of the Backup for GKE CRD versions found in the cluster.
        * 
@@ -1961,10 +2149,10 @@ public java.lang.String getBackupCrdVersionsOrDefault( * map<string, string> backup_crd_versions = 3; */ @java.lang.Override - - public java.lang.String getBackupCrdVersionsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getBackupCrdVersionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetBackupCrdVersions().getMap(); if (!map.containsKey(key)) { @@ -1974,73 +2162,74 @@ public java.lang.String getBackupCrdVersionsOrThrow( } public Builder clearBackupCrdVersions() { - internalGetMutableBackupCrdVersions().getMutableMap() - .clear(); + internalGetMutableBackupCrdVersions().getMutableMap().clear(); return this; } /** + * + * *
        * A list of the Backup for GKE CRD versions found in the cluster.
        * 
* * map<string, string> backup_crd_versions = 3; */ - - public Builder removeBackupCrdVersions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableBackupCrdVersions().getMutableMap() - .remove(key); + public Builder removeBackupCrdVersions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableBackupCrdVersions().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableBackupCrdVersions() { + public java.util.Map getMutableBackupCrdVersions() { return internalGetMutableBackupCrdVersions().getMutableMap(); } /** + * + * *
        * A list of the Backup for GKE CRD versions found in the cluster.
        * 
* * map<string, string> backup_crd_versions = 3; */ - public Builder putBackupCrdVersions( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putBackupCrdVersions(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableBackupCrdVersions().getMutableMap() - .put(key, value); + internalGetMutableBackupCrdVersions().getMutableMap().put(key, value); return this; } /** + * + * *
        * A list of the Backup for GKE CRD versions found in the cluster.
        * 
* * map<string, string> backup_crd_versions = 3; */ - public Builder putAllBackupCrdVersions( java.util.Map values) { - internalGetMutableBackupCrdVersions().getMutableMap() - .putAll(values); + internalGetMutableBackupCrdVersions().getMutableMap().putAll(values); return this; } /** + * + * *
        * GKE version
        * 
* * string gke_version = 4; + * * @return Whether the gkeVersion field is set. */ @java.lang.Override @@ -2048,11 +2237,14 @@ public boolean hasGkeVersion() { return platformVersionCase_ == 4; } /** + * + * *
        * GKE version
        * 
* * string gke_version = 4; + * * @return The gkeVersion. */ @java.lang.Override @@ -2062,8 +2254,7 @@ public java.lang.String getGkeVersion() { ref = platformVersion_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (platformVersionCase_ == 4) { platformVersion_ = s; @@ -2074,24 +2265,25 @@ public java.lang.String getGkeVersion() { } } /** + * + * *
        * GKE version
        * 
* * string gke_version = 4; + * * @return The bytes for gkeVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getGkeVersionBytes() { + public com.google.protobuf.ByteString getGkeVersionBytes() { java.lang.Object ref = ""; if (platformVersionCase_ == 4) { ref = platformVersion_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (platformVersionCase_ == 4) { platformVersion_ = b; } @@ -2101,30 +2293,35 @@ public java.lang.String getGkeVersion() { } } /** + * + * *
        * GKE version
        * 
* * string gke_version = 4; + * * @param value The gkeVersion to set. * @return This builder for chaining. */ - public Builder setGkeVersion( - java.lang.String value) { + public Builder setGkeVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - platformVersionCase_ = 4; + throw new NullPointerException(); + } + platformVersionCase_ = 4; platformVersion_ = value; onChanged(); return this; } /** + * + * *
        * GKE version
        * 
* * string gke_version = 4; + * * @return This builder for chaining. */ public Builder clearGkeVersion() { @@ -2136,20 +2333,22 @@ public Builder clearGkeVersion() { return this; } /** + * + * *
        * GKE version
        * 
* * string gke_version = 4; + * * @param value The bytes for gkeVersion to set. * @return This builder for chaining. */ - public Builder setGkeVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setGkeVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); platformVersionCase_ = 4; platformVersion_ = value; onChanged(); @@ -2157,11 +2356,14 @@ public Builder setGkeVersionBytes( } /** + * + * *
        * Anthos version
        * 
* * string anthos_version = 5; + * * @return Whether the anthosVersion field is set. */ @java.lang.Override @@ -2169,11 +2371,14 @@ public boolean hasAnthosVersion() { return platformVersionCase_ == 5; } /** + * + * *
        * Anthos version
        * 
* * string anthos_version = 5; + * * @return The anthosVersion. */ @java.lang.Override @@ -2183,8 +2388,7 @@ public java.lang.String getAnthosVersion() { ref = platformVersion_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (platformVersionCase_ == 5) { platformVersion_ = s; @@ -2195,24 +2399,25 @@ public java.lang.String getAnthosVersion() { } } /** + * + * *
        * Anthos version
        * 
* * string anthos_version = 5; + * * @return The bytes for anthosVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getAnthosVersionBytes() { + public com.google.protobuf.ByteString getAnthosVersionBytes() { java.lang.Object ref = ""; if (platformVersionCase_ == 5) { ref = platformVersion_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (platformVersionCase_ == 5) { platformVersion_ = b; } @@ -2222,30 +2427,35 @@ public java.lang.String getAnthosVersion() { } } /** + * + * *
        * Anthos version
        * 
* * string anthos_version = 5; + * * @param value The anthosVersion to set. * @return This builder for chaining. */ - public Builder setAnthosVersion( - java.lang.String value) { + public Builder setAnthosVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - platformVersionCase_ = 5; + throw new NullPointerException(); + } + platformVersionCase_ = 5; platformVersion_ = value; onChanged(); return this; } /** + * + * *
        * Anthos version
        * 
* * string anthos_version = 5; + * * @return This builder for chaining. */ public Builder clearAnthosVersion() { @@ -2257,25 +2467,28 @@ public Builder clearAnthosVersion() { return this; } /** + * + * *
        * Anthos version
        * 
* * string anthos_version = 5; + * * @param value The bytes for anthosVersion to set. * @return This builder for chaining. */ - public Builder setAnthosVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setAnthosVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); platformVersionCase_ = 5; platformVersion_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2288,12 +2501,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.Backup.ClusterMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.Backup.ClusterMetadata) private static final com.google.cloud.gkebackup.v1.Backup.ClusterMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.Backup.ClusterMetadata(); } @@ -2302,16 +2515,16 @@ public static com.google.cloud.gkebackup.v1.Backup.ClusterMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClusterMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2326,19 +2539,21 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.Backup.ClusterMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int backupScopeCase_ = 0; private java.lang.Object backupScope_; + public enum BackupScopeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ALL_NAMESPACES(12), SELECTED_NAMESPACES(13), SELECTED_APPLICATIONS(14), BACKUPSCOPE_NOT_SET(0); private final int value; + private BackupScopeCase(int value) { this.value = value; } @@ -2354,33 +2569,40 @@ public static BackupScopeCase valueOf(int value) { public static BackupScopeCase forNumber(int value) { switch (value) { - case 12: return ALL_NAMESPACES; - case 13: return SELECTED_NAMESPACES; - case 14: return SELECTED_APPLICATIONS; - case 0: return BACKUPSCOPE_NOT_SET; - default: return null; + case 12: + return ALL_NAMESPACES; + case 13: + return SELECTED_NAMESPACES; + case 14: + return SELECTED_APPLICATIONS; + case 0: + return BACKUPSCOPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public BackupScopeCase - getBackupScopeCase() { - return BackupScopeCase.forNumber( - backupScopeCase_); + public BackupScopeCase getBackupScopeCase() { + return BackupScopeCase.forNumber(backupScopeCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The fully qualified name of the Backup.
    * projects/*/locations/*/backupPlans/*/backups/*
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -2389,30 +2611,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 fully qualified name of the Backup.
    * projects/*/locations/*/backupPlans/*/backups/*
    * 
* * 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 { @@ -2423,12 +2645,15 @@ public java.lang.String getName() { public static final int UID_FIELD_NUMBER = 2; private volatile java.lang.Object uid_; /** + * + * *
    * Output only. Server generated global unique identifier of
    * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -2437,30 +2662,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. Server generated global unique identifier of
    * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -2471,11 +2696,15 @@ public java.lang.String getUid() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The timestamp when this Backup resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -2483,11 +2712,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The timestamp when this Backup resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -2495,11 +2728,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The timestamp when this Backup resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -2509,11 +2745,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The timestamp when this Backup resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -2521,11 +2761,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The timestamp when this Backup resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -2533,11 +2777,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The timestamp when this Backup resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -2547,6 +2794,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int MANUAL_FIELD_NUMBER = 5; private boolean manual_; /** + * + * *
    * Output only. This flag indicates whether this Backup resource was created manually
    * by a user or via a schedule in the BackupPlan. A value of True means that
@@ -2554,6 +2803,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * bool manual = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The manual. */ @java.lang.Override @@ -2562,24 +2812,23 @@ public boolean getManual() { } public static final int LABELS_FIELD_NUMBER = 6; + 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.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_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.cloud.gkebackup.v1.BackupProto + .internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - 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_; } @@ -2588,28 +2837,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 6; */ - @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(); } /** + * + * *
    * A set of custom labels supplied by user.
    * 
@@ -2617,11 +2868,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 6; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * A set of custom labels supplied by user.
    * 
@@ -2629,16 +2881,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, 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; } /** + * + * *
    * A set of custom labels supplied by user.
    * 
@@ -2646,12 +2898,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 6; */ @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(); } @@ -2661,6 +2912,8 @@ public java.lang.String getLabelsOrThrow( public static final int DELETE_LOCK_DAYS_FIELD_NUMBER = 7; private int deleteLockDays_; /** + * + * *
    * Minimum age for this Backup (in days). If this field is set to a non-zero
    * value, the Backup will be "locked" against deletion (either manual or
@@ -2674,6 +2927,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * int32 delete_lock_days = 7; + * * @return The deleteLockDays. */ @java.lang.Override @@ -2684,12 +2938,17 @@ public int getDeleteLockDays() { public static final int DELETE_LOCK_EXPIRE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteLockExpireTime_; /** + * + * *
    * Output only. The time at which an existing delete lock will expire for this backup
    * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
    * 
* - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteLockExpireTime field is set. */ @java.lang.Override @@ -2697,25 +2956,36 @@ public boolean hasDeleteLockExpireTime() { return deleteLockExpireTime_ != null; } /** + * + * *
    * Output only. The time at which an existing delete lock will expire for this backup
    * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
    * 
* - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteLockExpireTime. */ @java.lang.Override public com.google.protobuf.Timestamp getDeleteLockExpireTime() { - return deleteLockExpireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteLockExpireTime_; + return deleteLockExpireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteLockExpireTime_; } /** + * + * *
    * Output only. The time at which an existing delete lock will expire for this backup
    * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
    * 
* - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteLockExpireTimeOrBuilder() { @@ -2725,6 +2995,8 @@ public com.google.protobuf.TimestampOrBuilder getDeleteLockExpireTimeOrBuilder() public static final int RETAIN_DAYS_FIELD_NUMBER = 9; private int retainDays_; /** + * + * *
    * The age (in days) after which this Backup will be automatically deleted.
    * Must be an integer value >= 0:
@@ -2736,6 +3008,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteLockExpireTimeOrBuilder()
    * 
* * int32 retain_days = 9; + * * @return The retainDays. */ @java.lang.Override @@ -2746,12 +3019,17 @@ public int getRetainDays() { public static final int RETAIN_EXPIRE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp retainExpireTime_; /** + * + * *
    * Output only. The time at which this Backup will be automatically deleted (calculated
    * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
    * 
* - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the retainExpireTime field is set. */ @java.lang.Override @@ -2759,25 +3037,36 @@ public boolean hasRetainExpireTime() { return retainExpireTime_ != null; } /** + * + * *
    * Output only. The time at which this Backup will be automatically deleted (calculated
    * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
    * 
* - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The retainExpireTime. */ @java.lang.Override public com.google.protobuf.Timestamp getRetainExpireTime() { - return retainExpireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : retainExpireTime_; + return retainExpireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : retainExpireTime_; } /** + * + * *
    * Output only. The time at which this Backup will be automatically deleted (calculated
    * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
    * 
* - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getRetainExpireTimeOrBuilder() { @@ -2787,13 +3076,18 @@ public com.google.protobuf.TimestampOrBuilder getRetainExpireTimeOrBuilder() { public static final int ENCRYPTION_KEY_FIELD_NUMBER = 11; private com.google.cloud.gkebackup.v1.EncryptionKey encryptionKey_; /** + * + * *
    * Output only. The customer managed encryption key that was used to encrypt the Backup's
    * artifacts.  Inherited from the parent BackupPlan's
    * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
    * 
* - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the encryptionKey field is set. */ @java.lang.Override @@ -2801,27 +3095,38 @@ public boolean hasEncryptionKey() { return encryptionKey_ != null; } /** + * + * *
    * Output only. The customer managed encryption key that was used to encrypt the Backup's
    * artifacts.  Inherited from the parent BackupPlan's
    * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
    * 
* - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The encryptionKey. */ @java.lang.Override public com.google.cloud.gkebackup.v1.EncryptionKey getEncryptionKey() { - return encryptionKey_ == null ? com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() : encryptionKey_; + return encryptionKey_ == null + ? com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() + : encryptionKey_; } /** + * + * *
    * Output only. The customer managed encryption key that was used to encrypt the Backup's
    * artifacts.  Inherited from the parent BackupPlan's
    * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
    * 
* - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { @@ -2830,11 +3135,14 @@ public com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBu public static final int ALL_NAMESPACES_FIELD_NUMBER = 12; /** + * + * *
    * Output only. If True, all namespaces were included in the Backup.
    * 
* * bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the allNamespaces field is set. */ @java.lang.Override @@ -2842,11 +3150,14 @@ public boolean hasAllNamespaces() { return backupScopeCase_ == 12; } /** + * + * *
    * Output only. If True, all namespaces were included in the Backup.
    * 
* * bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The allNamespaces. */ @java.lang.Override @@ -2859,11 +3170,16 @@ public boolean getAllNamespaces() { public static final int SELECTED_NAMESPACES_FIELD_NUMBER = 13; /** + * + * *
    * Output only. If set, the list of namespaces that were included in the Backup.
    * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the selectedNamespaces field is set. */ @java.lang.Override @@ -2871,43 +3187,57 @@ public boolean hasSelectedNamespaces() { return backupScopeCase_ == 13; } /** + * + * *
    * Output only. If set, the list of namespaces that were included in the Backup.
    * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The selectedNamespaces. */ @java.lang.Override public com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces() { if (backupScopeCase_ == 13) { - return (com.google.cloud.gkebackup.v1.Namespaces) backupScope_; + return (com.google.cloud.gkebackup.v1.Namespaces) backupScope_; } return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); } /** + * + * *
    * Output only. If set, the list of namespaces that were included in the Backup.
    * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOrBuilder() { if (backupScopeCase_ == 13) { - return (com.google.cloud.gkebackup.v1.Namespaces) backupScope_; + return (com.google.cloud.gkebackup.v1.Namespaces) backupScope_; } return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); } public static final int SELECTED_APPLICATIONS_FIELD_NUMBER = 14; /** + * + * *
    * Output only. If set, the list of ProtectedApplications whose resources were included
    * in the Backup.
    * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the selectedApplications field is set. */ @java.lang.Override @@ -2915,33 +3245,42 @@ public boolean hasSelectedApplications() { return backupScopeCase_ == 14; } /** + * + * *
    * Output only. If set, the list of ProtectedApplications whose resources were included
    * in the Backup.
    * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The selectedApplications. */ @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications() { if (backupScopeCase_ == 14) { - return (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_; + return (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_; } return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); } /** + * + * *
    * Output only. If set, the list of ProtectedApplications whose resources were included
    * in the Backup.
    * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder() { if (backupScopeCase_ == 14) { - return (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_; + return (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_; } return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); } @@ -2949,6 +3288,8 @@ public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplica public static final int CONTAINS_VOLUME_DATA_FIELD_NUMBER = 15; private boolean containsVolumeData_; /** + * + * *
    * Output only. Whether or not the Backup contains volume data.  Controlled by the parent
    * BackupPlan's
@@ -2956,6 +3297,7 @@ public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplica
    * 
* * bool contains_volume_data = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The containsVolumeData. */ @java.lang.Override @@ -2966,6 +3308,8 @@ public boolean getContainsVolumeData() { public static final int CONTAINS_SECRETS_FIELD_NUMBER = 16; private boolean containsSecrets_; /** + * + * *
    * Output only. Whether or not the Backup contains Kubernetes Secrets.  Controlled by the
    * parent BackupPlan's
@@ -2973,6 +3317,7 @@ public boolean getContainsVolumeData() {
    * 
* * bool contains_secrets = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The containsSecrets. */ @java.lang.Override @@ -2983,11 +3328,16 @@ public boolean getContainsSecrets() { public static final int CLUSTER_METADATA_FIELD_NUMBER = 17; private com.google.cloud.gkebackup.v1.Backup.ClusterMetadata clusterMetadata_; /** + * + * *
    * Output only. Information about the GKE cluster from which this Backup was created.
    * 
* - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the clusterMetadata field is set. */ @java.lang.Override @@ -2995,64 +3345,92 @@ public boolean hasClusterMetadata() { return clusterMetadata_ != null; } /** + * + * *
    * Output only. Information about the GKE cluster from which this Backup was created.
    * 
* - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The clusterMetadata. */ @java.lang.Override public com.google.cloud.gkebackup.v1.Backup.ClusterMetadata getClusterMetadata() { - return clusterMetadata_ == null ? com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.getDefaultInstance() : clusterMetadata_; + return clusterMetadata_ == null + ? com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.getDefaultInstance() + : clusterMetadata_; } /** + * + * *
    * Output only. Information about the GKE cluster from which this Backup was created.
    * 
* - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder getClusterMetadataOrBuilder() { + public com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder + getClusterMetadataOrBuilder() { return getClusterMetadata(); } public static final int STATE_FIELD_NUMBER = 18; private int state_; /** + * + * *
    * Output only. Current state of the Backup
    * 
* - * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. Current state of the Backup
    * 
* - * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.gkebackup.v1.Backup.State getState() { + @java.lang.Override + public com.google.cloud.gkebackup.v1.Backup.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.Backup.State result = com.google.cloud.gkebackup.v1.Backup.State.valueOf(state_); + com.google.cloud.gkebackup.v1.Backup.State result = + com.google.cloud.gkebackup.v1.Backup.State.valueOf(state_); return result == null ? com.google.cloud.gkebackup.v1.Backup.State.UNRECOGNIZED : result; } public static final int STATE_REASON_FIELD_NUMBER = 19; private volatile java.lang.Object stateReason_; /** + * + * *
    * Output only. Human-readable description of why the backup is in the current `state`.
    * 
* * string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stateReason. */ @java.lang.Override @@ -3061,29 +3439,29 @@ public java.lang.String getStateReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateReason_ = s; return s; } } /** + * + * *
    * Output only. Human-readable description of why the backup is in the current `state`.
    * 
* * string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stateReason. */ @java.lang.Override - public com.google.protobuf.ByteString - getStateReasonBytes() { + public com.google.protobuf.ByteString getStateReasonBytes() { java.lang.Object ref = stateReason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateReason_ = b; return b; } else { @@ -3094,11 +3472,16 @@ public java.lang.String getStateReason() { public static final int COMPLETE_TIME_FIELD_NUMBER = 20; private com.google.protobuf.Timestamp completeTime_; /** + * + * *
    * Output only. Completion time of the Backup
    * 
* - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the completeTime field is set. */ @java.lang.Override @@ -3106,23 +3489,34 @@ public boolean hasCompleteTime() { return completeTime_ != null; } /** + * + * *
    * Output only. Completion time of the Backup
    * 
* - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The completeTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCompleteTime() { - return completeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; } /** + * + * *
    * Output only. Completion time of the Backup
    * 
* - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { @@ -3132,11 +3526,14 @@ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { public static final int RESOURCE_COUNT_FIELD_NUMBER = 21; private int resourceCount_; /** + * + * *
    * Output only. The total number of Kubernetes resources included in the Backup.
    * 
* * int32 resource_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The resourceCount. */ @java.lang.Override @@ -3147,11 +3544,14 @@ public int getResourceCount() { public static final int VOLUME_COUNT_FIELD_NUMBER = 22; private int volumeCount_; /** + * + * *
    * Output only. The total number of volume backups contained in the Backup.
    * 
* * int32 volume_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The volumeCount. */ @java.lang.Override @@ -3162,12 +3562,15 @@ public int getVolumeCount() { public static final int SIZE_BYTES_FIELD_NUMBER = 23; private long sizeBytes_; /** + * + * *
    * Output only. The total size of the Backup in bytes = config backup size + sum(volume
    * backup sizes)
    * 
* * int64 size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The sizeBytes. */ @java.lang.Override @@ -3178,6 +3581,8 @@ public long getSizeBytes() { public static final int ETAG_FIELD_NUMBER = 24; private volatile java.lang.Object etag_; /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a backup from overwriting each other.
@@ -3190,6 +3595,7 @@ public long getSizeBytes() {
    * 
* * string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ @java.lang.Override @@ -3198,14 +3604,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; } } /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a backup from overwriting each other.
@@ -3218,16 +3625,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -3238,11 +3644,14 @@ public java.lang.String getEtag() { public static final int DESCRIPTION_FIELD_NUMBER = 25; private volatile java.lang.Object description_; /** + * + * *
    * User specified descriptive string for this Backup.
    * 
* * string description = 25; + * * @return The description. */ @java.lang.Override @@ -3251,29 +3660,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * User specified descriptive string for this Backup.
    * 
* * string description = 25; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -3284,11 +3693,14 @@ public java.lang.String getDescription() { public static final int POD_COUNT_FIELD_NUMBER = 26; private int podCount_; /** + * + * *
    * Output only. The total number of Kubernetes Pods contained in the Backup.
    * 
* * int32 pod_count = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The podCount. */ @java.lang.Override @@ -3299,11 +3711,14 @@ public int getPodCount() { public static final int CONFIG_BACKUP_SIZE_BYTES_FIELD_NUMBER = 27; private long configBackupSizeBytes_; /** + * + * *
    * Output only. The size of the config backup in bytes.
    * 
* * int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The configBackupSizeBytes. */ @java.lang.Override @@ -3312,6 +3727,7 @@ public long getConfigBackupSizeBytes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3323,8 +3739,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_); } @@ -3340,12 +3755,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (manual_ != false) { output.writeBool(5, manual_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); if (deleteLockDays_ != 0) { output.writeInt32(7, deleteLockDays_); } @@ -3362,8 +3773,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(11, getEncryptionKey()); } if (backupScopeCase_ == 12) { - output.writeBool( - 12, (boolean)((java.lang.Boolean) backupScope_)); + output.writeBool(12, (boolean) ((java.lang.Boolean) backupScope_)); } if (backupScopeCase_ == 13) { output.writeMessage(13, (com.google.cloud.gkebackup.v1.Namespaces) backupScope_); @@ -3426,94 +3836,81 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } if (manual_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, manual_); - } - 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(6, labels__); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, manual_); + } + 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(6, labels__); } if (deleteLockDays_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, deleteLockDays_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, deleteLockDays_); } if (deleteLockExpireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteLockExpireTime()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteLockExpireTime()); } if (retainDays_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, retainDays_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, retainDays_); } if (retainExpireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getRetainExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getRetainExpireTime()); } if (encryptionKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getEncryptionKey()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getEncryptionKey()); } if (backupScopeCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 12, (boolean)((java.lang.Boolean) backupScope_)); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 12, (boolean) ((java.lang.Boolean) backupScope_)); } if (backupScopeCase_ == 13) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, (com.google.cloud.gkebackup.v1.Namespaces) backupScope_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.gkebackup.v1.Namespaces) backupScope_); } if (backupScopeCase_ == 14) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_); } if (containsVolumeData_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, containsVolumeData_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, containsVolumeData_); } if (containsSecrets_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(16, containsSecrets_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, containsSecrets_); } if (clusterMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getClusterMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getClusterMetadata()); } if (state_ != com.google.cloud.gkebackup.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(18, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(18, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, stateReason_); } if (completeTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getCompleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getCompleteTime()); } if (resourceCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(21, resourceCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(21, resourceCount_); } if (volumeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(22, volumeCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(22, volumeCount_); } if (sizeBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(23, sizeBytes_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(23, sizeBytes_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, etag_); @@ -3522,12 +3919,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, description_); } if (podCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(26, podCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(26, podCount_); } if (configBackupSizeBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(27, configBackupSizeBytes_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(27, configBackupSizeBytes_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3537,94 +3932,68 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.Backup)) { return super.equals(obj); } com.google.cloud.gkebackup.v1.Backup other = (com.google.cloud.gkebackup.v1.Backup) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUid() - .equals(other.getUid())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) 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 (getManual() - != other.getManual()) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (getDeleteLockDays() - != other.getDeleteLockDays()) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (getManual() != other.getManual()) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (getDeleteLockDays() != other.getDeleteLockDays()) return false; if (hasDeleteLockExpireTime() != other.hasDeleteLockExpireTime()) return false; if (hasDeleteLockExpireTime()) { - if (!getDeleteLockExpireTime() - .equals(other.getDeleteLockExpireTime())) return false; + if (!getDeleteLockExpireTime().equals(other.getDeleteLockExpireTime())) return false; } - if (getRetainDays() - != other.getRetainDays()) return false; + if (getRetainDays() != other.getRetainDays()) return false; if (hasRetainExpireTime() != other.hasRetainExpireTime()) return false; if (hasRetainExpireTime()) { - if (!getRetainExpireTime() - .equals(other.getRetainExpireTime())) return false; + if (!getRetainExpireTime().equals(other.getRetainExpireTime())) return false; } if (hasEncryptionKey() != other.hasEncryptionKey()) return false; if (hasEncryptionKey()) { - if (!getEncryptionKey() - .equals(other.getEncryptionKey())) return false; + if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; } - if (getContainsVolumeData() - != other.getContainsVolumeData()) return false; - if (getContainsSecrets() - != other.getContainsSecrets()) return false; + if (getContainsVolumeData() != other.getContainsVolumeData()) return false; + if (getContainsSecrets() != other.getContainsSecrets()) return false; if (hasClusterMetadata() != other.hasClusterMetadata()) return false; if (hasClusterMetadata()) { - if (!getClusterMetadata() - .equals(other.getClusterMetadata())) return false; + if (!getClusterMetadata().equals(other.getClusterMetadata())) return false; } if (state_ != other.state_) return false; - if (!getStateReason() - .equals(other.getStateReason())) return false; + if (!getStateReason().equals(other.getStateReason())) return false; if (hasCompleteTime() != other.hasCompleteTime()) return false; if (hasCompleteTime()) { - if (!getCompleteTime() - .equals(other.getCompleteTime())) return false; - } - if (getResourceCount() - != other.getResourceCount()) return false; - if (getVolumeCount() - != other.getVolumeCount()) return false; - if (getSizeBytes() - != other.getSizeBytes()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (getPodCount() - != other.getPodCount()) return false; - if (getConfigBackupSizeBytes() - != other.getConfigBackupSizeBytes()) return false; + if (!getCompleteTime().equals(other.getCompleteTime())) return false; + } + if (getResourceCount() != other.getResourceCount()) return false; + if (getVolumeCount() != other.getVolumeCount()) return false; + if (getSizeBytes() != other.getSizeBytes()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getPodCount() != other.getPodCount()) return false; + if (getConfigBackupSizeBytes() != other.getConfigBackupSizeBytes()) return false; if (!getBackupScopeCase().equals(other.getBackupScopeCase())) return false; switch (backupScopeCase_) { case 12: - if (getAllNamespaces() - != other.getAllNamespaces()) return false; + if (getAllNamespaces() != other.getAllNamespaces()) return false; break; case 13: - if (!getSelectedNamespaces() - .equals(other.getSelectedNamespaces())) return false; + if (!getSelectedNamespaces().equals(other.getSelectedNamespaces())) return false; break; case 14: - if (!getSelectedApplications() - .equals(other.getSelectedApplications())) return false; + if (!getSelectedApplications().equals(other.getSelectedApplications())) return false; break; case 0: default: @@ -3653,8 +4022,7 @@ public int hashCode() { hash = (53 * hash) + getUpdateTime().hashCode(); } hash = (37 * hash) + MANUAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getManual()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getManual()); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); @@ -3676,11 +4044,9 @@ public int hashCode() { hash = (53 * hash) + getEncryptionKey().hashCode(); } hash = (37 * hash) + CONTAINS_VOLUME_DATA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getContainsVolumeData()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContainsVolumeData()); hash = (37 * hash) + CONTAINS_SECRETS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getContainsSecrets()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContainsSecrets()); if (hasClusterMetadata()) { hash = (37 * hash) + CLUSTER_METADATA_FIELD_NUMBER; hash = (53 * hash) + getClusterMetadata().hashCode(); @@ -3698,8 +4064,7 @@ public int hashCode() { hash = (37 * hash) + VOLUME_COUNT_FIELD_NUMBER; hash = (53 * hash) + getVolumeCount(); hash = (37 * hash) + SIZE_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSizeBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeBytes()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; @@ -3707,13 +4072,11 @@ public int hashCode() { hash = (37 * hash) + POD_COUNT_FIELD_NUMBER; hash = (53 * hash) + getPodCount(); hash = (37 * hash) + CONFIG_BACKUP_SIZE_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getConfigBackupSizeBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getConfigBackupSizeBytes()); switch (backupScopeCase_) { case 12: hash = (37 * hash) + ALL_NAMESPACES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllNamespaces()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllNamespaces()); break; case 13: hash = (37 * hash) + SELECTED_NAMESPACES_FIELD_NUMBER; @@ -3731,97 +4094,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.Backup parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.Backup parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.Backup parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.Backup parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.gkebackup.v1.Backup parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.Backup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.Backup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.Backup parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.Backup parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.Backup parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.Backup 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.cloud.gkebackup.v1.Backup parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.Backup parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.Backup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.Backup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 a request to perform a single point-in-time capture of
    * some portion of the state of a GKE cluster, the record of the backup
@@ -3832,43 +4201,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.Backup}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.Backup)
       com.google.cloud.gkebackup.v1.BackupOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkebackup.v1.BackupProto
+          .internal_static_google_cloud_gkebackup_v1_Backup_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 6:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 6:
           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.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.BackupProto
+          .internal_static_google_cloud_gkebackup_v1_Backup_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.Backup.class, com.google.cloud.gkebackup.v1.Backup.Builder.class);
+              com.google.cloud.gkebackup.v1.Backup.class,
+              com.google.cloud.gkebackup.v1.Backup.Builder.class);
     }
 
     // Construct using com.google.cloud.gkebackup.v1.Backup.newBuilder()
@@ -3876,16 +4245,15 @@ 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) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3970,9 +4338,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkebackup.v1.BackupProto.internal_static_google_cloud_gkebackup_v1_Backup_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkebackup.v1.BackupProto
+          .internal_static_google_cloud_gkebackup_v1_Backup_descriptor;
     }
 
     @java.lang.Override
@@ -4072,38 +4440,39 @@ public com.google.cloud.gkebackup.v1.Backup 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.cloud.gkebackup.v1.Backup) {
-        return mergeFrom((com.google.cloud.gkebackup.v1.Backup)other);
+        return mergeFrom((com.google.cloud.gkebackup.v1.Backup) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -4129,8 +4498,7 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.Backup other) {
       if (other.getManual() != false) {
         setManual(other.getManual());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       if (other.getDeleteLockDays() != 0) {
         setDeleteLockDays(other.getDeleteLockDays());
       }
@@ -4189,21 +4557,25 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.Backup other) {
         setConfigBackupSizeBytes(other.getConfigBackupSizeBytes());
       }
       switch (other.getBackupScopeCase()) {
-        case ALL_NAMESPACES: {
-          setAllNamespaces(other.getAllNamespaces());
-          break;
-        }
-        case SELECTED_NAMESPACES: {
-          mergeSelectedNamespaces(other.getSelectedNamespaces());
-          break;
-        }
-        case SELECTED_APPLICATIONS: {
-          mergeSelectedApplications(other.getSelectedApplications());
-          break;
-        }
-        case BACKUPSCOPE_NOT_SET: {
-          break;
-        }
+        case ALL_NAMESPACES:
+          {
+            setAllNamespaces(other.getAllNamespaces());
+            break;
+          }
+        case SELECTED_NAMESPACES:
+          {
+            mergeSelectedNamespaces(other.getSelectedNamespaces());
+            break;
+          }
+        case SELECTED_APPLICATIONS:
+          {
+            mergeSelectedApplications(other.getSelectedApplications());
+            break;
+          }
+        case BACKUPSCOPE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -4233,12 +4605,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int backupScopeCase_ = 0;
     private java.lang.Object backupScope_;
-    public BackupScopeCase
-        getBackupScopeCase() {
-      return BackupScopeCase.forNumber(
-          backupScopeCase_);
+
+    public BackupScopeCase getBackupScopeCase() {
+      return BackupScopeCase.forNumber(backupScopeCase_);
     }
 
     public Builder clearBackupScope() {
@@ -4252,19 +4624,21 @@ public Builder clearBackupScope() {
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The fully qualified name of the Backup.
      * projects/*/locations/*/backupPlans/*/backups/*
      * 
* * 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; @@ -4273,21 +4647,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The fully qualified name of the Backup.
      * projects/*/locations/*/backupPlans/*/backups/*
      * 
* * 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 { @@ -4295,57 +4670,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The fully qualified name of the Backup.
      * projects/*/locations/*/backupPlans/*/backups/*
      * 
* * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The fully qualified name of the Backup.
      * projects/*/locations/*/backupPlans/*/backups/*
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The fully qualified name of the Backup.
      * projects/*/locations/*/backupPlans/*/backups/*
      * 
* * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -4353,19 +4735,21 @@ public Builder setNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -4374,21 +4758,22 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -4396,57 +4781,64 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { + public Builder setUid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { + public Builder setUidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); return this; @@ -4454,39 +4846,58 @@ public Builder setUidBytes( 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 timestamp when this Backup resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The timestamp when this Backup resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The timestamp when this Backup resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -4502,14 +4913,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this Backup resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -4520,17 +4934,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The timestamp when this Backup resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -4542,11 +4960,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this Backup resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -4560,48 +4982,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The timestamp when this Backup resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp when this Backup resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The timestamp when this Backup resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -4609,39 +5047,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 timestamp when this Backup resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The timestamp when this Backup resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this Backup resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -4657,14 +5114,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this Backup resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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(); onChanged(); @@ -4675,17 +5135,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The timestamp when this Backup resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -4697,11 +5161,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this Backup resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -4715,55 +5183,73 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The timestamp when this Backup resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp when this Backup resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this Backup resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp 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> 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 manual_ ; + private boolean manual_; /** + * + * *
      * Output only. This flag indicates whether this Backup resource was created manually
      * by a user or via a schedule in the BackupPlan. A value of True means that
@@ -4771,6 +5257,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * bool manual = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The manual. */ @java.lang.Override @@ -4778,6 +5265,8 @@ public boolean getManual() { return manual_; } /** + * + * *
      * Output only. This flag indicates whether this Backup resource was created manually
      * by a user or via a schedule in the BackupPlan. A value of True means that
@@ -4785,16 +5274,19 @@ public boolean getManual() {
      * 
* * bool manual = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The manual to set. * @return This builder for chaining. */ public Builder setManual(boolean value) { - + manual_ = value; onChanged(); return this; } /** + * + * *
      * Output only. This flag indicates whether this Backup resource was created manually
      * by a user or via a schedule in the BackupPlan. A value of True means that
@@ -4802,31 +5294,31 @@ public Builder setManual(boolean value) {
      * 
* * bool manual = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearManual() { - + manual_ = false; onChanged(); 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -4838,28 +5330,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 6; */ - @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(); } /** + * + * *
      * A set of custom labels supplied by user.
      * 
@@ -4867,11 +5361,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 6; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * A set of custom labels supplied by user.
      * 
@@ -4879,16 +5374,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, 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; } /** + * + * *
      * A set of custom labels supplied by user.
      * 
@@ -4896,12 +5392,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 6; */ @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(); } @@ -4909,69 +5404,68 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 6; */ - - 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() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 6; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 6; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } - private int deleteLockDays_ ; + private int deleteLockDays_; /** + * + * *
      * Minimum age for this Backup (in days). If this field is set to a non-zero
      * value, the Backup will be "locked" against deletion (either manual or
@@ -4985,6 +5479,7 @@ public Builder putAllLabels(
      * 
* * int32 delete_lock_days = 7; + * * @return The deleteLockDays. */ @java.lang.Override @@ -4992,6 +5487,8 @@ public int getDeleteLockDays() { return deleteLockDays_; } /** + * + * *
      * Minimum age for this Backup (in days). If this field is set to a non-zero
      * value, the Backup will be "locked" against deletion (either manual or
@@ -5005,16 +5502,19 @@ public int getDeleteLockDays() {
      * 
* * int32 delete_lock_days = 7; + * * @param value The deleteLockDays to set. * @return This builder for chaining. */ public Builder setDeleteLockDays(int value) { - + deleteLockDays_ = value; onChanged(); return this; } /** + * + * *
      * Minimum age for this Backup (in days). If this field is set to a non-zero
      * value, the Backup will be "locked" against deletion (either manual or
@@ -5028,10 +5528,11 @@ public Builder setDeleteLockDays(int value) {
      * 
* * int32 delete_lock_days = 7; + * * @return This builder for chaining. */ public Builder clearDeleteLockDays() { - + deleteLockDays_ = 0; onChanged(); return this; @@ -5039,42 +5540,61 @@ public Builder clearDeleteLockDays() { private com.google.protobuf.Timestamp deleteLockExpireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteLockExpireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteLockExpireTimeBuilder_; /** + * + * *
      * Output only. The time at which an existing delete lock will expire for this backup
      * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
      * 
* - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteLockExpireTime field is set. */ public boolean hasDeleteLockExpireTime() { return deleteLockExpireTimeBuilder_ != null || deleteLockExpireTime_ != null; } /** + * + * *
      * Output only. The time at which an existing delete lock will expire for this backup
      * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
      * 
* - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteLockExpireTime. */ public com.google.protobuf.Timestamp getDeleteLockExpireTime() { if (deleteLockExpireTimeBuilder_ == null) { - return deleteLockExpireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteLockExpireTime_; + return deleteLockExpireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteLockExpireTime_; } else { return deleteLockExpireTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which an existing delete lock will expire for this backup
      * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
      * 
* - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteLockExpireTime(com.google.protobuf.Timestamp value) { if (deleteLockExpireTimeBuilder_ == null) { @@ -5090,15 +5610,18 @@ public Builder setDeleteLockExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which an existing delete lock will expire for this backup
      * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
      * 
* - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteLockExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteLockExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteLockExpireTimeBuilder_ == null) { deleteLockExpireTime_ = builderForValue.build(); onChanged(); @@ -5109,18 +5632,24 @@ public Builder setDeleteLockExpireTime( return this; } /** + * + * *
      * Output only. The time at which an existing delete lock will expire for this backup
      * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
      * 
* - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteLockExpireTime(com.google.protobuf.Timestamp value) { if (deleteLockExpireTimeBuilder_ == null) { if (deleteLockExpireTime_ != null) { deleteLockExpireTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteLockExpireTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteLockExpireTime_) + .mergeFrom(value) + .buildPartial(); } else { deleteLockExpireTime_ = value; } @@ -5132,12 +5661,16 @@ public Builder mergeDeleteLockExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which an existing delete lock will expire for this backup
      * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
      * 
* - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteLockExpireTime() { if (deleteLockExpireTimeBuilder_ == null) { @@ -5151,58 +5684,76 @@ public Builder clearDeleteLockExpireTime() { return this; } /** + * + * *
      * Output only. The time at which an existing delete lock will expire for this backup
      * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
      * 
* - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteLockExpireTimeBuilder() { - + onChanged(); return getDeleteLockExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which an existing delete lock will expire for this backup
      * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
      * 
* - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteLockExpireTimeOrBuilder() { if (deleteLockExpireTimeBuilder_ != null) { return deleteLockExpireTimeBuilder_.getMessageOrBuilder(); } else { - return deleteLockExpireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteLockExpireTime_; + return deleteLockExpireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteLockExpireTime_; } } /** + * + * *
      * Output only. The time at which an existing delete lock will expire for this backup
      * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
      * 
* - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.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> getDeleteLockExpireTimeFieldBuilder() { if (deleteLockExpireTimeBuilder_ == null) { - deleteLockExpireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteLockExpireTime(), - getParentForChildren(), - isClean()); + deleteLockExpireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteLockExpireTime(), getParentForChildren(), isClean()); deleteLockExpireTime_ = null; } return deleteLockExpireTimeBuilder_; } - private int retainDays_ ; + private int retainDays_; /** + * + * *
      * The age (in days) after which this Backup will be automatically deleted.
      * Must be an integer value >= 0:
@@ -5214,6 +5765,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteLockExpireTimeOrBuilder()
      * 
* * int32 retain_days = 9; + * * @return The retainDays. */ @java.lang.Override @@ -5221,6 +5773,8 @@ public int getRetainDays() { return retainDays_; } /** + * + * *
      * The age (in days) after which this Backup will be automatically deleted.
      * Must be an integer value >= 0:
@@ -5232,16 +5786,19 @@ public int getRetainDays() {
      * 
* * int32 retain_days = 9; + * * @param value The retainDays to set. * @return This builder for chaining. */ public Builder setRetainDays(int value) { - + retainDays_ = value; onChanged(); return this; } /** + * + * *
      * The age (in days) after which this Backup will be automatically deleted.
      * Must be an integer value >= 0:
@@ -5253,10 +5810,11 @@ public Builder setRetainDays(int value) {
      * 
* * int32 retain_days = 9; + * * @return This builder for chaining. */ public Builder clearRetainDays() { - + retainDays_ = 0; onChanged(); return this; @@ -5264,42 +5822,61 @@ public Builder clearRetainDays() { private com.google.protobuf.Timestamp retainExpireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> retainExpireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + retainExpireTimeBuilder_; /** + * + * *
      * Output only. The time at which this Backup will be automatically deleted (calculated
      * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
      * 
* - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the retainExpireTime field is set. */ public boolean hasRetainExpireTime() { return retainExpireTimeBuilder_ != null || retainExpireTime_ != null; } /** + * + * *
      * Output only. The time at which this Backup will be automatically deleted (calculated
      * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
      * 
* - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The retainExpireTime. */ public com.google.protobuf.Timestamp getRetainExpireTime() { if (retainExpireTimeBuilder_ == null) { - return retainExpireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : retainExpireTime_; + return retainExpireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : retainExpireTime_; } else { return retainExpireTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this Backup will be automatically deleted (calculated
      * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
      * 
* - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setRetainExpireTime(com.google.protobuf.Timestamp value) { if (retainExpireTimeBuilder_ == null) { @@ -5315,15 +5892,18 @@ public Builder setRetainExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this Backup will be automatically deleted (calculated
      * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
      * 
* - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setRetainExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setRetainExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (retainExpireTimeBuilder_ == null) { retainExpireTime_ = builderForValue.build(); onChanged(); @@ -5334,18 +5914,24 @@ public Builder setRetainExpireTime( return this; } /** + * + * *
      * Output only. The time at which this Backup will be automatically deleted (calculated
      * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
      * 
* - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeRetainExpireTime(com.google.protobuf.Timestamp value) { if (retainExpireTimeBuilder_ == null) { if (retainExpireTime_ != null) { retainExpireTime_ = - com.google.protobuf.Timestamp.newBuilder(retainExpireTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(retainExpireTime_) + .mergeFrom(value) + .buildPartial(); } else { retainExpireTime_ = value; } @@ -5357,12 +5943,16 @@ public Builder mergeRetainExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this Backup will be automatically deleted (calculated
      * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
      * 
* - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearRetainExpireTime() { if (retainExpireTimeBuilder_ == null) { @@ -5376,51 +5966,67 @@ public Builder clearRetainExpireTime() { return this; } /** + * + * *
      * Output only. The time at which this Backup will be automatically deleted (calculated
      * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
      * 
* - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getRetainExpireTimeBuilder() { - + onChanged(); return getRetainExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this Backup will be automatically deleted (calculated
      * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
      * 
* - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getRetainExpireTimeOrBuilder() { if (retainExpireTimeBuilder_ != null) { return retainExpireTimeBuilder_.getMessageOrBuilder(); } else { - return retainExpireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : retainExpireTime_; + return retainExpireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : retainExpireTime_; } } /** + * + * *
      * Output only. The time at which this Backup will be automatically deleted (calculated
      * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
      * 
* - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.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> getRetainExpireTimeFieldBuilder() { if (retainExpireTimeBuilder_ == null) { - retainExpireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getRetainExpireTime(), - getParentForChildren(), - isClean()); + retainExpireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRetainExpireTime(), getParentForChildren(), isClean()); retainExpireTime_ = null; } return retainExpireTimeBuilder_; @@ -5428,45 +6034,64 @@ public com.google.protobuf.TimestampOrBuilder getRetainExpireTimeOrBuilder() { private com.google.cloud.gkebackup.v1.EncryptionKey encryptionKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.EncryptionKey, com.google.cloud.gkebackup.v1.EncryptionKey.Builder, com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder> encryptionKeyBuilder_; + com.google.cloud.gkebackup.v1.EncryptionKey, + com.google.cloud.gkebackup.v1.EncryptionKey.Builder, + com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder> + encryptionKeyBuilder_; /** + * + * *
      * Output only. The customer managed encryption key that was used to encrypt the Backup's
      * artifacts.  Inherited from the parent BackupPlan's
      * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
      * 
* - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the encryptionKey field is set. */ public boolean hasEncryptionKey() { return encryptionKeyBuilder_ != null || encryptionKey_ != null; } /** + * + * *
      * Output only. The customer managed encryption key that was used to encrypt the Backup's
      * artifacts.  Inherited from the parent BackupPlan's
      * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
      * 
* - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The encryptionKey. */ public com.google.cloud.gkebackup.v1.EncryptionKey getEncryptionKey() { if (encryptionKeyBuilder_ == null) { - return encryptionKey_ == null ? com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() : encryptionKey_; + return encryptionKey_ == null + ? com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() + : encryptionKey_; } else { return encryptionKeyBuilder_.getMessage(); } } /** + * + * *
      * Output only. The customer managed encryption key that was used to encrypt the Backup's
      * artifacts.  Inherited from the parent BackupPlan's
      * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
      * 
* - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEncryptionKey(com.google.cloud.gkebackup.v1.EncryptionKey value) { if (encryptionKeyBuilder_ == null) { @@ -5482,13 +6107,17 @@ public Builder setEncryptionKey(com.google.cloud.gkebackup.v1.EncryptionKey valu return this; } /** + * + * *
      * Output only. The customer managed encryption key that was used to encrypt the Backup's
      * artifacts.  Inherited from the parent BackupPlan's
      * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
      * 
* - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEncryptionKey( com.google.cloud.gkebackup.v1.EncryptionKey.Builder builderForValue) { @@ -5502,19 +6131,25 @@ public Builder setEncryptionKey( return this; } /** + * + * *
      * Output only. The customer managed encryption key that was used to encrypt the Backup's
      * artifacts.  Inherited from the parent BackupPlan's
      * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
      * 
* - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEncryptionKey(com.google.cloud.gkebackup.v1.EncryptionKey value) { if (encryptionKeyBuilder_ == null) { if (encryptionKey_ != null) { encryptionKey_ = - com.google.cloud.gkebackup.v1.EncryptionKey.newBuilder(encryptionKey_).mergeFrom(value).buildPartial(); + com.google.cloud.gkebackup.v1.EncryptionKey.newBuilder(encryptionKey_) + .mergeFrom(value) + .buildPartial(); } else { encryptionKey_ = value; } @@ -5526,13 +6161,17 @@ public Builder mergeEncryptionKey(com.google.cloud.gkebackup.v1.EncryptionKey va return this; } /** + * + * *
      * Output only. The customer managed encryption key that was used to encrypt the Backup's
      * artifacts.  Inherited from the parent BackupPlan's
      * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
      * 
* - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEncryptionKey() { if (encryptionKeyBuilder_ == null) { @@ -5546,76 +6185,98 @@ public Builder clearEncryptionKey() { return this; } /** + * + * *
      * Output only. The customer managed encryption key that was used to encrypt the Backup's
      * artifacts.  Inherited from the parent BackupPlan's
      * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
      * 
* - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkebackup.v1.EncryptionKey.Builder getEncryptionKeyBuilder() { - + onChanged(); return getEncryptionKeyFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The customer managed encryption key that was used to encrypt the Backup's
      * artifacts.  Inherited from the parent BackupPlan's
      * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
      * 
* - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { if (encryptionKeyBuilder_ != null) { return encryptionKeyBuilder_.getMessageOrBuilder(); } else { - return encryptionKey_ == null ? - com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() : encryptionKey_; + return encryptionKey_ == null + ? com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() + : encryptionKey_; } } /** + * + * *
      * Output only. The customer managed encryption key that was used to encrypt the Backup's
      * artifacts.  Inherited from the parent BackupPlan's
      * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
      * 
* - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.EncryptionKey, com.google.cloud.gkebackup.v1.EncryptionKey.Builder, com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder> + com.google.cloud.gkebackup.v1.EncryptionKey, + com.google.cloud.gkebackup.v1.EncryptionKey.Builder, + com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder> getEncryptionKeyFieldBuilder() { if (encryptionKeyBuilder_ == null) { - encryptionKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.EncryptionKey, com.google.cloud.gkebackup.v1.EncryptionKey.Builder, com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder>( - getEncryptionKey(), - getParentForChildren(), - isClean()); + encryptionKeyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.EncryptionKey, + com.google.cloud.gkebackup.v1.EncryptionKey.Builder, + com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder>( + getEncryptionKey(), getParentForChildren(), isClean()); encryptionKey_ = null; } return encryptionKeyBuilder_; } /** + * + * *
      * Output only. If True, all namespaces were included in the Backup.
      * 
* * bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the allNamespaces field is set. */ public boolean hasAllNamespaces() { return backupScopeCase_ == 12; } /** + * + * *
      * Output only. If True, all namespaces were included in the Backup.
      * 
* * bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The allNamespaces. */ public boolean getAllNamespaces() { @@ -5625,11 +6286,14 @@ public boolean getAllNamespaces() { return false; } /** + * + * *
      * Output only. If True, all namespaces were included in the Backup.
      * 
* * bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The allNamespaces to set. * @return This builder for chaining. */ @@ -5640,11 +6304,14 @@ public Builder setAllNamespaces(boolean value) { return this; } /** + * + * *
      * Output only. If True, all namespaces were included in the Backup.
      * 
* * bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearAllNamespaces() { @@ -5657,13 +6324,21 @@ public Builder clearAllNamespaces() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, com.google.cloud.gkebackup.v1.NamespacesOrBuilder> selectedNamespacesBuilder_; + com.google.cloud.gkebackup.v1.Namespaces, + com.google.cloud.gkebackup.v1.Namespaces.Builder, + com.google.cloud.gkebackup.v1.NamespacesOrBuilder> + selectedNamespacesBuilder_; /** + * + * *
      * Output only. If set, the list of namespaces that were included in the Backup.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the selectedNamespaces field is set. */ @java.lang.Override @@ -5671,11 +6346,16 @@ public boolean hasSelectedNamespaces() { return backupScopeCase_ == 13; } /** + * + * *
      * Output only. If set, the list of namespaces that were included in the Backup.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The selectedNamespaces. */ @java.lang.Override @@ -5693,11 +6373,15 @@ public com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces() { } } /** + * + * *
      * Output only. If set, the list of namespaces that were included in the Backup.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces value) { if (selectedNamespacesBuilder_ == null) { @@ -5713,11 +6397,15 @@ public Builder setSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces va return this; } /** + * + * *
      * Output only. If set, the list of namespaces that were included in the Backup.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSelectedNamespaces( com.google.cloud.gkebackup.v1.Namespaces.Builder builderForValue) { @@ -5731,18 +6419,25 @@ public Builder setSelectedNamespaces( return this; } /** + * + * *
      * Output only. If set, the list of namespaces that were included in the Backup.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces value) { if (selectedNamespacesBuilder_ == null) { - if (backupScopeCase_ == 13 && - backupScope_ != com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance()) { - backupScope_ = com.google.cloud.gkebackup.v1.Namespaces.newBuilder((com.google.cloud.gkebackup.v1.Namespaces) backupScope_) - .mergeFrom(value).buildPartial(); + if (backupScopeCase_ == 13 + && backupScope_ != com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance()) { + backupScope_ = + com.google.cloud.gkebackup.v1.Namespaces.newBuilder( + (com.google.cloud.gkebackup.v1.Namespaces) backupScope_) + .mergeFrom(value) + .buildPartial(); } else { backupScope_ = value; } @@ -5758,11 +6453,15 @@ public Builder mergeSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces return this; } /** + * + * *
      * Output only. If set, the list of namespaces that were included in the Backup.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSelectedNamespaces() { if (selectedNamespacesBuilder_ == null) { @@ -5781,21 +6480,29 @@ public Builder clearSelectedNamespaces() { return this; } /** + * + * *
      * Output only. If set, the list of namespaces that were included in the Backup.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkebackup.v1.Namespaces.Builder getSelectedNamespacesBuilder() { return getSelectedNamespacesFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. If set, the list of namespaces that were included in the Backup.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOrBuilder() { @@ -5809,40 +6516,58 @@ public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOr } } /** + * + * *
      * Output only. If set, the list of namespaces that were included in the Backup.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, com.google.cloud.gkebackup.v1.NamespacesOrBuilder> + com.google.cloud.gkebackup.v1.Namespaces, + com.google.cloud.gkebackup.v1.Namespaces.Builder, + com.google.cloud.gkebackup.v1.NamespacesOrBuilder> getSelectedNamespacesFieldBuilder() { if (selectedNamespacesBuilder_ == null) { if (!(backupScopeCase_ == 13)) { backupScope_ = com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); } - selectedNamespacesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, com.google.cloud.gkebackup.v1.NamespacesOrBuilder>( + selectedNamespacesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.Namespaces, + com.google.cloud.gkebackup.v1.Namespaces.Builder, + com.google.cloud.gkebackup.v1.NamespacesOrBuilder>( (com.google.cloud.gkebackup.v1.Namespaces) backupScope_, getParentForChildren(), isClean()); backupScope_ = null; } backupScopeCase_ = 13; - onChanged();; + onChanged(); + ; return selectedNamespacesBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedNames, com.google.cloud.gkebackup.v1.NamespacedNames.Builder, com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> selectedApplicationsBuilder_; + com.google.cloud.gkebackup.v1.NamespacedNames, + com.google.cloud.gkebackup.v1.NamespacedNames.Builder, + com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> + selectedApplicationsBuilder_; /** + * + * *
      * Output only. If set, the list of ProtectedApplications whose resources were included
      * in the Backup.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the selectedApplications field is set. */ @java.lang.Override @@ -5850,12 +6575,17 @@ public boolean hasSelectedApplications() { return backupScopeCase_ == 14; } /** + * + * *
      * Output only. If set, the list of ProtectedApplications whose resources were included
      * in the Backup.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The selectedApplications. */ @java.lang.Override @@ -5873,12 +6603,16 @@ public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications() { } } /** + * + * *
      * Output only. If set, the list of ProtectedApplications whose resources were included
      * in the Backup.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSelectedApplications(com.google.cloud.gkebackup.v1.NamespacedNames value) { if (selectedApplicationsBuilder_ == null) { @@ -5894,12 +6628,16 @@ public Builder setSelectedApplications(com.google.cloud.gkebackup.v1.NamespacedN return this; } /** + * + * *
      * Output only. If set, the list of ProtectedApplications whose resources were included
      * in the Backup.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSelectedApplications( com.google.cloud.gkebackup.v1.NamespacedNames.Builder builderForValue) { @@ -5913,19 +6651,26 @@ public Builder setSelectedApplications( return this; } /** + * + * *
      * Output only. If set, the list of ProtectedApplications whose resources were included
      * in the Backup.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeSelectedApplications(com.google.cloud.gkebackup.v1.NamespacedNames value) { if (selectedApplicationsBuilder_ == null) { - if (backupScopeCase_ == 14 && - backupScope_ != com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance()) { - backupScope_ = com.google.cloud.gkebackup.v1.NamespacedNames.newBuilder((com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_) - .mergeFrom(value).buildPartial(); + if (backupScopeCase_ == 14 + && backupScope_ != com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance()) { + backupScope_ = + com.google.cloud.gkebackup.v1.NamespacedNames.newBuilder( + (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_) + .mergeFrom(value) + .buildPartial(); } else { backupScope_ = value; } @@ -5941,12 +6686,16 @@ public Builder mergeSelectedApplications(com.google.cloud.gkebackup.v1.Namespace return this; } /** + * + * *
      * Output only. If set, the list of ProtectedApplications whose resources were included
      * in the Backup.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSelectedApplications() { if (selectedApplicationsBuilder_ == null) { @@ -5965,26 +6714,35 @@ public Builder clearSelectedApplications() { return this; } /** + * + * *
      * Output only. If set, the list of ProtectedApplications whose resources were included
      * in the Backup.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkebackup.v1.NamespacedNames.Builder getSelectedApplicationsBuilder() { return getSelectedApplicationsFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. If set, the list of ProtectedApplications whose resources were included
      * in the Backup.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder() { + public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder + getSelectedApplicationsOrBuilder() { if ((backupScopeCase_ == 14) && (selectedApplicationsBuilder_ != null)) { return selectedApplicationsBuilder_.getMessageOrBuilder(); } else { @@ -5995,34 +6753,46 @@ public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplica } } /** + * + * *
      * Output only. If set, the list of ProtectedApplications whose resources were included
      * in the Backup.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedNames, com.google.cloud.gkebackup.v1.NamespacedNames.Builder, com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> + com.google.cloud.gkebackup.v1.NamespacedNames, + com.google.cloud.gkebackup.v1.NamespacedNames.Builder, + com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> getSelectedApplicationsFieldBuilder() { if (selectedApplicationsBuilder_ == null) { if (!(backupScopeCase_ == 14)) { backupScope_ = com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); } - selectedApplicationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedNames, com.google.cloud.gkebackup.v1.NamespacedNames.Builder, com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>( + selectedApplicationsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.NamespacedNames, + com.google.cloud.gkebackup.v1.NamespacedNames.Builder, + com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>( (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_, getParentForChildren(), isClean()); backupScope_ = null; } backupScopeCase_ = 14; - onChanged();; + onChanged(); + ; return selectedApplicationsBuilder_; } - private boolean containsVolumeData_ ; + private boolean containsVolumeData_; /** + * + * *
      * Output only. Whether or not the Backup contains volume data.  Controlled by the parent
      * BackupPlan's
@@ -6030,6 +6800,7 @@ public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplica
      * 
* * bool contains_volume_data = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The containsVolumeData. */ @java.lang.Override @@ -6037,6 +6808,8 @@ public boolean getContainsVolumeData() { return containsVolumeData_; } /** + * + * *
      * Output only. Whether or not the Backup contains volume data.  Controlled by the parent
      * BackupPlan's
@@ -6044,16 +6817,19 @@ public boolean getContainsVolumeData() {
      * 
* * bool contains_volume_data = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The containsVolumeData to set. * @return This builder for chaining. */ public Builder setContainsVolumeData(boolean value) { - + containsVolumeData_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Whether or not the Backup contains volume data.  Controlled by the parent
      * BackupPlan's
@@ -6061,17 +6837,20 @@ public Builder setContainsVolumeData(boolean value) {
      * 
* * bool contains_volume_data = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearContainsVolumeData() { - + containsVolumeData_ = false; onChanged(); return this; } - private boolean containsSecrets_ ; + private boolean containsSecrets_; /** + * + * *
      * Output only. Whether or not the Backup contains Kubernetes Secrets.  Controlled by the
      * parent BackupPlan's
@@ -6079,6 +6858,7 @@ public Builder clearContainsVolumeData() {
      * 
* * bool contains_secrets = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The containsSecrets. */ @java.lang.Override @@ -6086,6 +6866,8 @@ public boolean getContainsSecrets() { return containsSecrets_; } /** + * + * *
      * Output only. Whether or not the Backup contains Kubernetes Secrets.  Controlled by the
      * parent BackupPlan's
@@ -6093,16 +6875,19 @@ public boolean getContainsSecrets() {
      * 
* * bool contains_secrets = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The containsSecrets to set. * @return This builder for chaining. */ public Builder setContainsSecrets(boolean value) { - + containsSecrets_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Whether or not the Backup contains Kubernetes Secrets.  Controlled by the
      * parent BackupPlan's
@@ -6110,10 +6895,11 @@ public Builder setContainsSecrets(boolean value) {
      * 
* * bool contains_secrets = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearContainsSecrets() { - + containsSecrets_ = false; onChanged(); return this; @@ -6121,39 +6907,58 @@ public Builder clearContainsSecrets() { private com.google.cloud.gkebackup.v1.Backup.ClusterMetadata clusterMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata, com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder, com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder> clusterMetadataBuilder_; + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata, + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder, + com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder> + clusterMetadataBuilder_; /** + * + * *
      * Output only. Information about the GKE cluster from which this Backup was created.
      * 
* - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the clusterMetadata field is set. */ public boolean hasClusterMetadata() { return clusterMetadataBuilder_ != null || clusterMetadata_ != null; } /** + * + * *
      * Output only. Information about the GKE cluster from which this Backup was created.
      * 
* - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The clusterMetadata. */ public com.google.cloud.gkebackup.v1.Backup.ClusterMetadata getClusterMetadata() { if (clusterMetadataBuilder_ == null) { - return clusterMetadata_ == null ? com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.getDefaultInstance() : clusterMetadata_; + return clusterMetadata_ == null + ? com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.getDefaultInstance() + : clusterMetadata_; } else { return clusterMetadataBuilder_.getMessage(); } } /** + * + * *
      * Output only. Information about the GKE cluster from which this Backup was created.
      * 
* - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setClusterMetadata(com.google.cloud.gkebackup.v1.Backup.ClusterMetadata value) { if (clusterMetadataBuilder_ == null) { @@ -6169,11 +6974,15 @@ public Builder setClusterMetadata(com.google.cloud.gkebackup.v1.Backup.ClusterMe return this; } /** + * + * *
      * Output only. Information about the GKE cluster from which this Backup was created.
      * 
* - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setClusterMetadata( com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder builderForValue) { @@ -6187,17 +6996,24 @@ public Builder setClusterMetadata( return this; } /** + * + * *
      * Output only. Information about the GKE cluster from which this Backup was created.
      * 
* - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeClusterMetadata(com.google.cloud.gkebackup.v1.Backup.ClusterMetadata value) { + public Builder mergeClusterMetadata( + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata value) { if (clusterMetadataBuilder_ == null) { if (clusterMetadata_ != null) { clusterMetadata_ = - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.newBuilder(clusterMetadata_).mergeFrom(value).buildPartial(); + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.newBuilder(clusterMetadata_) + .mergeFrom(value) + .buildPartial(); } else { clusterMetadata_ = value; } @@ -6209,11 +7025,15 @@ public Builder mergeClusterMetadata(com.google.cloud.gkebackup.v1.Backup.Cluster return this; } /** + * + * *
      * Output only. Information about the GKE cluster from which this Backup was created.
      * 
* - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearClusterMetadata() { if (clusterMetadataBuilder_ == null) { @@ -6227,48 +7047,66 @@ public Builder clearClusterMetadata() { return this; } /** + * + * *
      * Output only. Information about the GKE cluster from which this Backup was created.
      * 
* - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder getClusterMetadataBuilder() { - + public com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder + getClusterMetadataBuilder() { + onChanged(); return getClusterMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Information about the GKE cluster from which this Backup was created.
      * 
* - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder getClusterMetadataOrBuilder() { + public com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder + getClusterMetadataOrBuilder() { if (clusterMetadataBuilder_ != null) { return clusterMetadataBuilder_.getMessageOrBuilder(); } else { - return clusterMetadata_ == null ? - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.getDefaultInstance() : clusterMetadata_; + return clusterMetadata_ == null + ? com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.getDefaultInstance() + : clusterMetadata_; } } /** + * + * *
      * Output only. Information about the GKE cluster from which this Backup was created.
      * 
* - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata, com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder, com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder> + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata, + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder, + com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder> getClusterMetadataFieldBuilder() { if (clusterMetadataBuilder_ == null) { - clusterMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup.ClusterMetadata, com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder, com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder>( - getClusterMetadata(), - getParentForChildren(), - isClean()); + clusterMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata, + com.google.cloud.gkebackup.v1.Backup.ClusterMetadata.Builder, + com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder>( + getClusterMetadata(), getParentForChildren(), isClean()); clusterMetadata_ = null; } return clusterMetadataBuilder_; @@ -6276,51 +7114,73 @@ public com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder getClusterM private int state_ = 0; /** + * + * *
      * Output only. Current state of the Backup
      * 
* - * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. Current state of the Backup
      * 
* - * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Current state of the Backup
      * 
* - * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.gkebackup.v1.Backup.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.Backup.State result = com.google.cloud.gkebackup.v1.Backup.State.valueOf(state_); + com.google.cloud.gkebackup.v1.Backup.State result = + com.google.cloud.gkebackup.v1.Backup.State.valueOf(state_); return result == null ? com.google.cloud.gkebackup.v1.Backup.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. Current state of the Backup
      * 
* - * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -6328,21 +7188,26 @@ public Builder setState(com.google.cloud.gkebackup.v1.Backup.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Current state of the Backup
      * 
* - * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -6350,18 +7215,20 @@ public Builder clearState() { private java.lang.Object stateReason_ = ""; /** + * + * *
      * Output only. Human-readable description of why the backup is in the current `state`.
      * 
* * string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stateReason. */ public java.lang.String getStateReason() { java.lang.Object ref = stateReason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateReason_ = s; return s; @@ -6370,20 +7237,21 @@ public java.lang.String getStateReason() { } } /** + * + * *
      * Output only. Human-readable description of why the backup is in the current `state`.
      * 
* * string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stateReason. */ - public com.google.protobuf.ByteString - getStateReasonBytes() { + public com.google.protobuf.ByteString getStateReasonBytes() { java.lang.Object ref = stateReason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateReason_ = b; return b; } else { @@ -6391,54 +7259,61 @@ public java.lang.String getStateReason() { } } /** + * + * *
      * Output only. Human-readable description of why the backup is in the current `state`.
      * 
* * string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The stateReason to set. * @return This builder for chaining. */ - public Builder setStateReason( - java.lang.String value) { + public Builder setStateReason(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stateReason_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable description of why the backup is in the current `state`.
      * 
* * string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStateReason() { - + stateReason_ = getDefaultInstance().getStateReason(); onChanged(); return this; } /** + * + * *
      * Output only. Human-readable description of why the backup is in the current `state`.
      * 
* * string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for stateReason to set. * @return This builder for chaining. */ - public Builder setStateReasonBytes( - com.google.protobuf.ByteString value) { + public Builder setStateReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stateReason_ = value; onChanged(); return this; @@ -6446,39 +7321,58 @@ public Builder setStateReasonBytes( private com.google.protobuf.Timestamp completeTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completeTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + completeTimeBuilder_; /** + * + * *
      * Output only. Completion time of the Backup
      * 
* - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the completeTime field is set. */ public boolean hasCompleteTime() { return completeTimeBuilder_ != null || completeTime_ != null; } /** + * + * *
      * Output only. Completion time of the Backup
      * 
* - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The completeTime. */ public com.google.protobuf.Timestamp getCompleteTime() { if (completeTimeBuilder_ == null) { - return completeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; } else { return completeTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Completion time of the Backup
      * 
* - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCompleteTime(com.google.protobuf.Timestamp value) { if (completeTimeBuilder_ == null) { @@ -6494,14 +7388,17 @@ public Builder setCompleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Completion time of the Backup
      * 
* - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCompleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (completeTimeBuilder_ == null) { completeTime_ = builderForValue.build(); onChanged(); @@ -6512,17 +7409,23 @@ public Builder setCompleteTime( return this; } /** + * + * *
      * Output only. Completion time of the Backup
      * 
* - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { if (completeTimeBuilder_ == null) { if (completeTime_ != null) { completeTime_ = - com.google.protobuf.Timestamp.newBuilder(completeTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(completeTime_) + .mergeFrom(value) + .buildPartial(); } else { completeTime_ = value; } @@ -6534,11 +7437,15 @@ public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Completion time of the Backup
      * 
* - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCompleteTime() { if (completeTimeBuilder_ == null) { @@ -6552,60 +7459,79 @@ public Builder clearCompleteTime() { return this; } /** + * + * *
      * Output only. Completion time of the Backup
      * 
* - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { - + onChanged(); return getCompleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Completion time of the Backup
      * 
* - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { if (completeTimeBuilder_ != null) { return completeTimeBuilder_.getMessageOrBuilder(); } else { - return completeTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; } } /** + * + * *
      * Output only. Completion time of the Backup
      * 
* - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 20 [(.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> getCompleteTimeFieldBuilder() { if (completeTimeBuilder_ == null) { - completeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCompleteTime(), - getParentForChildren(), - isClean()); + completeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCompleteTime(), getParentForChildren(), isClean()); completeTime_ = null; } return completeTimeBuilder_; } - private int resourceCount_ ; + private int resourceCount_; /** + * + * *
      * Output only. The total number of Kubernetes resources included in the Backup.
      * 
* * int32 resource_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The resourceCount. */ @java.lang.Override @@ -6613,42 +7539,51 @@ public int getResourceCount() { return resourceCount_; } /** + * + * *
      * Output only. The total number of Kubernetes resources included in the Backup.
      * 
* * int32 resource_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The resourceCount to set. * @return This builder for chaining. */ public Builder setResourceCount(int value) { - + resourceCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The total number of Kubernetes resources included in the Backup.
      * 
* * int32 resource_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearResourceCount() { - + resourceCount_ = 0; onChanged(); return this; } - private int volumeCount_ ; + private int volumeCount_; /** + * + * *
      * Output only. The total number of volume backups contained in the Backup.
      * 
* * int32 volume_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The volumeCount. */ @java.lang.Override @@ -6656,43 +7591,52 @@ public int getVolumeCount() { return volumeCount_; } /** + * + * *
      * Output only. The total number of volume backups contained in the Backup.
      * 
* * int32 volume_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The volumeCount to set. * @return This builder for chaining. */ public Builder setVolumeCount(int value) { - + volumeCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The total number of volume backups contained in the Backup.
      * 
* * int32 volume_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVolumeCount() { - + volumeCount_ = 0; onChanged(); return this; } - private long sizeBytes_ ; + private long sizeBytes_; /** + * + * *
      * Output only. The total size of the Backup in bytes = config backup size + sum(volume
      * backup sizes)
      * 
* * int64 size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The sizeBytes. */ @java.lang.Override @@ -6700,32 +7644,38 @@ public long getSizeBytes() { return sizeBytes_; } /** + * + * *
      * Output only. The total size of the Backup in bytes = config backup size + sum(volume
      * backup sizes)
      * 
* * int64 size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The sizeBytes to set. * @return This builder for chaining. */ public Builder setSizeBytes(long value) { - + sizeBytes_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The total size of the Backup in bytes = config backup size + sum(volume
      * backup sizes)
      * 
* * int64 size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSizeBytes() { - + sizeBytes_ = 0L; onChanged(); return this; @@ -6733,6 +7683,8 @@ public Builder clearSizeBytes() { private java.lang.Object etag_ = ""; /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a backup from overwriting each other.
@@ -6745,13 +7697,13 @@ public Builder clearSizeBytes() {
      * 
* * string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -6760,6 +7712,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a backup from overwriting each other.
@@ -6772,15 +7726,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -6788,6 +7741,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a backup from overwriting each other.
@@ -6800,20 +7755,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a backup from overwriting each other.
@@ -6826,15 +7783,18 @@ public Builder setEtag(
      * 
* * string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a backup from overwriting each other.
@@ -6847,16 +7807,16 @@ public Builder clearEtag() {
      * 
* * string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; @@ -6864,18 +7824,20 @@ public Builder setEtagBytes( private java.lang.Object description_ = ""; /** + * + * *
      * User specified descriptive string for this Backup.
      * 
* * string description = 25; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -6884,20 +7846,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User specified descriptive string for this Backup.
      * 
* * string description = 25; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -6905,66 +7868,76 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User specified descriptive string for this Backup.
      * 
* * string description = 25; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * User specified descriptive string for this Backup.
      * 
* * string description = 25; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * User specified descriptive string for this Backup.
      * 
* * string description = 25; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private int podCount_ ; + private int podCount_; /** + * + * *
      * Output only. The total number of Kubernetes Pods contained in the Backup.
      * 
* * int32 pod_count = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The podCount. */ @java.lang.Override @@ -6972,42 +7945,52 @@ public int getPodCount() { return podCount_; } /** + * + * *
      * Output only. The total number of Kubernetes Pods contained in the Backup.
      * 
* * int32 pod_count = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The podCount to set. * @return This builder for chaining. */ public Builder setPodCount(int value) { - + podCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The total number of Kubernetes Pods contained in the Backup.
      * 
* * int32 pod_count = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPodCount() { - + podCount_ = 0; onChanged(); return this; } - private long configBackupSizeBytes_ ; + private long configBackupSizeBytes_; /** + * + * *
      * Output only. The size of the config backup in bytes.
      * 
* - * int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The configBackupSizeBytes. */ @java.lang.Override @@ -7015,37 +7998,45 @@ public long getConfigBackupSizeBytes() { return configBackupSizeBytes_; } /** + * + * *
      * Output only. The size of the config backup in bytes.
      * 
* - * int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The configBackupSizeBytes to set. * @return This builder for chaining. */ public Builder setConfigBackupSizeBytes(long value) { - + configBackupSizeBytes_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The size of the config backup in bytes.
      * 
* - * int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearConfigBackupSizeBytes() { - + configBackupSizeBytes_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -7055,12 +8046,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.Backup) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.Backup) private static final com.google.cloud.gkebackup.v1.Backup DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.Backup(); } @@ -7069,16 +8060,16 @@ public static com.google.cloud.gkebackup.v1.Backup getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Backup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Backup(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Backup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Backup(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7093,6 +8084,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.Backup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupName.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupName.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupOrBuilder.java index a7c284a..4d95377 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupOrBuilder.java @@ -1,111 +1,161 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/backup.proto package com.google.cloud.gkebackup.v1; -public interface BackupOrBuilder extends +public interface BackupOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.Backup) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The fully qualified name of the Backup.
    * projects/*/locations/*/backupPlans/*/backups/*
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The fully qualified name of the Backup.
    * projects/*/locations/*/backupPlans/*/backups/*
    * 
* * 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. Server generated global unique identifier of
    * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. Server generated global unique identifier of
    * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. The timestamp when this Backup resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The timestamp when this Backup resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The timestamp when this Backup resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The timestamp when this Backup resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The timestamp when this Backup resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The timestamp when this Backup resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. This flag indicates whether this Backup resource was created manually
    * by a user or via a schedule in the BackupPlan. A value of True means that
@@ -113,11 +163,14 @@ public interface BackupOrBuilder extends
    * 
* * bool manual = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The manual. */ boolean getManual(); /** + * + * *
    * A set of custom labels supplied by user.
    * 
@@ -126,30 +179,31 @@ public interface BackupOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 6; */ - 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(); /** + * + * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 6; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * A set of custom labels supplied by user.
    * 
@@ -158,22 +212,24 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 6; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Minimum age for this Backup (in days). If this field is set to a non-zero
    * value, the Backup will be "locked" against deletion (either manual or
@@ -187,41 +243,58 @@ java.lang.String getLabelsOrThrow(
    * 
* * int32 delete_lock_days = 7; + * * @return The deleteLockDays. */ int getDeleteLockDays(); /** + * + * *
    * Output only. The time at which an existing delete lock will expire for this backup
    * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
    * 
* - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteLockExpireTime field is set. */ boolean hasDeleteLockExpireTime(); /** + * + * *
    * Output only. The time at which an existing delete lock will expire for this backup
    * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
    * 
* - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteLockExpireTime. */ com.google.protobuf.Timestamp getDeleteLockExpireTime(); /** + * + * *
    * Output only. The time at which an existing delete lock will expire for this backup
    * (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
    * 
* - * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteLockExpireTimeOrBuilder(); /** + * + * *
    * The age (in days) after which this Backup will be automatically deleted.
    * Must be an integer value >= 0:
@@ -233,150 +306,215 @@ java.lang.String getLabelsOrThrow(
    * 
* * int32 retain_days = 9; + * * @return The retainDays. */ int getRetainDays(); /** + * + * *
    * Output only. The time at which this Backup will be automatically deleted (calculated
    * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
    * 
* - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the retainExpireTime field is set. */ boolean hasRetainExpireTime(); /** + * + * *
    * Output only. The time at which this Backup will be automatically deleted (calculated
    * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
    * 
* - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The retainExpireTime. */ com.google.protobuf.Timestamp getRetainExpireTime(); /** + * + * *
    * Output only. The time at which this Backup will be automatically deleted (calculated
    * from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
    * 
* - * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getRetainExpireTimeOrBuilder(); /** + * + * *
    * Output only. The customer managed encryption key that was used to encrypt the Backup's
    * artifacts.  Inherited from the parent BackupPlan's
    * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
    * 
* - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the encryptionKey field is set. */ boolean hasEncryptionKey(); /** + * + * *
    * Output only. The customer managed encryption key that was used to encrypt the Backup's
    * artifacts.  Inherited from the parent BackupPlan's
    * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
    * 
* - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The encryptionKey. */ com.google.cloud.gkebackup.v1.EncryptionKey getEncryptionKey(); /** + * + * *
    * Output only. The customer managed encryption key that was used to encrypt the Backup's
    * artifacts.  Inherited from the parent BackupPlan's
    * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
    * 
* - * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBuilder(); /** + * + * *
    * Output only. If True, all namespaces were included in the Backup.
    * 
* * bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the allNamespaces field is set. */ boolean hasAllNamespaces(); /** + * + * *
    * Output only. If True, all namespaces were included in the Backup.
    * 
* * bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The allNamespaces. */ boolean getAllNamespaces(); /** + * + * *
    * Output only. If set, the list of namespaces that were included in the Backup.
    * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the selectedNamespaces field is set. */ boolean hasSelectedNamespaces(); /** + * + * *
    * Output only. If set, the list of namespaces that were included in the Backup.
    * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The selectedNamespaces. */ com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces(); /** + * + * *
    * Output only. If set, the list of namespaces that were included in the Backup.
    * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOrBuilder(); /** + * + * *
    * Output only. If set, the list of ProtectedApplications whose resources were included
    * in the Backup.
    * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the selectedApplications field is set. */ boolean hasSelectedApplications(); /** + * + * *
    * Output only. If set, the list of ProtectedApplications whose resources were included
    * in the Backup.
    * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The selectedApplications. */ com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications(); /** + * + * *
    * Output only. If set, the list of ProtectedApplications whose resources were included
    * in the Backup.
    * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder(); /** + * + * *
    * Output only. Whether or not the Backup contains volume data.  Controlled by the parent
    * BackupPlan's
@@ -384,11 +522,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * bool contains_volume_data = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The containsVolumeData. */ boolean getContainsVolumeData(); /** + * + * *
    * Output only. Whether or not the Backup contains Kubernetes Secrets.  Controlled by the
    * parent BackupPlan's
@@ -396,135 +537,190 @@ java.lang.String getLabelsOrThrow(
    * 
* * bool contains_secrets = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The containsSecrets. */ boolean getContainsSecrets(); /** + * + * *
    * Output only. Information about the GKE cluster from which this Backup was created.
    * 
* - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the clusterMetadata field is set. */ boolean hasClusterMetadata(); /** + * + * *
    * Output only. Information about the GKE cluster from which this Backup was created.
    * 
* - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The clusterMetadata. */ com.google.cloud.gkebackup.v1.Backup.ClusterMetadata getClusterMetadata(); /** + * + * *
    * Output only. Information about the GKE cluster from which this Backup was created.
    * 
* - * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkebackup.v1.Backup.ClusterMetadataOrBuilder getClusterMetadataOrBuilder(); /** + * + * *
    * Output only. Current state of the Backup
    * 
* - * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. Current state of the Backup
    * 
* - * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.gkebackup.v1.Backup.State getState(); /** + * + * *
    * Output only. Human-readable description of why the backup is in the current `state`.
    * 
* * string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stateReason. */ java.lang.String getStateReason(); /** + * + * *
    * Output only. Human-readable description of why the backup is in the current `state`.
    * 
* * string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stateReason. */ - com.google.protobuf.ByteString - getStateReasonBytes(); + com.google.protobuf.ByteString getStateReasonBytes(); /** + * + * *
    * Output only. Completion time of the Backup
    * 
* - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the completeTime field is set. */ boolean hasCompleteTime(); /** + * + * *
    * Output only. Completion time of the Backup
    * 
* - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The completeTime. */ com.google.protobuf.Timestamp getCompleteTime(); /** + * + * *
    * Output only. Completion time of the Backup
    * 
* - * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder(); /** + * + * *
    * Output only. The total number of Kubernetes resources included in the Backup.
    * 
* * int32 resource_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The resourceCount. */ int getResourceCount(); /** + * + * *
    * Output only. The total number of volume backups contained in the Backup.
    * 
* * int32 volume_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The volumeCount. */ int getVolumeCount(); /** + * + * *
    * Output only. The total size of the Backup in bytes = config backup size + sum(volume
    * backup sizes)
    * 
* * int64 size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The sizeBytes. */ long getSizeBytes(); /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a backup from overwriting each other.
@@ -537,10 +733,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a backup from overwriting each other.
@@ -553,47 +752,58 @@ java.lang.String getLabelsOrThrow(
    * 
* * string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * User specified descriptive string for this Backup.
    * 
* * string description = 25; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * User specified descriptive string for this Backup.
    * 
* * string description = 25; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The total number of Kubernetes Pods contained in the Backup.
    * 
* * int32 pod_count = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The podCount. */ int getPodCount(); /** + * + * *
    * Output only. The size of the config backup in bytes.
    * 
* * int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The configBackupSizeBytes. */ long getConfigBackupSizeBytes(); diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlan.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlan.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlan.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlan.java index c18d155..ef1f9bd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlan.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlan.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/backup_plan.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Defines the configuration and scheduling for a "line" of Backups.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.BackupPlan} */ -public final class BackupPlan extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BackupPlan extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.BackupPlan) BackupPlanOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BackupPlan.newBuilder() to construct. private BackupPlan(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BackupPlan() { name_ = ""; uid_ = ""; @@ -29,16 +47,15 @@ private BackupPlan() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BackupPlan(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BackupPlan( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,131 +75,152 @@ private BackupPlan( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - uid_ = s; - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + name_ = s; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + uid_ = s; + break; } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + description_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + cluster_ = s; + break; + } + case 58: + { + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder subBuilder = null; + if (retentionPolicy_ != null) { + subBuilder = retentionPolicy_.toBuilder(); + } + retentionPolicy_ = + input.readMessage( + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(retentionPolicy_); + retentionPolicy_ = subBuilder.buildPartial(); + } - cluster_ = s; - break; - } - case 58: { - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder subBuilder = null; - if (retentionPolicy_ != null) { - subBuilder = retentionPolicy_.toBuilder(); + break; } - retentionPolicy_ = input.readMessage(com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(retentionPolicy_); - retentionPolicy_ = subBuilder.buildPartial(); + case 66: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } + case 74: + { + com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder subBuilder = null; + if (backupSchedule_ != null) { + subBuilder = backupSchedule_.toBuilder(); + } + backupSchedule_ = + input.readMessage( + com.google.cloud.gkebackup.v1.BackupPlan.Schedule.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(backupSchedule_); + backupSchedule_ = subBuilder.buildPartial(); + } - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 74: { - com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder subBuilder = null; - if (backupSchedule_ != null) { - subBuilder = backupSchedule_.toBuilder(); + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; } - backupSchedule_ = input.readMessage(com.google.cloud.gkebackup.v1.BackupPlan.Schedule.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(backupSchedule_); - backupSchedule_ = subBuilder.buildPartial(); + case 88: + { + deactivated_ = input.readBool(); + break; } + case 98: + { + com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder subBuilder = null; + if (backupConfig_ != null) { + subBuilder = backupConfig_.toBuilder(); + } + backupConfig_ = + input.readMessage( + com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(backupConfig_); + backupConfig_ = subBuilder.buildPartial(); + } - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - - etag_ = s; - break; - } - case 88: { - - deactivated_ = input.readBool(); - break; - } - case 98: { - com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder subBuilder = null; - if (backupConfig_ != null) { - subBuilder = backupConfig_.toBuilder(); + break; } - backupConfig_ = input.readMessage(com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(backupConfig_); - backupConfig_ = subBuilder.buildPartial(); + case 104: + { + protectedPodCount_ = input.readInt32(); + break; } - - break; - } - case 104: { - - protectedPodCount_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -190,43 +228,47 @@ private BackupPlan( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.BackupPlanProto + .internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 8: 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.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_fieldAccessorTable + return com.google.cloud.gkebackup.v1.BackupPlanProto + .internal_static_google_cloud_gkebackup_v1_BackupPlan_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.BackupPlan.class, com.google.cloud.gkebackup.v1.BackupPlan.Builder.class); + com.google.cloud.gkebackup.v1.BackupPlan.class, + com.google.cloud.gkebackup.v1.BackupPlan.Builder.class); } - public interface RetentionPolicyOrBuilder extends + public interface RetentionPolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Minimum age for Backups created via this BackupPlan (in days).
      * This field MUST be an integer value between 0-90 (inclusive).
@@ -239,11 +281,14 @@ public interface RetentionPolicyOrBuilder extends
      * 
* * int32 backup_delete_lock_days = 1; + * * @return The backupDeleteLockDays. */ int getBackupDeleteLockDays(); /** + * + * *
      * The default maximum age of a Backup created via this BackupPlan.
      * This field MUST be an integer value >= 0.
@@ -260,11 +305,14 @@ public interface RetentionPolicyOrBuilder extends
      * 
* * int32 backup_retain_days = 2; + * * @return The backupRetainDays. */ int getBackupRetainDays(); /** + * + * *
      * This flag denotes whether the retention policy of this BackupPlan is
      * locked.  If set to True, no further update is allowed on this policy,
@@ -273,41 +321,43 @@ public interface RetentionPolicyOrBuilder extends
      * 
* * bool locked = 3; + * * @return The locked. */ boolean getLocked(); } /** + * + * *
    * RetentionPolicy defines a Backup retention policy for a BackupPlan.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.BackupPlan.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.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) RetentionPolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RetentionPolicy.newBuilder() to construct. private RetentionPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RetentionPolicy() { - } + + private RetentionPolicy() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RetentionPolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RetentionPolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -326,28 +376,28 @@ private RetentionPolicy( case 0: done = true; break; - case 8: { - - backupDeleteLockDays_ = input.readInt32(); - break; - } - case 16: { - - backupRetainDays_ = input.readInt32(); - break; - } - case 24: { - - locked_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + backupDeleteLockDays_ = input.readInt32(); + break; + } + case 16: + { + backupRetainDays_ = input.readInt32(); + break; + } + case 24: + { + locked_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -355,29 +405,33 @@ private RetentionPolicy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.BackupPlanProto + .internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_fieldAccessorTable + return com.google.cloud.gkebackup.v1.BackupPlanProto + .internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.class, com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder.class); + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.class, + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder.class); } public static final int BACKUP_DELETE_LOCK_DAYS_FIELD_NUMBER = 1; private int backupDeleteLockDays_; /** + * + * *
      * Minimum age for Backups created via this BackupPlan (in days).
      * This field MUST be an integer value between 0-90 (inclusive).
@@ -390,6 +444,7 @@ private RetentionPolicy(
      * 
* * int32 backup_delete_lock_days = 1; + * * @return The backupDeleteLockDays. */ @java.lang.Override @@ -400,6 +455,8 @@ public int getBackupDeleteLockDays() { public static final int BACKUP_RETAIN_DAYS_FIELD_NUMBER = 2; private int backupRetainDays_; /** + * + * *
      * The default maximum age of a Backup created via this BackupPlan.
      * This field MUST be an integer value >= 0.
@@ -416,6 +473,7 @@ public int getBackupDeleteLockDays() {
      * 
* * int32 backup_retain_days = 2; + * * @return The backupRetainDays. */ @java.lang.Override @@ -426,6 +484,8 @@ public int getBackupRetainDays() { public static final int LOCKED_FIELD_NUMBER = 3; private boolean locked_; /** + * + * *
      * This flag denotes whether the retention policy of this BackupPlan is
      * locked.  If set to True, no further update is allowed on this policy,
@@ -434,6 +494,7 @@ public int getBackupRetainDays() {
      * 
* * bool locked = 3; + * * @return The locked. */ @java.lang.Override @@ -442,6 +503,7 @@ public boolean getLocked() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -453,8 +515,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 (backupDeleteLockDays_ != 0) { output.writeInt32(1, backupDeleteLockDays_); } @@ -474,16 +535,13 @@ public int getSerializedSize() { size = 0; if (backupDeleteLockDays_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, backupDeleteLockDays_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, backupDeleteLockDays_); } if (backupRetainDays_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, backupRetainDays_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, backupRetainDays_); } if (locked_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, locked_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, locked_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -493,19 +551,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy other = (com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) obj; + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy other = + (com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) obj; - if (getBackupDeleteLockDays() - != other.getBackupDeleteLockDays()) return false; - if (getBackupRetainDays() - != other.getBackupRetainDays()) return false; - if (getLocked() - != other.getLocked()) return false; + if (getBackupDeleteLockDays() != other.getBackupDeleteLockDays()) return false; + if (getBackupRetainDays() != other.getBackupRetainDays()) return false; + if (getLocked() != other.getLocked()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -522,95 +578,101 @@ public int hashCode() { hash = (37 * hash) + BACKUP_RETAIN_DAYS_FIELD_NUMBER; hash = (53 * hash) + getBackupRetainDays(); hash = (37 * hash) + LOCKED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLocked()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocked()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.BackupPlan.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.cloud.gkebackup.v1.BackupPlan.RetentionPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.BackupPlan.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.cloud.gkebackup.v1.BackupPlan.RetentionPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.BackupPlan.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.cloud.gkebackup.v1.BackupPlan.RetentionPolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.BackupPlan.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.cloud.gkebackup.v1.BackupPlan.RetentionPolicy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.BackupPlan.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.cloud.gkebackup.v1.BackupPlan.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.cloud.gkebackup.v1.BackupPlan.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.cloud.gkebackup.v1.BackupPlan.RetentionPolicy prototype) { + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.BackupPlan.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 @@ -620,27 +682,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * RetentionPolicy defines a Backup retention policy for a BackupPlan.
      * 
* * Protobuf type {@code google.cloud.gkebackup.v1.BackupPlan.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.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.BackupPlanProto + .internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_fieldAccessorTable + return com.google.cloud.gkebackup.v1.BackupPlanProto + .internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.class, com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder.class); + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.class, + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.newBuilder() @@ -648,16 +715,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -671,9 +737,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.BackupPlanProto + .internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor; } @java.lang.Override @@ -692,7 +758,8 @@ public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy build() { @java.lang.Override public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy buildPartial() { - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy result = new com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy(this); + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy result = + new com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy(this); result.backupDeleteLockDays_ = backupDeleteLockDays_; result.backupRetainDays_ = backupRetainDays_; result.locked_ = locked_; @@ -704,38 +771,41 @@ public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy 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) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) { - return mergeFrom((com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy)other); + return mergeFrom((com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) other); } else { super.mergeFrom(other); return this; @@ -743,7 +813,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy other) { - if (other == com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.getDefaultInstance()) + return this; if (other.getBackupDeleteLockDays() != 0) { setBackupDeleteLockDays(other.getBackupDeleteLockDays()); } @@ -772,7 +843,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -782,8 +854,10 @@ public Builder mergeFrom( return this; } - private int backupDeleteLockDays_ ; + private int backupDeleteLockDays_; /** + * + * *
        * Minimum age for Backups created via this BackupPlan (in days).
        * This field MUST be an integer value between 0-90 (inclusive).
@@ -796,6 +870,7 @@ public Builder mergeFrom(
        * 
* * int32 backup_delete_lock_days = 1; + * * @return The backupDeleteLockDays. */ @java.lang.Override @@ -803,6 +878,8 @@ public int getBackupDeleteLockDays() { return backupDeleteLockDays_; } /** + * + * *
        * Minimum age for Backups created via this BackupPlan (in days).
        * This field MUST be an integer value between 0-90 (inclusive).
@@ -815,16 +892,19 @@ public int getBackupDeleteLockDays() {
        * 
* * int32 backup_delete_lock_days = 1; + * * @param value The backupDeleteLockDays to set. * @return This builder for chaining. */ public Builder setBackupDeleteLockDays(int value) { - + backupDeleteLockDays_ = value; onChanged(); return this; } /** + * + * *
        * Minimum age for Backups created via this BackupPlan (in days).
        * This field MUST be an integer value between 0-90 (inclusive).
@@ -837,17 +917,20 @@ public Builder setBackupDeleteLockDays(int value) {
        * 
* * int32 backup_delete_lock_days = 1; + * * @return This builder for chaining. */ public Builder clearBackupDeleteLockDays() { - + backupDeleteLockDays_ = 0; onChanged(); return this; } - private int backupRetainDays_ ; + private int backupRetainDays_; /** + * + * *
        * The default maximum age of a Backup created via this BackupPlan.
        * This field MUST be an integer value >= 0.
@@ -864,6 +947,7 @@ public Builder clearBackupDeleteLockDays() {
        * 
* * int32 backup_retain_days = 2; + * * @return The backupRetainDays. */ @java.lang.Override @@ -871,6 +955,8 @@ public int getBackupRetainDays() { return backupRetainDays_; } /** + * + * *
        * The default maximum age of a Backup created via this BackupPlan.
        * This field MUST be an integer value >= 0.
@@ -887,16 +973,19 @@ public int getBackupRetainDays() {
        * 
* * int32 backup_retain_days = 2; + * * @param value The backupRetainDays to set. * @return This builder for chaining. */ public Builder setBackupRetainDays(int value) { - + backupRetainDays_ = value; onChanged(); return this; } /** + * + * *
        * The default maximum age of a Backup created via this BackupPlan.
        * This field MUST be an integer value >= 0.
@@ -913,17 +1002,20 @@ public Builder setBackupRetainDays(int value) {
        * 
* * int32 backup_retain_days = 2; + * * @return This builder for chaining. */ public Builder clearBackupRetainDays() { - + backupRetainDays_ = 0; onChanged(); return this; } - private boolean locked_ ; + private boolean locked_; /** + * + * *
        * This flag denotes whether the retention policy of this BackupPlan is
        * locked.  If set to True, no further update is allowed on this policy,
@@ -932,6 +1024,7 @@ public Builder clearBackupRetainDays() {
        * 
* * bool locked = 3; + * * @return The locked. */ @java.lang.Override @@ -939,6 +1032,8 @@ public boolean getLocked() { return locked_; } /** + * + * *
        * This flag denotes whether the retention policy of this BackupPlan is
        * locked.  If set to True, no further update is allowed on this policy,
@@ -947,16 +1042,19 @@ public boolean getLocked() {
        * 
* * bool locked = 3; + * * @param value The locked to set. * @return This builder for chaining. */ public Builder setLocked(boolean value) { - + locked_ = value; onChanged(); return this; } /** + * + * *
        * This flag denotes whether the retention policy of this BackupPlan is
        * locked.  If set to True, no further update is allowed on this policy,
@@ -965,14 +1063,16 @@ public Builder setLocked(boolean value) {
        * 
* * bool locked = 3; + * * @return This builder for chaining. */ public Builder clearLocked() { - + locked_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -985,12 +1085,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy) private static final com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy(); } @@ -999,16 +1099,16 @@ public static com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy getDefaul 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 { - return new RetentionPolicy(input, extensionRegistry); - } - }; + 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 { + return new RetentionPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1023,14 +1123,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ScheduleOrBuilder extends + public interface ScheduleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.BackupPlan.Schedule) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A standard [cron](https://wikipedia.com/wiki/cron) string that defines a
      * repeating schedule for creating Backups via this BackupPlan.
@@ -1038,10 +1140,13 @@ public interface ScheduleOrBuilder extends
      * 
* * string cron_schedule = 1; + * * @return The cronSchedule. */ java.lang.String getCronSchedule(); /** + * + * *
      * A standard [cron](https://wikipedia.com/wiki/cron) string that defines a
      * repeating schedule for creating Backups via this BackupPlan.
@@ -1049,12 +1154,14 @@ public interface ScheduleOrBuilder extends
      * 
* * string cron_schedule = 1; + * * @return The bytes for cronSchedule. */ - com.google.protobuf.ByteString - getCronScheduleBytes(); + com.google.protobuf.ByteString getCronScheduleBytes(); /** + * + * *
      * This flag denotes whether automatic Backup creation is paused for this
      * BackupPlan.
@@ -1062,11 +1169,14 @@ public interface ScheduleOrBuilder extends
      * 
* * bool paused = 2; + * * @return The paused. */ boolean getPaused(); } /** + * + * *
    * Schedule defines scheduling parameters for automatically creating Backups
    * via this BackupPlan.
@@ -1074,31 +1184,31 @@ public interface ScheduleOrBuilder extends
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.BackupPlan.Schedule}
    */
-  public static final class Schedule extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Schedule extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.BackupPlan.Schedule)
       ScheduleOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Schedule.newBuilder() to construct.
     private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Schedule() {
       cronSchedule_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Schedule();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private Schedule(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1117,24 +1227,25 @@ private Schedule(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              cronSchedule_ = s;
-              break;
-            }
-            case 16: {
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              paused_ = input.readBool();
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                cronSchedule_ = s;
+                break;
+              }
+            case 16:
+              {
+                paused_ = input.readBool();
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1142,29 +1253,33 @@ private Schedule(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkebackup.v1.BackupPlanProto
+          .internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.BackupPlanProto
+          .internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.BackupPlan.Schedule.class, com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder.class);
+              com.google.cloud.gkebackup.v1.BackupPlan.Schedule.class,
+              com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder.class);
     }
 
     public static final int CRON_SCHEDULE_FIELD_NUMBER = 1;
     private volatile java.lang.Object cronSchedule_;
     /**
+     *
+     *
      * 
      * A standard [cron](https://wikipedia.com/wiki/cron) string that defines a
      * repeating schedule for creating Backups via this BackupPlan.
@@ -1172,6 +1287,7 @@ private Schedule(
      * 
* * string cron_schedule = 1; + * * @return The cronSchedule. */ @java.lang.Override @@ -1180,14 +1296,15 @@ public java.lang.String getCronSchedule() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cronSchedule_ = s; return s; } } /** + * + * *
      * A standard [cron](https://wikipedia.com/wiki/cron) string that defines a
      * repeating schedule for creating Backups via this BackupPlan.
@@ -1195,16 +1312,15 @@ public java.lang.String getCronSchedule() {
      * 
* * string cron_schedule = 1; + * * @return The bytes for cronSchedule. */ @java.lang.Override - public com.google.protobuf.ByteString - getCronScheduleBytes() { + public com.google.protobuf.ByteString getCronScheduleBytes() { java.lang.Object ref = cronSchedule_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cronSchedule_ = b; return b; } else { @@ -1215,6 +1331,8 @@ public java.lang.String getCronSchedule() { public static final int PAUSED_FIELD_NUMBER = 2; private boolean paused_; /** + * + * *
      * This flag denotes whether automatic Backup creation is paused for this
      * BackupPlan.
@@ -1222,6 +1340,7 @@ public java.lang.String getCronSchedule() {
      * 
* * bool paused = 2; + * * @return The paused. */ @java.lang.Override @@ -1230,6 +1349,7 @@ public boolean getPaused() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1241,8 +1361,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(cronSchedule_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cronSchedule_); } @@ -1262,8 +1381,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cronSchedule_); } if (paused_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, paused_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, paused_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1273,17 +1391,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.BackupPlan.Schedule)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.BackupPlan.Schedule other = (com.google.cloud.gkebackup.v1.BackupPlan.Schedule) obj; + com.google.cloud.gkebackup.v1.BackupPlan.Schedule other = + (com.google.cloud.gkebackup.v1.BackupPlan.Schedule) obj; - if (!getCronSchedule() - .equals(other.getCronSchedule())) return false; - if (getPaused() - != other.getPaused()) return false; + if (!getCronSchedule().equals(other.getCronSchedule())) return false; + if (getPaused() != other.getPaused()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1298,95 +1415,100 @@ public int hashCode() { hash = (37 * hash) + CRON_SCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getCronSchedule().hashCode(); hash = (37 * hash) + PAUSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPaused()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPaused()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.BackupPlan.Schedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1396,6 +1518,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Schedule defines scheduling parameters for automatically creating Backups
      * via this BackupPlan.
@@ -1403,21 +1527,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.gkebackup.v1.BackupPlan.Schedule}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.BackupPlan.Schedule)
         com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.gkebackup.v1.BackupPlanProto
+            .internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_fieldAccessorTable
+        return com.google.cloud.gkebackup.v1.BackupPlanProto
+            .internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.gkebackup.v1.BackupPlan.Schedule.class, com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder.class);
+                com.google.cloud.gkebackup.v1.BackupPlan.Schedule.class,
+                com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder.class);
       }
 
       // Construct using com.google.cloud.gkebackup.v1.BackupPlan.Schedule.newBuilder()
@@ -1425,16 +1552,15 @@ 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) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1446,9 +1572,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.gkebackup.v1.BackupPlanProto
+            .internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor;
       }
 
       @java.lang.Override
@@ -1467,7 +1593,8 @@ public com.google.cloud.gkebackup.v1.BackupPlan.Schedule build() {
 
       @java.lang.Override
       public com.google.cloud.gkebackup.v1.BackupPlan.Schedule buildPartial() {
-        com.google.cloud.gkebackup.v1.BackupPlan.Schedule result = new com.google.cloud.gkebackup.v1.BackupPlan.Schedule(this);
+        com.google.cloud.gkebackup.v1.BackupPlan.Schedule result =
+            new com.google.cloud.gkebackup.v1.BackupPlan.Schedule(this);
         result.cronSchedule_ = cronSchedule_;
         result.paused_ = paused_;
         onBuilt();
@@ -1478,38 +1605,41 @@ public com.google.cloud.gkebackup.v1.BackupPlan.Schedule 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) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.gkebackup.v1.BackupPlan.Schedule) {
-          return mergeFrom((com.google.cloud.gkebackup.v1.BackupPlan.Schedule)other);
+          return mergeFrom((com.google.cloud.gkebackup.v1.BackupPlan.Schedule) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -1517,7 +1647,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.gkebackup.v1.BackupPlan.Schedule other) {
-        if (other == com.google.cloud.gkebackup.v1.BackupPlan.Schedule.getDefaultInstance()) return this;
+        if (other == com.google.cloud.gkebackup.v1.BackupPlan.Schedule.getDefaultInstance())
+          return this;
         if (!other.getCronSchedule().isEmpty()) {
           cronSchedule_ = other.cronSchedule_;
           onChanged();
@@ -1544,7 +1675,8 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.gkebackup.v1.BackupPlan.Schedule) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.gkebackup.v1.BackupPlan.Schedule) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1556,6 +1688,8 @@ public Builder mergeFrom(
 
       private java.lang.Object cronSchedule_ = "";
       /**
+       *
+       *
        * 
        * A standard [cron](https://wikipedia.com/wiki/cron) string that defines a
        * repeating schedule for creating Backups via this BackupPlan.
@@ -1563,13 +1697,13 @@ public Builder mergeFrom(
        * 
* * string cron_schedule = 1; + * * @return The cronSchedule. */ public java.lang.String getCronSchedule() { java.lang.Object ref = cronSchedule_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cronSchedule_ = s; return s; @@ -1578,6 +1712,8 @@ public java.lang.String getCronSchedule() { } } /** + * + * *
        * A standard [cron](https://wikipedia.com/wiki/cron) string that defines a
        * repeating schedule for creating Backups via this BackupPlan.
@@ -1585,15 +1721,14 @@ public java.lang.String getCronSchedule() {
        * 
* * string cron_schedule = 1; + * * @return The bytes for cronSchedule. */ - public com.google.protobuf.ByteString - getCronScheduleBytes() { + public com.google.protobuf.ByteString getCronScheduleBytes() { java.lang.Object ref = cronSchedule_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cronSchedule_ = b; return b; } else { @@ -1601,6 +1736,8 @@ public java.lang.String getCronSchedule() { } } /** + * + * *
        * A standard [cron](https://wikipedia.com/wiki/cron) string that defines a
        * repeating schedule for creating Backups via this BackupPlan.
@@ -1608,20 +1745,22 @@ public java.lang.String getCronSchedule() {
        * 
* * string cron_schedule = 1; + * * @param value The cronSchedule to set. * @return This builder for chaining. */ - public Builder setCronSchedule( - java.lang.String value) { + public Builder setCronSchedule(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cronSchedule_ = value; onChanged(); return this; } /** + * + * *
        * A standard [cron](https://wikipedia.com/wiki/cron) string that defines a
        * repeating schedule for creating Backups via this BackupPlan.
@@ -1629,15 +1768,18 @@ public Builder setCronSchedule(
        * 
* * string cron_schedule = 1; + * * @return This builder for chaining. */ public Builder clearCronSchedule() { - + cronSchedule_ = getDefaultInstance().getCronSchedule(); onChanged(); return this; } /** + * + * *
        * A standard [cron](https://wikipedia.com/wiki/cron) string that defines a
        * repeating schedule for creating Backups via this BackupPlan.
@@ -1645,23 +1787,25 @@ public Builder clearCronSchedule() {
        * 
* * string cron_schedule = 1; + * * @param value The bytes for cronSchedule to set. * @return This builder for chaining. */ - public Builder setCronScheduleBytes( - com.google.protobuf.ByteString value) { + public Builder setCronScheduleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cronSchedule_ = value; onChanged(); return this; } - private boolean paused_ ; + private boolean paused_; /** + * + * *
        * This flag denotes whether automatic Backup creation is paused for this
        * BackupPlan.
@@ -1669,6 +1813,7 @@ public Builder setCronScheduleBytes(
        * 
* * bool paused = 2; + * * @return The paused. */ @java.lang.Override @@ -1676,6 +1821,8 @@ public boolean getPaused() { return paused_; } /** + * + * *
        * This flag denotes whether automatic Backup creation is paused for this
        * BackupPlan.
@@ -1683,16 +1830,19 @@ public boolean getPaused() {
        * 
* * bool paused = 2; + * * @param value The paused to set. * @return This builder for chaining. */ public Builder setPaused(boolean value) { - + paused_ = value; onChanged(); return this; } /** + * + * *
        * This flag denotes whether automatic Backup creation is paused for this
        * BackupPlan.
@@ -1700,14 +1850,16 @@ public Builder setPaused(boolean value) {
        * 
* * bool paused = 2; + * * @return This builder for chaining. */ public Builder clearPaused() { - + paused_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1720,12 +1872,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.BackupPlan.Schedule) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.BackupPlan.Schedule) private static final com.google.cloud.gkebackup.v1.BackupPlan.Schedule DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.BackupPlan.Schedule(); } @@ -1734,16 +1886,16 @@ public static com.google.cloud.gkebackup.v1.BackupPlan.Schedule getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Schedule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schedule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1758,51 +1910,65 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.BackupPlan.Schedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface BackupConfigOrBuilder extends + public interface BackupConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.BackupPlan.BackupConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * If True, include all namespaced resources
      * 
* * bool all_namespaces = 1; + * * @return Whether the allNamespaces field is set. */ boolean hasAllNamespaces(); /** + * + * *
      * If True, include all namespaced resources
      * 
* * bool all_namespaces = 1; + * * @return The allNamespaces. */ boolean getAllNamespaces(); /** + * + * *
      * If set, include just the resources in the listed namespaces.
      * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2; + * * @return Whether the selectedNamespaces field is set. */ boolean hasSelectedNamespaces(); /** + * + * *
      * If set, include just the resources in the listed namespaces.
      * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2; + * * @return The selectedNamespaces. */ com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces(); /** + * + * *
      * If set, include just the resources in the listed namespaces.
      * 
@@ -1812,26 +1978,34 @@ public interface BackupConfigOrBuilder extends com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOrBuilder(); /** + * + * *
      * If set, include just the resources referenced by the listed
      * ProtectedApplications.
      * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3; + * * @return Whether the selectedApplications field is set. */ boolean hasSelectedApplications(); /** + * + * *
      * If set, include just the resources referenced by the listed
      * ProtectedApplications.
      * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3; + * * @return The selectedApplications. */ com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications(); /** + * + * *
      * If set, include just the resources referenced by the listed
      * ProtectedApplications.
@@ -1842,6 +2016,8 @@ public interface BackupConfigOrBuilder extends
     com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder();
 
     /**
+     *
+     *
      * 
      * This flag specifies whether volume data should be backed up when
      * PVCs are included in the scope of a Backup.
@@ -1849,11 +2025,14 @@ public interface BackupConfigOrBuilder extends
      * 
* * bool include_volume_data = 4; + * * @return The includeVolumeData. */ boolean getIncludeVolumeData(); /** + * + * *
      * This flag specifies whether Kubernetes Secret resources should be
      * included when they fall into the scope of Backups.
@@ -1861,11 +2040,14 @@ public interface BackupConfigOrBuilder extends
      * 
* * bool include_secrets = 5; + * * @return The includeSecrets. */ boolean getIncludeSecrets(); /** + * + * *
      * This defines a customer managed encryption key that will be used to
      * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -1874,10 +2056,13 @@ public interface BackupConfigOrBuilder extends
      * 
* * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6; + * * @return Whether the encryptionKey field is set. */ boolean hasEncryptionKey(); /** + * + * *
      * This defines a customer managed encryption key that will be used to
      * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -1886,10 +2071,13 @@ public interface BackupConfigOrBuilder extends
      * 
* * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6; + * * @return The encryptionKey. */ com.google.cloud.gkebackup.v1.EncryptionKey getEncryptionKey(); /** + * + * *
      * This defines a customer managed encryption key that will be used to
      * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -1901,9 +2089,12 @@ public interface BackupConfigOrBuilder extends
      */
     com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBuilder();
 
-    public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.BackupScopeCase getBackupScopeCase();
+    public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.BackupScopeCase
+        getBackupScopeCase();
   }
   /**
+   *
+   *
    * 
    * BackupConfig defines the configuration of Backups created via this
    * BackupPlan.
@@ -1911,30 +2102,29 @@ public interface BackupConfigOrBuilder extends
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.BackupPlan.BackupConfig}
    */
-  public static final class BackupConfig extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class BackupConfig extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.BackupPlan.BackupConfig)
       BackupConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use BackupConfig.newBuilder() to construct.
     private BackupConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private BackupConfig() {
-    }
+
+    private BackupConfig() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new BackupConfig();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private BackupConfig(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1953,69 +2143,80 @@ private BackupConfig(
             case 0:
               done = true;
               break;
-            case 8: {
-              backupScope_ = input.readBool();
-              backupScopeCase_ = 1;
-              break;
-            }
-            case 18: {
-              com.google.cloud.gkebackup.v1.Namespaces.Builder subBuilder = null;
-              if (backupScopeCase_ == 2) {
-                subBuilder = ((com.google.cloud.gkebackup.v1.Namespaces) backupScope_).toBuilder();
+            case 8:
+              {
+                backupScope_ = input.readBool();
+                backupScopeCase_ = 1;
+                break;
               }
-              backupScope_ =
-                  input.readMessage(com.google.cloud.gkebackup.v1.Namespaces.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.gkebackup.v1.Namespaces) backupScope_);
-                backupScope_ = subBuilder.buildPartial();
+            case 18:
+              {
+                com.google.cloud.gkebackup.v1.Namespaces.Builder subBuilder = null;
+                if (backupScopeCase_ == 2) {
+                  subBuilder =
+                      ((com.google.cloud.gkebackup.v1.Namespaces) backupScope_).toBuilder();
+                }
+                backupScope_ =
+                    input.readMessage(
+                        com.google.cloud.gkebackup.v1.Namespaces.parser(), extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom((com.google.cloud.gkebackup.v1.Namespaces) backupScope_);
+                  backupScope_ = subBuilder.buildPartial();
+                }
+                backupScopeCase_ = 2;
+                break;
               }
-              backupScopeCase_ = 2;
-              break;
-            }
-            case 26: {
-              com.google.cloud.gkebackup.v1.NamespacedNames.Builder subBuilder = null;
-              if (backupScopeCase_ == 3) {
-                subBuilder = ((com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_).toBuilder();
+            case 26:
+              {
+                com.google.cloud.gkebackup.v1.NamespacedNames.Builder subBuilder = null;
+                if (backupScopeCase_ == 3) {
+                  subBuilder =
+                      ((com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_).toBuilder();
+                }
+                backupScope_ =
+                    input.readMessage(
+                        com.google.cloud.gkebackup.v1.NamespacedNames.parser(), extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(
+                      (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_);
+                  backupScope_ = subBuilder.buildPartial();
+                }
+                backupScopeCase_ = 3;
+                break;
               }
-              backupScope_ =
-                  input.readMessage(com.google.cloud.gkebackup.v1.NamespacedNames.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_);
-                backupScope_ = subBuilder.buildPartial();
+            case 32:
+              {
+                includeVolumeData_ = input.readBool();
+                break;
               }
-              backupScopeCase_ = 3;
-              break;
-            }
-            case 32: {
-
-              includeVolumeData_ = input.readBool();
-              break;
-            }
-            case 40: {
-
-              includeSecrets_ = input.readBool();
-              break;
-            }
-            case 50: {
-              com.google.cloud.gkebackup.v1.EncryptionKey.Builder subBuilder = null;
-              if (encryptionKey_ != null) {
-                subBuilder = encryptionKey_.toBuilder();
+            case 40:
+              {
+                includeSecrets_ = input.readBool();
+                break;
               }
-              encryptionKey_ = input.readMessage(com.google.cloud.gkebackup.v1.EncryptionKey.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(encryptionKey_);
-                encryptionKey_ = subBuilder.buildPartial();
+            case 50:
+              {
+                com.google.cloud.gkebackup.v1.EncryptionKey.Builder subBuilder = null;
+                if (encryptionKey_ != null) {
+                  subBuilder = encryptionKey_.toBuilder();
+                }
+                encryptionKey_ =
+                    input.readMessage(
+                        com.google.cloud.gkebackup.v1.EncryptionKey.parser(), extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(encryptionKey_);
+                  encryptionKey_ = subBuilder.buildPartial();
+                }
+
+                break;
               }
-
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2023,36 +2224,41 @@ private BackupConfig(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkebackup.v1.BackupPlanProto
+          .internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.BackupPlanProto
+          .internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.class, com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder.class);
+              com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.class,
+              com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder.class);
     }
 
     private int backupScopeCase_ = 0;
     private java.lang.Object backupScope_;
+
     public enum BackupScopeCase
-        implements com.google.protobuf.Internal.EnumLite,
+        implements
+            com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       ALL_NAMESPACES(1),
       SELECTED_NAMESPACES(2),
       SELECTED_APPLICATIONS(3),
       BACKUPSCOPE_NOT_SET(0);
       private final int value;
+
       private BackupScopeCase(int value) {
         this.value = value;
       }
@@ -2068,31 +2274,38 @@ public static BackupScopeCase valueOf(int value) {
 
       public static BackupScopeCase forNumber(int value) {
         switch (value) {
-          case 1: return ALL_NAMESPACES;
-          case 2: return SELECTED_NAMESPACES;
-          case 3: return SELECTED_APPLICATIONS;
-          case 0: return BACKUPSCOPE_NOT_SET;
-          default: return null;
+          case 1:
+            return ALL_NAMESPACES;
+          case 2:
+            return SELECTED_NAMESPACES;
+          case 3:
+            return SELECTED_APPLICATIONS;
+          case 0:
+            return BACKUPSCOPE_NOT_SET;
+          default:
+            return null;
         }
       }
+
       public int getNumber() {
         return this.value;
       }
     };
 
-    public BackupScopeCase
-    getBackupScopeCase() {
-      return BackupScopeCase.forNumber(
-          backupScopeCase_);
+    public BackupScopeCase getBackupScopeCase() {
+      return BackupScopeCase.forNumber(backupScopeCase_);
     }
 
     public static final int ALL_NAMESPACES_FIELD_NUMBER = 1;
     /**
+     *
+     *
      * 
      * If True, include all namespaced resources
      * 
* * bool all_namespaces = 1; + * * @return Whether the allNamespaces field is set. */ @java.lang.Override @@ -2100,11 +2313,14 @@ public boolean hasAllNamespaces() { return backupScopeCase_ == 1; } /** + * + * *
      * If True, include all namespaced resources
      * 
* * bool all_namespaces = 1; + * * @return The allNamespaces. */ @java.lang.Override @@ -2117,11 +2333,14 @@ public boolean getAllNamespaces() { public static final int SELECTED_NAMESPACES_FIELD_NUMBER = 2; /** + * + * *
      * If set, include just the resources in the listed namespaces.
      * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2; + * * @return Whether the selectedNamespaces field is set. */ @java.lang.Override @@ -2129,21 +2348,26 @@ public boolean hasSelectedNamespaces() { return backupScopeCase_ == 2; } /** + * + * *
      * If set, include just the resources in the listed namespaces.
      * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2; + * * @return The selectedNamespaces. */ @java.lang.Override public com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces() { if (backupScopeCase_ == 2) { - return (com.google.cloud.gkebackup.v1.Namespaces) backupScope_; + return (com.google.cloud.gkebackup.v1.Namespaces) backupScope_; } return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); } /** + * + * *
      * If set, include just the resources in the listed namespaces.
      * 
@@ -2153,19 +2377,22 @@ public com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces() { @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOrBuilder() { if (backupScopeCase_ == 2) { - return (com.google.cloud.gkebackup.v1.Namespaces) backupScope_; + return (com.google.cloud.gkebackup.v1.Namespaces) backupScope_; } return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); } public static final int SELECTED_APPLICATIONS_FIELD_NUMBER = 3; /** + * + * *
      * If set, include just the resources referenced by the listed
      * ProtectedApplications.
      * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3; + * * @return Whether the selectedApplications field is set. */ @java.lang.Override @@ -2173,22 +2400,27 @@ public boolean hasSelectedApplications() { return backupScopeCase_ == 3; } /** + * + * *
      * If set, include just the resources referenced by the listed
      * ProtectedApplications.
      * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3; + * * @return The selectedApplications. */ @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications() { if (backupScopeCase_ == 3) { - return (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_; + return (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_; } return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); } /** + * + * *
      * If set, include just the resources referenced by the listed
      * ProtectedApplications.
@@ -2197,9 +2429,10 @@ public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications() {
      * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
      */
     @java.lang.Override
-    public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder() {
+    public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder
+        getSelectedApplicationsOrBuilder() {
       if (backupScopeCase_ == 3) {
-         return (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_;
+        return (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_;
       }
       return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance();
     }
@@ -2207,6 +2440,8 @@ public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplica
     public static final int INCLUDE_VOLUME_DATA_FIELD_NUMBER = 4;
     private boolean includeVolumeData_;
     /**
+     *
+     *
      * 
      * This flag specifies whether volume data should be backed up when
      * PVCs are included in the scope of a Backup.
@@ -2214,6 +2449,7 @@ public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplica
      * 
* * bool include_volume_data = 4; + * * @return The includeVolumeData. */ @java.lang.Override @@ -2224,6 +2460,8 @@ public boolean getIncludeVolumeData() { public static final int INCLUDE_SECRETS_FIELD_NUMBER = 5; private boolean includeSecrets_; /** + * + * *
      * This flag specifies whether Kubernetes Secret resources should be
      * included when they fall into the scope of Backups.
@@ -2231,6 +2469,7 @@ public boolean getIncludeVolumeData() {
      * 
* * bool include_secrets = 5; + * * @return The includeSecrets. */ @java.lang.Override @@ -2241,6 +2480,8 @@ public boolean getIncludeSecrets() { public static final int ENCRYPTION_KEY_FIELD_NUMBER = 6; private com.google.cloud.gkebackup.v1.EncryptionKey encryptionKey_; /** + * + * *
      * This defines a customer managed encryption key that will be used to
      * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -2249,6 +2490,7 @@ public boolean getIncludeSecrets() {
      * 
* * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6; + * * @return Whether the encryptionKey field is set. */ @java.lang.Override @@ -2256,6 +2498,8 @@ public boolean hasEncryptionKey() { return encryptionKey_ != null; } /** + * + * *
      * This defines a customer managed encryption key that will be used to
      * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -2264,13 +2508,18 @@ public boolean hasEncryptionKey() {
      * 
* * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6; + * * @return The encryptionKey. */ @java.lang.Override public com.google.cloud.gkebackup.v1.EncryptionKey getEncryptionKey() { - return encryptionKey_ == null ? com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() : encryptionKey_; + return encryptionKey_ == null + ? com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() + : encryptionKey_; } /** + * + * *
      * This defines a customer managed encryption key that will be used to
      * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -2286,6 +2535,7 @@ public com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBu
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -2297,11 +2547,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 (backupScopeCase_ == 1) {
-        output.writeBool(
-            1, (boolean)((java.lang.Boolean) backupScope_));
+        output.writeBool(1, (boolean) ((java.lang.Boolean) backupScope_));
       }
       if (backupScopeCase_ == 2) {
         output.writeMessage(2, (com.google.cloud.gkebackup.v1.Namespaces) backupScope_);
@@ -2328,29 +2576,28 @@ public int getSerializedSize() {
 
       size = 0;
       if (backupScopeCase_ == 1) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeBoolSize(
-              1, (boolean)((java.lang.Boolean) backupScope_));
+        size +=
+            com.google.protobuf.CodedOutputStream.computeBoolSize(
+                1, (boolean) ((java.lang.Boolean) backupScope_));
       }
       if (backupScopeCase_ == 2) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, (com.google.cloud.gkebackup.v1.Namespaces) backupScope_);
+        size +=
+            com.google.protobuf.CodedOutputStream.computeMessageSize(
+                2, (com.google.cloud.gkebackup.v1.Namespaces) backupScope_);
       }
       if (backupScopeCase_ == 3) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(3, (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_);
+        size +=
+            com.google.protobuf.CodedOutputStream.computeMessageSize(
+                3, (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_);
       }
       if (includeVolumeData_ != false) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeBoolSize(4, includeVolumeData_);
+        size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, includeVolumeData_);
       }
       if (includeSecrets_ != false) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeBoolSize(5, includeSecrets_);
+        size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, includeSecrets_);
       }
       if (encryptionKey_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(6, getEncryptionKey());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEncryptionKey());
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -2360,35 +2607,30 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
       if (!(obj instanceof com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig)) {
         return super.equals(obj);
       }
-      com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig other = (com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig) obj;
+      com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig other =
+          (com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig) obj;
 
-      if (getIncludeVolumeData()
-          != other.getIncludeVolumeData()) return false;
-      if (getIncludeSecrets()
-          != other.getIncludeSecrets()) return false;
+      if (getIncludeVolumeData() != other.getIncludeVolumeData()) return false;
+      if (getIncludeSecrets() != other.getIncludeSecrets()) return false;
       if (hasEncryptionKey() != other.hasEncryptionKey()) return false;
       if (hasEncryptionKey()) {
-        if (!getEncryptionKey()
-            .equals(other.getEncryptionKey())) return false;
+        if (!getEncryptionKey().equals(other.getEncryptionKey())) return false;
       }
       if (!getBackupScopeCase().equals(other.getBackupScopeCase())) return false;
       switch (backupScopeCase_) {
         case 1:
-          if (getAllNamespaces()
-              != other.getAllNamespaces()) return false;
+          if (getAllNamespaces() != other.getAllNamespaces()) return false;
           break;
         case 2:
-          if (!getSelectedNamespaces()
-              .equals(other.getSelectedNamespaces())) return false;
+          if (!getSelectedNamespaces().equals(other.getSelectedNamespaces())) return false;
           break;
         case 3:
-          if (!getSelectedApplications()
-              .equals(other.getSelectedApplications())) return false;
+          if (!getSelectedApplications().equals(other.getSelectedApplications())) return false;
           break;
         case 0:
         default:
@@ -2405,11 +2647,9 @@ public int hashCode() {
       int hash = 41;
       hash = (19 * hash) + getDescriptor().hashCode();
       hash = (37 * hash) + INCLUDE_VOLUME_DATA_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-          getIncludeVolumeData());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeVolumeData());
       hash = (37 * hash) + INCLUDE_SECRETS_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-          getIncludeSecrets());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeSecrets());
       if (hasEncryptionKey()) {
         hash = (37 * hash) + ENCRYPTION_KEY_FIELD_NUMBER;
         hash = (53 * hash) + getEncryptionKey().hashCode();
@@ -2417,8 +2657,7 @@ public int hashCode() {
       switch (backupScopeCase_) {
         case 1:
           hash = (37 * hash) + ALL_NAMESPACES_FIELD_NUMBER;
-          hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-              getAllNamespaces());
+          hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllNamespaces());
           break;
         case 2:
           hash = (37 * hash) + SELECTED_NAMESPACES_FIELD_NUMBER;
@@ -2437,87 +2676,94 @@ public int hashCode() {
     }
 
     public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
-    public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+
+    public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseDelimitedFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
+
     public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig prototype) {
+
+    public static Builder newBuilder(
+        com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -2527,6 +2773,8 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * BackupConfig defines the configuration of Backups created via this
      * BackupPlan.
@@ -2534,21 +2782,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.gkebackup.v1.BackupPlan.BackupConfig}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.BackupPlan.BackupConfig)
         com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.gkebackup.v1.BackupPlanProto
+            .internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_fieldAccessorTable
+        return com.google.cloud.gkebackup.v1.BackupPlanProto
+            .internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.class, com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder.class);
+                com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.class,
+                com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder.class);
       }
 
       // Construct using com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.newBuilder()
@@ -2556,16 +2807,15 @@ 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) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2585,9 +2835,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.gkebackup.v1.BackupPlanProto
+            .internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor;
       }
 
       @java.lang.Override
@@ -2606,7 +2856,8 @@ public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig build() {
 
       @java.lang.Override
       public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig buildPartial() {
-        com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig result = new com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig(this);
+        com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig result =
+            new com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig(this);
         if (backupScopeCase_ == 1) {
           result.backupScope_ = backupScope_;
         }
@@ -2640,38 +2891,41 @@ public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig 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) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig) {
-          return mergeFrom((com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig)other);
+          return mergeFrom((com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -2679,7 +2933,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig other) {
-        if (other == com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.getDefaultInstance()) return this;
+        if (other == com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.getDefaultInstance())
+          return this;
         if (other.getIncludeVolumeData() != false) {
           setIncludeVolumeData(other.getIncludeVolumeData());
         }
@@ -2690,21 +2945,25 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig o
           mergeEncryptionKey(other.getEncryptionKey());
         }
         switch (other.getBackupScopeCase()) {
-          case ALL_NAMESPACES: {
-            setAllNamespaces(other.getAllNamespaces());
-            break;
-          }
-          case SELECTED_NAMESPACES: {
-            mergeSelectedNamespaces(other.getSelectedNamespaces());
-            break;
-          }
-          case SELECTED_APPLICATIONS: {
-            mergeSelectedApplications(other.getSelectedApplications());
-            break;
-          }
-          case BACKUPSCOPE_NOT_SET: {
-            break;
-          }
+          case ALL_NAMESPACES:
+            {
+              setAllNamespaces(other.getAllNamespaces());
+              break;
+            }
+          case SELECTED_NAMESPACES:
+            {
+              mergeSelectedNamespaces(other.getSelectedNamespaces());
+              break;
+            }
+          case SELECTED_APPLICATIONS:
+            {
+              mergeSelectedApplications(other.getSelectedApplications());
+              break;
+            }
+          case BACKUPSCOPE_NOT_SET:
+            {
+              break;
+            }
         }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
@@ -2725,7 +2984,8 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -2734,12 +2994,12 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int backupScopeCase_ = 0;
       private java.lang.Object backupScope_;
-      public BackupScopeCase
-          getBackupScopeCase() {
-        return BackupScopeCase.forNumber(
-            backupScopeCase_);
+
+      public BackupScopeCase getBackupScopeCase() {
+        return BackupScopeCase.forNumber(backupScopeCase_);
       }
 
       public Builder clearBackupScope() {
@@ -2749,24 +3009,29 @@ public Builder clearBackupScope() {
         return this;
       }
 
-
       /**
+       *
+       *
        * 
        * If True, include all namespaced resources
        * 
* * bool all_namespaces = 1; + * * @return Whether the allNamespaces field is set. */ public boolean hasAllNamespaces() { return backupScopeCase_ == 1; } /** + * + * *
        * If True, include all namespaced resources
        * 
* * bool all_namespaces = 1; + * * @return The allNamespaces. */ public boolean getAllNamespaces() { @@ -2776,11 +3041,14 @@ public boolean getAllNamespaces() { return false; } /** + * + * *
        * If True, include all namespaced resources
        * 
* * bool all_namespaces = 1; + * * @param value The allNamespaces to set. * @return This builder for chaining. */ @@ -2791,11 +3059,14 @@ public Builder setAllNamespaces(boolean value) { return this; } /** + * + * *
        * If True, include all namespaced resources
        * 
* * bool all_namespaces = 1; + * * @return This builder for chaining. */ public Builder clearAllNamespaces() { @@ -2808,13 +3079,19 @@ public Builder clearAllNamespaces() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, com.google.cloud.gkebackup.v1.NamespacesOrBuilder> selectedNamespacesBuilder_; + com.google.cloud.gkebackup.v1.Namespaces, + com.google.cloud.gkebackup.v1.Namespaces.Builder, + com.google.cloud.gkebackup.v1.NamespacesOrBuilder> + selectedNamespacesBuilder_; /** + * + * *
        * If set, include just the resources in the listed namespaces.
        * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2; + * * @return Whether the selectedNamespaces field is set. */ @java.lang.Override @@ -2822,11 +3099,14 @@ public boolean hasSelectedNamespaces() { return backupScopeCase_ == 2; } /** + * + * *
        * If set, include just the resources in the listed namespaces.
        * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2; + * * @return The selectedNamespaces. */ @java.lang.Override @@ -2844,6 +3124,8 @@ public com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces() { } } /** + * + * *
        * If set, include just the resources in the listed namespaces.
        * 
@@ -2864,6 +3146,8 @@ public Builder setSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces va return this; } /** + * + * *
        * If set, include just the resources in the listed namespaces.
        * 
@@ -2882,6 +3166,8 @@ public Builder setSelectedNamespaces( return this; } /** + * + * *
        * If set, include just the resources in the listed namespaces.
        * 
@@ -2890,10 +3176,13 @@ public Builder setSelectedNamespaces( */ public Builder mergeSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces value) { if (selectedNamespacesBuilder_ == null) { - if (backupScopeCase_ == 2 && - backupScope_ != com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance()) { - backupScope_ = com.google.cloud.gkebackup.v1.Namespaces.newBuilder((com.google.cloud.gkebackup.v1.Namespaces) backupScope_) - .mergeFrom(value).buildPartial(); + if (backupScopeCase_ == 2 + && backupScope_ != com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance()) { + backupScope_ = + com.google.cloud.gkebackup.v1.Namespaces.newBuilder( + (com.google.cloud.gkebackup.v1.Namespaces) backupScope_) + .mergeFrom(value) + .buildPartial(); } else { backupScope_ = value; } @@ -2909,6 +3198,8 @@ public Builder mergeSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces return this; } /** + * + * *
        * If set, include just the resources in the listed namespaces.
        * 
@@ -2932,6 +3223,8 @@ public Builder clearSelectedNamespaces() { return this; } /** + * + * *
        * If set, include just the resources in the listed namespaces.
        * 
@@ -2942,6 +3235,8 @@ public com.google.cloud.gkebackup.v1.Namespaces.Builder getSelectedNamespacesBui return getSelectedNamespacesFieldBuilder().getBuilder(); } /** + * + * *
        * If set, include just the resources in the listed namespaces.
        * 
@@ -2960,6 +3255,8 @@ public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOr } } /** + * + * *
        * If set, include just the resources in the listed namespaces.
        * 
@@ -2967,33 +3264,45 @@ public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOr * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, com.google.cloud.gkebackup.v1.NamespacesOrBuilder> + com.google.cloud.gkebackup.v1.Namespaces, + com.google.cloud.gkebackup.v1.Namespaces.Builder, + com.google.cloud.gkebackup.v1.NamespacesOrBuilder> getSelectedNamespacesFieldBuilder() { if (selectedNamespacesBuilder_ == null) { if (!(backupScopeCase_ == 2)) { backupScope_ = com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); } - selectedNamespacesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, com.google.cloud.gkebackup.v1.NamespacesOrBuilder>( + selectedNamespacesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.Namespaces, + com.google.cloud.gkebackup.v1.Namespaces.Builder, + com.google.cloud.gkebackup.v1.NamespacesOrBuilder>( (com.google.cloud.gkebackup.v1.Namespaces) backupScope_, getParentForChildren(), isClean()); backupScope_ = null; } backupScopeCase_ = 2; - onChanged();; + onChanged(); + ; return selectedNamespacesBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedNames, com.google.cloud.gkebackup.v1.NamespacedNames.Builder, com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> selectedApplicationsBuilder_; + com.google.cloud.gkebackup.v1.NamespacedNames, + com.google.cloud.gkebackup.v1.NamespacedNames.Builder, + com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> + selectedApplicationsBuilder_; /** + * + * *
        * If set, include just the resources referenced by the listed
        * ProtectedApplications.
        * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3; + * * @return Whether the selectedApplications field is set. */ @java.lang.Override @@ -3001,12 +3310,15 @@ public boolean hasSelectedApplications() { return backupScopeCase_ == 3; } /** + * + * *
        * If set, include just the resources referenced by the listed
        * ProtectedApplications.
        * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3; + * * @return The selectedApplications. */ @java.lang.Override @@ -3024,6 +3336,8 @@ public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications() { } } /** + * + * *
        * If set, include just the resources referenced by the listed
        * ProtectedApplications.
@@ -3045,6 +3359,8 @@ public Builder setSelectedApplications(com.google.cloud.gkebackup.v1.NamespacedN
         return this;
       }
       /**
+       *
+       *
        * 
        * If set, include just the resources referenced by the listed
        * ProtectedApplications.
@@ -3064,6 +3380,8 @@ public Builder setSelectedApplications(
         return this;
       }
       /**
+       *
+       *
        * 
        * If set, include just the resources referenced by the listed
        * ProtectedApplications.
@@ -3071,12 +3389,17 @@ public Builder setSelectedApplications(
        *
        * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
        */
-      public Builder mergeSelectedApplications(com.google.cloud.gkebackup.v1.NamespacedNames value) {
+      public Builder mergeSelectedApplications(
+          com.google.cloud.gkebackup.v1.NamespacedNames value) {
         if (selectedApplicationsBuilder_ == null) {
-          if (backupScopeCase_ == 3 &&
-              backupScope_ != com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance()) {
-            backupScope_ = com.google.cloud.gkebackup.v1.NamespacedNames.newBuilder((com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_)
-                .mergeFrom(value).buildPartial();
+          if (backupScopeCase_ == 3
+              && backupScope_
+                  != com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance()) {
+            backupScope_ =
+                com.google.cloud.gkebackup.v1.NamespacedNames.newBuilder(
+                        (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_)
+                    .mergeFrom(value)
+                    .buildPartial();
           } else {
             backupScope_ = value;
           }
@@ -3092,6 +3415,8 @@ public Builder mergeSelectedApplications(com.google.cloud.gkebackup.v1.Namespace
         return this;
       }
       /**
+       *
+       *
        * 
        * If set, include just the resources referenced by the listed
        * ProtectedApplications.
@@ -3116,6 +3441,8 @@ public Builder clearSelectedApplications() {
         return this;
       }
       /**
+       *
+       *
        * 
        * If set, include just the resources referenced by the listed
        * ProtectedApplications.
@@ -3123,10 +3450,13 @@ public Builder clearSelectedApplications() {
        *
        * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
        */
-      public com.google.cloud.gkebackup.v1.NamespacedNames.Builder getSelectedApplicationsBuilder() {
+      public com.google.cloud.gkebackup.v1.NamespacedNames.Builder
+          getSelectedApplicationsBuilder() {
         return getSelectedApplicationsFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * If set, include just the resources referenced by the listed
        * ProtectedApplications.
@@ -3135,7 +3465,8 @@ public com.google.cloud.gkebackup.v1.NamespacedNames.Builder getSelectedApplicat
        * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
        */
       @java.lang.Override
-      public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder() {
+      public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder
+          getSelectedApplicationsOrBuilder() {
         if ((backupScopeCase_ == 3) && (selectedApplicationsBuilder_ != null)) {
           return selectedApplicationsBuilder_.getMessageOrBuilder();
         } else {
@@ -3146,6 +3477,8 @@ public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplica
         }
       }
       /**
+       *
+       *
        * 
        * If set, include just the resources referenced by the listed
        * ProtectedApplications.
@@ -3154,26 +3487,34 @@ public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplica
        * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.gkebackup.v1.NamespacedNames, com.google.cloud.gkebackup.v1.NamespacedNames.Builder, com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> 
+              com.google.cloud.gkebackup.v1.NamespacedNames,
+              com.google.cloud.gkebackup.v1.NamespacedNames.Builder,
+              com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>
           getSelectedApplicationsFieldBuilder() {
         if (selectedApplicationsBuilder_ == null) {
           if (!(backupScopeCase_ == 3)) {
             backupScope_ = com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance();
           }
-          selectedApplicationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.gkebackup.v1.NamespacedNames, com.google.cloud.gkebackup.v1.NamespacedNames.Builder, com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>(
+          selectedApplicationsBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.cloud.gkebackup.v1.NamespacedNames,
+                  com.google.cloud.gkebackup.v1.NamespacedNames.Builder,
+                  com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>(
                   (com.google.cloud.gkebackup.v1.NamespacedNames) backupScope_,
                   getParentForChildren(),
                   isClean());
           backupScope_ = null;
         }
         backupScopeCase_ = 3;
-        onChanged();;
+        onChanged();
+        ;
         return selectedApplicationsBuilder_;
       }
 
-      private boolean includeVolumeData_ ;
+      private boolean includeVolumeData_;
       /**
+       *
+       *
        * 
        * This flag specifies whether volume data should be backed up when
        * PVCs are included in the scope of a Backup.
@@ -3181,6 +3522,7 @@ public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplica
        * 
* * bool include_volume_data = 4; + * * @return The includeVolumeData. */ @java.lang.Override @@ -3188,6 +3530,8 @@ public boolean getIncludeVolumeData() { return includeVolumeData_; } /** + * + * *
        * This flag specifies whether volume data should be backed up when
        * PVCs are included in the scope of a Backup.
@@ -3195,16 +3539,19 @@ public boolean getIncludeVolumeData() {
        * 
* * bool include_volume_data = 4; + * * @param value The includeVolumeData to set. * @return This builder for chaining. */ public Builder setIncludeVolumeData(boolean value) { - + includeVolumeData_ = value; onChanged(); return this; } /** + * + * *
        * This flag specifies whether volume data should be backed up when
        * PVCs are included in the scope of a Backup.
@@ -3212,17 +3559,20 @@ public Builder setIncludeVolumeData(boolean value) {
        * 
* * bool include_volume_data = 4; + * * @return This builder for chaining. */ public Builder clearIncludeVolumeData() { - + includeVolumeData_ = false; onChanged(); return this; } - private boolean includeSecrets_ ; + private boolean includeSecrets_; /** + * + * *
        * This flag specifies whether Kubernetes Secret resources should be
        * included when they fall into the scope of Backups.
@@ -3230,6 +3580,7 @@ public Builder clearIncludeVolumeData() {
        * 
* * bool include_secrets = 5; + * * @return The includeSecrets. */ @java.lang.Override @@ -3237,6 +3588,8 @@ public boolean getIncludeSecrets() { return includeSecrets_; } /** + * + * *
        * This flag specifies whether Kubernetes Secret resources should be
        * included when they fall into the scope of Backups.
@@ -3244,16 +3597,19 @@ public boolean getIncludeSecrets() {
        * 
* * bool include_secrets = 5; + * * @param value The includeSecrets to set. * @return This builder for chaining. */ public Builder setIncludeSecrets(boolean value) { - + includeSecrets_ = value; onChanged(); return this; } /** + * + * *
        * This flag specifies whether Kubernetes Secret resources should be
        * included when they fall into the scope of Backups.
@@ -3261,10 +3617,11 @@ public Builder setIncludeSecrets(boolean value) {
        * 
* * bool include_secrets = 5; + * * @return This builder for chaining. */ public Builder clearIncludeSecrets() { - + includeSecrets_ = false; onChanged(); return this; @@ -3272,8 +3629,13 @@ public Builder clearIncludeSecrets() { private com.google.cloud.gkebackup.v1.EncryptionKey encryptionKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.EncryptionKey, com.google.cloud.gkebackup.v1.EncryptionKey.Builder, com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder> encryptionKeyBuilder_; + com.google.cloud.gkebackup.v1.EncryptionKey, + com.google.cloud.gkebackup.v1.EncryptionKey.Builder, + com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder> + encryptionKeyBuilder_; /** + * + * *
        * This defines a customer managed encryption key that will be used to
        * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -3282,12 +3644,15 @@ public Builder clearIncludeSecrets() {
        * 
* * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6; + * * @return Whether the encryptionKey field is set. */ public boolean hasEncryptionKey() { return encryptionKeyBuilder_ != null || encryptionKey_ != null; } /** + * + * *
        * This defines a customer managed encryption key that will be used to
        * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -3296,16 +3661,21 @@ public boolean hasEncryptionKey() {
        * 
* * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6; + * * @return The encryptionKey. */ public com.google.cloud.gkebackup.v1.EncryptionKey getEncryptionKey() { if (encryptionKeyBuilder_ == null) { - return encryptionKey_ == null ? com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() : encryptionKey_; + return encryptionKey_ == null + ? com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() + : encryptionKey_; } else { return encryptionKeyBuilder_.getMessage(); } } /** + * + * *
        * This defines a customer managed encryption key that will be used to
        * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -3329,6 +3699,8 @@ public Builder setEncryptionKey(com.google.cloud.gkebackup.v1.EncryptionKey valu
         return this;
       }
       /**
+       *
+       *
        * 
        * This defines a customer managed encryption key that will be used to
        * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -3350,6 +3722,8 @@ public Builder setEncryptionKey(
         return this;
       }
       /**
+       *
+       *
        * 
        * This defines a customer managed encryption key that will be used to
        * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -3363,7 +3737,9 @@ public Builder mergeEncryptionKey(com.google.cloud.gkebackup.v1.EncryptionKey va
         if (encryptionKeyBuilder_ == null) {
           if (encryptionKey_ != null) {
             encryptionKey_ =
-              com.google.cloud.gkebackup.v1.EncryptionKey.newBuilder(encryptionKey_).mergeFrom(value).buildPartial();
+                com.google.cloud.gkebackup.v1.EncryptionKey.newBuilder(encryptionKey_)
+                    .mergeFrom(value)
+                    .buildPartial();
           } else {
             encryptionKey_ = value;
           }
@@ -3375,6 +3751,8 @@ public Builder mergeEncryptionKey(com.google.cloud.gkebackup.v1.EncryptionKey va
         return this;
       }
       /**
+       *
+       *
        * 
        * This defines a customer managed encryption key that will be used to
        * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -3396,6 +3774,8 @@ public Builder clearEncryptionKey() {
         return this;
       }
       /**
+       *
+       *
        * 
        * This defines a customer managed encryption key that will be used to
        * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -3406,11 +3786,13 @@ public Builder clearEncryptionKey() {
        * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6;
        */
       public com.google.cloud.gkebackup.v1.EncryptionKey.Builder getEncryptionKeyBuilder() {
-        
+
         onChanged();
         return getEncryptionKeyFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * This defines a customer managed encryption key that will be used to
        * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -3424,11 +3806,14 @@ public com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBu
         if (encryptionKeyBuilder_ != null) {
           return encryptionKeyBuilder_.getMessageOrBuilder();
         } else {
-          return encryptionKey_ == null ?
-              com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance() : encryptionKey_;
+          return encryptionKey_ == null
+              ? com.google.cloud.gkebackup.v1.EncryptionKey.getDefaultInstance()
+              : encryptionKey_;
         }
       }
       /**
+       *
+       *
        * 
        * This defines a customer managed encryption key that will be used to
        * encrypt the "config" portion (the Kubernetes resources) of Backups
@@ -3439,18 +3824,22 @@ public com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBu
        * .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.gkebackup.v1.EncryptionKey, com.google.cloud.gkebackup.v1.EncryptionKey.Builder, com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder> 
+              com.google.cloud.gkebackup.v1.EncryptionKey,
+              com.google.cloud.gkebackup.v1.EncryptionKey.Builder,
+              com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder>
           getEncryptionKeyFieldBuilder() {
         if (encryptionKeyBuilder_ == null) {
-          encryptionKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.gkebackup.v1.EncryptionKey, com.google.cloud.gkebackup.v1.EncryptionKey.Builder, com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder>(
-                  getEncryptionKey(),
-                  getParentForChildren(),
-                  isClean());
+          encryptionKeyBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.cloud.gkebackup.v1.EncryptionKey,
+                  com.google.cloud.gkebackup.v1.EncryptionKey.Builder,
+                  com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder>(
+                  getEncryptionKey(), getParentForChildren(), isClean());
           encryptionKey_ = null;
         }
         return encryptionKeyBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -3463,12 +3852,12 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.BackupPlan.BackupConfig)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.BackupPlan.BackupConfig)
     private static final com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig DEFAULT_INSTANCE;
+
     static {
       DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig();
     }
@@ -3477,16 +3866,16 @@ public static com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig getDefaultIn
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public BackupConfig parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return new BackupConfig(input, extensionRegistry);
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public BackupConfig parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            return new BackupConfig(input, extensionRegistry);
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -3501,18 +3890,20 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. The full name of the BackupPlan resource.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -3521,30 +3912,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 full name of the BackupPlan resource.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* * 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 { @@ -3555,12 +3946,15 @@ public java.lang.String getName() { public static final int UID_FIELD_NUMBER = 2; private volatile java.lang.Object uid_; /** + * + * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -3569,30 +3963,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -3603,11 +3997,15 @@ public java.lang.String getUid() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The timestamp when this BackupPlan resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -3615,11 +4013,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The timestamp when this BackupPlan resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -3627,11 +4029,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The timestamp when this BackupPlan resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -3641,12 +4046,16 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The timestamp when this BackupPlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -3654,12 +4063,16 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The timestamp when this BackupPlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -3667,12 +4080,15 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The timestamp when this BackupPlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -3682,11 +4098,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** + * + * *
    * User specified descriptive string for this BackupPlan.
    * 
* * string description = 5; + * * @return The description. */ @java.lang.Override @@ -3695,29 +4114,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * User specified descriptive string for this BackupPlan.
    * 
* * string description = 5; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -3728,6 +4147,8 @@ public java.lang.String getDescription() { public static final int CLUSTER_FIELD_NUMBER = 6; private volatile java.lang.Object cluster_; /** + * + * *
    * Required. Immutable. The source cluster from which Backups will be created via
    * this BackupPlan.
@@ -3736,7 +4157,10 @@ public java.lang.String getDescription() {
    * - projects/*/zones/*/clusters/*
    * 
* - * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The cluster. */ @java.lang.Override @@ -3745,14 +4169,15 @@ public java.lang.String getCluster() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; } } /** + * + * *
    * Required. Immutable. The source cluster from which Backups will be created via
    * this BackupPlan.
@@ -3761,17 +4186,18 @@ public java.lang.String getCluster() {
    * - projects/*/zones/*/clusters/*
    * 
* - * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for cluster. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterBytes() { + public com.google.protobuf.ByteString getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cluster_ = b; return b; } else { @@ -3782,11 +4208,14 @@ public java.lang.String getCluster() { public static final int RETENTION_POLICY_FIELD_NUMBER = 7; private com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retentionPolicy_; /** + * + * *
    * RetentionPolicy governs lifecycle of Backups created under this plan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; + * * @return Whether the retentionPolicy field is set. */ @java.lang.Override @@ -3794,18 +4223,25 @@ public boolean hasRetentionPolicy() { return retentionPolicy_ != null; } /** + * + * *
    * RetentionPolicy governs lifecycle of Backups created under this plan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; + * * @return The retentionPolicy. */ @java.lang.Override public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy getRetentionPolicy() { - return retentionPolicy_ == null ? com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.getDefaultInstance() : retentionPolicy_; + return retentionPolicy_ == null + ? com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.getDefaultInstance() + : retentionPolicy_; } /** + * + * *
    * RetentionPolicy governs lifecycle of Backups created under this plan.
    * 
@@ -3813,29 +4249,29 @@ public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy getRetentionPoli * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; */ @java.lang.Override - public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder getRetentionPolicyOrBuilder() { + public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder + getRetentionPolicyOrBuilder() { return getRetentionPolicy(); } public static final int LABELS_FIELD_NUMBER = 8; + 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.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_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.cloud.gkebackup.v1.BackupPlanProto + .internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - 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_; } @@ -3844,28 +4280,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 8; */ - @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(); } /** + * + * *
    * A set of custom labels supplied by user.
    * 
@@ -3873,11 +4311,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * A set of custom labels supplied by user.
    * 
@@ -3885,16 +4324,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, 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; } /** + * + * *
    * A set of custom labels supplied by user.
    * 
@@ -3902,12 +4341,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 8; */ @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(); } @@ -3917,11 +4355,14 @@ public java.lang.String getLabelsOrThrow( public static final int BACKUP_SCHEDULE_FIELD_NUMBER = 9; private com.google.cloud.gkebackup.v1.BackupPlan.Schedule backupSchedule_; /** + * + * *
    * Defines a schedule for automatic Backup creation via this BackupPlan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9; + * * @return Whether the backupSchedule field is set. */ @java.lang.Override @@ -3929,18 +4370,25 @@ public boolean hasBackupSchedule() { return backupSchedule_ != null; } /** + * + * *
    * Defines a schedule for automatic Backup creation via this BackupPlan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9; + * * @return The backupSchedule. */ @java.lang.Override public com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule() { - return backupSchedule_ == null ? com.google.cloud.gkebackup.v1.BackupPlan.Schedule.getDefaultInstance() : backupSchedule_; + return backupSchedule_ == null + ? com.google.cloud.gkebackup.v1.BackupPlan.Schedule.getDefaultInstance() + : backupSchedule_; } /** + * + * *
    * Defines a schedule for automatic Backup creation via this BackupPlan.
    * 
@@ -3955,6 +4403,8 @@ public com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder getBackupSched public static final int ETAG_FIELD_NUMBER = 10; private volatile java.lang.Object etag_; /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a backup plan from overwriting each other.
@@ -3967,6 +4417,7 @@ public com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder getBackupSched
    * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ @java.lang.Override @@ -3975,14 +4426,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; } } /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a backup plan from overwriting each other.
@@ -3995,16 +4447,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -4015,6 +4466,8 @@ public java.lang.String getEtag() { public static final int DEACTIVATED_FIELD_NUMBER = 11; private boolean deactivated_; /** + * + * *
    * This flag indicates whether this BackupPlan has been deactivated.
    * Setting this field to True locks the BackupPlan such that no further
@@ -4025,6 +4478,7 @@ public java.lang.String getEtag() {
    * 
* * bool deactivated = 11; + * * @return The deactivated. */ @java.lang.Override @@ -4035,11 +4489,14 @@ public boolean getDeactivated() { public static final int BACKUP_CONFIG_FIELD_NUMBER = 12; private com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig backupConfig_; /** + * + * *
    * Defines the configuration of Backups created via this BackupPlan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12; + * * @return Whether the backupConfig field is set. */ @java.lang.Override @@ -4047,18 +4504,25 @@ public boolean hasBackupConfig() { return backupConfig_ != null; } /** + * + * *
    * Defines the configuration of Backups created via this BackupPlan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12; + * * @return The backupConfig. */ @java.lang.Override public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig getBackupConfig() { - return backupConfig_ == null ? com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.getDefaultInstance() : backupConfig_; + return backupConfig_ == null + ? com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.getDefaultInstance() + : backupConfig_; } /** + * + * *
    * Defines the configuration of Backups created via this BackupPlan.
    * 
@@ -4073,12 +4537,15 @@ public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder getBackupC public static final int PROTECTED_POD_COUNT_FIELD_NUMBER = 13; private int protectedPodCount_; /** + * + * *
    * Output only. The number of Kubernetes Pods backed up in the
    * last successful Backup created via this BackupPlan.
    * 
* * int32 protected_pod_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The protectedPodCount. */ @java.lang.Override @@ -4087,6 +4554,7 @@ public int getProtectedPodCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4098,8 +4566,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_); } @@ -4121,12 +4588,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (retentionPolicy_ != null) { output.writeMessage(7, getRetentionPolicy()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 8); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); if (backupSchedule_ != null) { output.writeMessage(9, getBackupSchedule()); } @@ -4158,12 +4621,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -4172,37 +4633,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, cluster_); } if (retentionPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getRetentionPolicy()); - } - 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(8, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getRetentionPolicy()); + } + 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(8, labels__); } if (backupSchedule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getBackupSchedule()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getBackupSchedule()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, etag_); } if (deactivated_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, deactivated_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, deactivated_); } if (backupConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getBackupConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getBackupConfig()); } if (protectedPodCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(13, protectedPodCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, protectedPodCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4212,54 +4668,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.cloud.gkebackup.v1.BackupPlan)) { return super.equals(obj); } com.google.cloud.gkebackup.v1.BackupPlan other = (com.google.cloud.gkebackup.v1.BackupPlan) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUid() - .equals(other.getUid())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) 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 (!getDescription() - .equals(other.getDescription())) return false; - if (!getCluster() - .equals(other.getCluster())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getCluster().equals(other.getCluster())) 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 (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasBackupSchedule() != other.hasBackupSchedule()) return false; if (hasBackupSchedule()) { - if (!getBackupSchedule() - .equals(other.getBackupSchedule())) return false; + if (!getBackupSchedule().equals(other.getBackupSchedule())) return false; } - if (!getEtag() - .equals(other.getEtag())) return false; - if (getDeactivated() - != other.getDeactivated()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getDeactivated() != other.getDeactivated()) return false; if (hasBackupConfig() != other.hasBackupConfig()) return false; if (hasBackupConfig()) { - if (!getBackupConfig() - .equals(other.getBackupConfig())) return false; + if (!getBackupConfig().equals(other.getBackupConfig())) return false; } - if (getProtectedPodCount() - != other.getProtectedPodCount()) return false; + if (getProtectedPodCount() != other.getProtectedPodCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4302,8 +4745,7 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + DEACTIVATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDeactivated()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeactivated()); if (hasBackupConfig()) { hash = (37 * hash) + BACKUP_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getBackupConfig().hashCode(); @@ -4315,140 +4757,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.BackupPlan parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.BackupPlan parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.BackupPlan parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.BackupPlan parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.BackupPlan prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Defines the configuration and scheduling for a "line" of Backups.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.BackupPlan} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.BackupPlan) com.google.cloud.gkebackup.v1.BackupPlanOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.BackupPlanProto + .internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 8: 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.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_fieldAccessorTable + return com.google.cloud.gkebackup.v1.BackupPlanProto + .internal_static_google_cloud_gkebackup_v1_BackupPlan_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.BackupPlan.class, com.google.cloud.gkebackup.v1.BackupPlan.Builder.class); + com.google.cloud.gkebackup.v1.BackupPlan.class, + com.google.cloud.gkebackup.v1.BackupPlan.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.BackupPlan.newBuilder() @@ -4456,16 +4905,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -4518,9 +4966,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.BackupPlanProto.internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.BackupPlanProto + .internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor; } @java.lang.Override @@ -4539,7 +4987,8 @@ public com.google.cloud.gkebackup.v1.BackupPlan build() { @java.lang.Override public com.google.cloud.gkebackup.v1.BackupPlan buildPartial() { - com.google.cloud.gkebackup.v1.BackupPlan result = new com.google.cloud.gkebackup.v1.BackupPlan(this); + com.google.cloud.gkebackup.v1.BackupPlan result = + new com.google.cloud.gkebackup.v1.BackupPlan(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.uid_ = uid_; @@ -4583,38 +5032,39 @@ public com.google.cloud.gkebackup.v1.BackupPlan 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.cloud.gkebackup.v1.BackupPlan) { - return mergeFrom((com.google.cloud.gkebackup.v1.BackupPlan)other); + return mergeFrom((com.google.cloud.gkebackup.v1.BackupPlan) other); } else { super.mergeFrom(other); return this; @@ -4648,8 +5098,7 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.BackupPlan other) { if (other.hasRetentionPolicy()) { mergeRetentionPolicy(other.getRetentionPolicy()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasBackupSchedule()) { mergeBackupSchedule(other.getBackupSchedule()); } @@ -4694,23 +5143,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The full name of the BackupPlan resource.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* * 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; @@ -4719,21 +5171,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The full name of the BackupPlan resource.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* * 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 { @@ -4741,57 +5194,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The full name of the BackupPlan resource.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The full name of the BackupPlan resource.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The full name of the BackupPlan resource.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -4799,19 +5259,21 @@ public Builder setNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -4820,21 +5282,22 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -4842,57 +5305,64 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { + public Builder setUid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { + public Builder setUidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); return this; @@ -4900,39 +5370,58 @@ public Builder setUidBytes( 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 timestamp when this BackupPlan resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The timestamp when this BackupPlan resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The timestamp when this BackupPlan resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -4948,14 +5437,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this BackupPlan resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -4966,17 +5458,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The timestamp when this BackupPlan resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -4988,11 +5484,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this BackupPlan resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -5006,48 +5506,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The timestamp when this BackupPlan resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp when this BackupPlan resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The timestamp when this BackupPlan resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -5055,42 +5571,61 @@ 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 timestamp when this BackupPlan resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The timestamp when this BackupPlan resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this BackupPlan resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -5106,15 +5641,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this BackupPlan resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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(); onChanged(); @@ -5125,18 +5663,22 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The timestamp when this BackupPlan resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -5148,12 +5690,16 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this BackupPlan resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -5167,51 +5713,67 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The timestamp when this BackupPlan resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp when this BackupPlan resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this BackupPlan resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp 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> 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_; @@ -5219,18 +5781,20 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object description_ = ""; /** + * + * *
      * User specified descriptive string for this BackupPlan.
      * 
* * string description = 5; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -5239,20 +5803,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User specified descriptive string for this BackupPlan.
      * 
* * string description = 5; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -5260,54 +5825,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User specified descriptive string for this BackupPlan.
      * 
* * string description = 5; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * User specified descriptive string for this BackupPlan.
      * 
* * string description = 5; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * User specified descriptive string for this BackupPlan.
      * 
* * string description = 5; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -5315,6 +5887,8 @@ public Builder setDescriptionBytes( private java.lang.Object cluster_ = ""; /** + * + * *
      * Required. Immutable. The source cluster from which Backups will be created via
      * this BackupPlan.
@@ -5323,14 +5897,16 @@ public Builder setDescriptionBytes(
      * - projects/*/zones/*/clusters/*
      * 
* - * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The cluster. */ public java.lang.String getCluster() { java.lang.Object ref = cluster_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; @@ -5339,6 +5915,8 @@ public java.lang.String getCluster() { } } /** + * + * *
      * Required. Immutable. The source cluster from which Backups will be created via
      * this BackupPlan.
@@ -5347,16 +5925,17 @@ public java.lang.String getCluster() {
      * - projects/*/zones/*/clusters/*
      * 
* - * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for cluster. */ - public com.google.protobuf.ByteString - getClusterBytes() { + public com.google.protobuf.ByteString getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cluster_ = b; return b; } else { @@ -5364,6 +5943,8 @@ public java.lang.String getCluster() { } } /** + * + * *
      * Required. Immutable. The source cluster from which Backups will be created via
      * this BackupPlan.
@@ -5372,21 +5953,25 @@ public java.lang.String getCluster() {
      * - projects/*/zones/*/clusters/*
      * 
* - * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The cluster to set. * @return This builder for chaining. */ - public Builder setCluster( - java.lang.String value) { + public Builder setCluster(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cluster_ = value; onChanged(); return this; } /** + * + * *
      * Required. Immutable. The source cluster from which Backups will be created via
      * this BackupPlan.
@@ -5395,16 +5980,21 @@ public Builder setCluster(
      * - projects/*/zones/*/clusters/*
      * 
* - * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearCluster() { - + cluster_ = getDefaultInstance().getCluster(); onChanged(); return this; } /** + * + * *
      * Required. Immutable. The source cluster from which Backups will be created via
      * this BackupPlan.
@@ -5413,17 +6003,19 @@ public Builder clearCluster() {
      * - projects/*/zones/*/clusters/*
      * 
* - * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for cluster to set. * @return This builder for chaining. */ - public Builder setClusterBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cluster_ = value; onChanged(); return this; @@ -5431,41 +6023,55 @@ public Builder setClusterBytes( private com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retentionPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy, com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder, com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder> retentionPolicyBuilder_; + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy, + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder, + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder> + retentionPolicyBuilder_; /** + * + * *
      * RetentionPolicy governs lifecycle of Backups created under this plan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; + * * @return Whether the retentionPolicy field is set. */ public boolean hasRetentionPolicy() { return retentionPolicyBuilder_ != null || retentionPolicy_ != null; } /** + * + * *
      * RetentionPolicy governs lifecycle of Backups created under this plan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; + * * @return The retentionPolicy. */ public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy getRetentionPolicy() { if (retentionPolicyBuilder_ == null) { - return retentionPolicy_ == null ? com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.getDefaultInstance() : retentionPolicy_; + return retentionPolicy_ == null + ? com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.getDefaultInstance() + : retentionPolicy_; } else { return retentionPolicyBuilder_.getMessage(); } } /** + * + * *
      * RetentionPolicy governs lifecycle of Backups created under this plan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; */ - public Builder setRetentionPolicy(com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy value) { + public Builder setRetentionPolicy( + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy value) { if (retentionPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5479,6 +6085,8 @@ public Builder setRetentionPolicy(com.google.cloud.gkebackup.v1.BackupPlan.Reten return this; } /** + * + * *
      * RetentionPolicy governs lifecycle of Backups created under this plan.
      * 
@@ -5497,17 +6105,22 @@ public Builder setRetentionPolicy( return this; } /** + * + * *
      * RetentionPolicy governs lifecycle of Backups created under this plan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; */ - public Builder mergeRetentionPolicy(com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy value) { + public Builder mergeRetentionPolicy( + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy value) { if (retentionPolicyBuilder_ == null) { if (retentionPolicy_ != null) { retentionPolicy_ = - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.newBuilder(retentionPolicy_).mergeFrom(value).buildPartial(); + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.newBuilder(retentionPolicy_) + .mergeFrom(value) + .buildPartial(); } else { retentionPolicy_ = value; } @@ -5519,6 +6132,8 @@ public Builder mergeRetentionPolicy(com.google.cloud.gkebackup.v1.BackupPlan.Ret return this; } /** + * + * *
      * RetentionPolicy governs lifecycle of Backups created under this plan.
      * 
@@ -5537,33 +6152,42 @@ public Builder clearRetentionPolicy() { return this; } /** + * + * *
      * RetentionPolicy governs lifecycle of Backups created under this plan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; */ - public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder getRetentionPolicyBuilder() { - + public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder + getRetentionPolicyBuilder() { + onChanged(); return getRetentionPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * RetentionPolicy governs lifecycle of Backups created under this plan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; */ - public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder getRetentionPolicyOrBuilder() { + public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder + getRetentionPolicyOrBuilder() { if (retentionPolicyBuilder_ != null) { return retentionPolicyBuilder_.getMessageOrBuilder(); } else { - return retentionPolicy_ == null ? - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.getDefaultInstance() : retentionPolicy_; + return retentionPolicy_ == null + ? com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.getDefaultInstance() + : retentionPolicy_; } } /** + * + * *
      * RetentionPolicy governs lifecycle of Backups created under this plan.
      * 
@@ -5571,35 +6195,37 @@ public com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder getRete * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy, com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder, com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder> + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy, + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder, + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder> getRetentionPolicyFieldBuilder() { if (retentionPolicyBuilder_ == null) { - retentionPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy, com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder, com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder>( - getRetentionPolicy(), - getParentForChildren(), - isClean()); + retentionPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy, + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.Builder, + com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder>( + getRetentionPolicy(), getParentForChildren(), isClean()); retentionPolicy_ = null; } return retentionPolicyBuilder_; } - 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -5611,28 +6237,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 8; */ - @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(); } /** + * + * *
      * A set of custom labels supplied by user.
      * 
@@ -5640,11 +6268,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * A set of custom labels supplied by user.
      * 
@@ -5652,16 +6281,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, 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; } /** + * + * *
      * A set of custom labels supplied by user.
      * 
@@ -5669,12 +6299,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 8; */ @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(); } @@ -5682,97 +6311,107 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 8; */ - - 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() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 8; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 8; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private com.google.cloud.gkebackup.v1.BackupPlan.Schedule backupSchedule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan.Schedule, com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder, com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder> backupScheduleBuilder_; + com.google.cloud.gkebackup.v1.BackupPlan.Schedule, + com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder, + com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder> + backupScheduleBuilder_; /** + * + * *
      * Defines a schedule for automatic Backup creation via this BackupPlan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9; + * * @return Whether the backupSchedule field is set. */ public boolean hasBackupSchedule() { return backupScheduleBuilder_ != null || backupSchedule_ != null; } /** + * + * *
      * Defines a schedule for automatic Backup creation via this BackupPlan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9; + * * @return The backupSchedule. */ public com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule() { if (backupScheduleBuilder_ == null) { - return backupSchedule_ == null ? com.google.cloud.gkebackup.v1.BackupPlan.Schedule.getDefaultInstance() : backupSchedule_; + return backupSchedule_ == null + ? com.google.cloud.gkebackup.v1.BackupPlan.Schedule.getDefaultInstance() + : backupSchedule_; } else { return backupScheduleBuilder_.getMessage(); } } /** + * + * *
      * Defines a schedule for automatic Backup creation via this BackupPlan.
      * 
@@ -5793,6 +6432,8 @@ public Builder setBackupSchedule(com.google.cloud.gkebackup.v1.BackupPlan.Schedu return this; } /** + * + * *
      * Defines a schedule for automatic Backup creation via this BackupPlan.
      * 
@@ -5811,6 +6452,8 @@ public Builder setBackupSchedule( return this; } /** + * + * *
      * Defines a schedule for automatic Backup creation via this BackupPlan.
      * 
@@ -5821,7 +6464,9 @@ public Builder mergeBackupSchedule(com.google.cloud.gkebackup.v1.BackupPlan.Sche if (backupScheduleBuilder_ == null) { if (backupSchedule_ != null) { backupSchedule_ = - com.google.cloud.gkebackup.v1.BackupPlan.Schedule.newBuilder(backupSchedule_).mergeFrom(value).buildPartial(); + com.google.cloud.gkebackup.v1.BackupPlan.Schedule.newBuilder(backupSchedule_) + .mergeFrom(value) + .buildPartial(); } else { backupSchedule_ = value; } @@ -5833,6 +6478,8 @@ public Builder mergeBackupSchedule(com.google.cloud.gkebackup.v1.BackupPlan.Sche return this; } /** + * + * *
      * Defines a schedule for automatic Backup creation via this BackupPlan.
      * 
@@ -5851,6 +6498,8 @@ public Builder clearBackupSchedule() { return this; } /** + * + * *
      * Defines a schedule for automatic Backup creation via this BackupPlan.
      * 
@@ -5858,11 +6507,13 @@ public Builder clearBackupSchedule() { * .google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9; */ public com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder getBackupScheduleBuilder() { - + onChanged(); return getBackupScheduleFieldBuilder().getBuilder(); } /** + * + * *
      * Defines a schedule for automatic Backup creation via this BackupPlan.
      * 
@@ -5873,11 +6524,14 @@ public com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder getBackupSched if (backupScheduleBuilder_ != null) { return backupScheduleBuilder_.getMessageOrBuilder(); } else { - return backupSchedule_ == null ? - com.google.cloud.gkebackup.v1.BackupPlan.Schedule.getDefaultInstance() : backupSchedule_; + return backupSchedule_ == null + ? com.google.cloud.gkebackup.v1.BackupPlan.Schedule.getDefaultInstance() + : backupSchedule_; } } /** + * + * *
      * Defines a schedule for automatic Backup creation via this BackupPlan.
      * 
@@ -5885,14 +6539,17 @@ public com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder getBackupSched * .google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan.Schedule, com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder, com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder> + com.google.cloud.gkebackup.v1.BackupPlan.Schedule, + com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder, + com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder> getBackupScheduleFieldBuilder() { if (backupScheduleBuilder_ == null) { - backupScheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan.Schedule, com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder, com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder>( - getBackupSchedule(), - getParentForChildren(), - isClean()); + backupScheduleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.BackupPlan.Schedule, + com.google.cloud.gkebackup.v1.BackupPlan.Schedule.Builder, + com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder>( + getBackupSchedule(), getParentForChildren(), isClean()); backupSchedule_ = null; } return backupScheduleBuilder_; @@ -5900,6 +6557,8 @@ public com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder getBackupSched private java.lang.Object etag_ = ""; /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a backup plan from overwriting each other.
@@ -5912,13 +6571,13 @@ public com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder getBackupSched
      * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -5927,6 +6586,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a backup plan from overwriting each other.
@@ -5939,15 +6600,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -5955,6 +6615,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a backup plan from overwriting each other.
@@ -5967,20 +6629,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a backup plan from overwriting each other.
@@ -5993,15 +6657,18 @@ public Builder setEtag(
      * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a backup plan from overwriting each other.
@@ -6014,23 +6681,25 @@ public Builder clearEtag() {
      * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - private boolean deactivated_ ; + private boolean deactivated_; /** + * + * *
      * This flag indicates whether this BackupPlan has been deactivated.
      * Setting this field to True locks the BackupPlan such that no further
@@ -6041,6 +6710,7 @@ public Builder setEtagBytes(
      * 
* * bool deactivated = 11; + * * @return The deactivated. */ @java.lang.Override @@ -6048,6 +6718,8 @@ public boolean getDeactivated() { return deactivated_; } /** + * + * *
      * This flag indicates whether this BackupPlan has been deactivated.
      * Setting this field to True locks the BackupPlan such that no further
@@ -6058,16 +6730,19 @@ public boolean getDeactivated() {
      * 
* * bool deactivated = 11; + * * @param value The deactivated to set. * @return This builder for chaining. */ public Builder setDeactivated(boolean value) { - + deactivated_ = value; onChanged(); return this; } /** + * + * *
      * This flag indicates whether this BackupPlan has been deactivated.
      * Setting this field to True locks the BackupPlan such that no further
@@ -6078,10 +6753,11 @@ public Builder setDeactivated(boolean value) {
      * 
* * bool deactivated = 11; + * * @return This builder for chaining. */ public Builder clearDeactivated() { - + deactivated_ = false; onChanged(); return this; @@ -6089,34 +6765,47 @@ public Builder clearDeactivated() { private com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig backupConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig, com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder, com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder> backupConfigBuilder_; + com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig, + com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder, + com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder> + backupConfigBuilder_; /** + * + * *
      * Defines the configuration of Backups created via this BackupPlan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12; + * * @return Whether the backupConfig field is set. */ public boolean hasBackupConfig() { return backupConfigBuilder_ != null || backupConfig_ != null; } /** + * + * *
      * Defines the configuration of Backups created via this BackupPlan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12; + * * @return The backupConfig. */ public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig getBackupConfig() { if (backupConfigBuilder_ == null) { - return backupConfig_ == null ? com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.getDefaultInstance() : backupConfig_; + return backupConfig_ == null + ? com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.getDefaultInstance() + : backupConfig_; } else { return backupConfigBuilder_.getMessage(); } } /** + * + * *
      * Defines the configuration of Backups created via this BackupPlan.
      * 
@@ -6137,6 +6826,8 @@ public Builder setBackupConfig(com.google.cloud.gkebackup.v1.BackupPlan.BackupCo return this; } /** + * + * *
      * Defines the configuration of Backups created via this BackupPlan.
      * 
@@ -6155,6 +6846,8 @@ public Builder setBackupConfig( return this; } /** + * + * *
      * Defines the configuration of Backups created via this BackupPlan.
      * 
@@ -6165,7 +6858,9 @@ public Builder mergeBackupConfig(com.google.cloud.gkebackup.v1.BackupPlan.Backup if (backupConfigBuilder_ == null) { if (backupConfig_ != null) { backupConfig_ = - com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.newBuilder(backupConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.newBuilder(backupConfig_) + .mergeFrom(value) + .buildPartial(); } else { backupConfig_ = value; } @@ -6177,6 +6872,8 @@ public Builder mergeBackupConfig(com.google.cloud.gkebackup.v1.BackupPlan.Backup return this; } /** + * + * *
      * Defines the configuration of Backups created via this BackupPlan.
      * 
@@ -6195,6 +6892,8 @@ public Builder clearBackupConfig() { return this; } /** + * + * *
      * Defines the configuration of Backups created via this BackupPlan.
      * 
@@ -6202,26 +6901,32 @@ public Builder clearBackupConfig() { * .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12; */ public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder getBackupConfigBuilder() { - + onChanged(); return getBackupConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Defines the configuration of Backups created via this BackupPlan.
      * 
* * .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12; */ - public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder getBackupConfigOrBuilder() { + public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder + getBackupConfigOrBuilder() { if (backupConfigBuilder_ != null) { return backupConfigBuilder_.getMessageOrBuilder(); } else { - return backupConfig_ == null ? - com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.getDefaultInstance() : backupConfig_; + return backupConfig_ == null + ? com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.getDefaultInstance() + : backupConfig_; } } /** + * + * *
      * Defines the configuration of Backups created via this BackupPlan.
      * 
@@ -6229,27 +6934,33 @@ public com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder getBackupC * .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig, com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder, com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder> + com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig, + com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder, + com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder> getBackupConfigFieldBuilder() { if (backupConfigBuilder_ == null) { - backupConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig, com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder, com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder>( - getBackupConfig(), - getParentForChildren(), - isClean()); + backupConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig, + com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.Builder, + com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder>( + getBackupConfig(), getParentForChildren(), isClean()); backupConfig_ = null; } return backupConfigBuilder_; } - private int protectedPodCount_ ; + private int protectedPodCount_; /** + * + * *
      * Output only. The number of Kubernetes Pods backed up in the
      * last successful Backup created via this BackupPlan.
      * 
* * int32 protected_pod_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The protectedPodCount. */ @java.lang.Override @@ -6257,39 +6968,45 @@ public int getProtectedPodCount() { return protectedPodCount_; } /** + * + * *
      * Output only. The number of Kubernetes Pods backed up in the
      * last successful Backup created via this BackupPlan.
      * 
* * int32 protected_pod_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The protectedPodCount to set. * @return This builder for chaining. */ public Builder setProtectedPodCount(int value) { - + protectedPodCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The number of Kubernetes Pods backed up in the
      * last successful Backup created via this BackupPlan.
      * 
* * int32 protected_pod_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearProtectedPodCount() { - + protectedPodCount_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6299,12 +7016,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.BackupPlan) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.BackupPlan) private static final com.google.cloud.gkebackup.v1.BackupPlan DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.BackupPlan(); } @@ -6313,16 +7030,16 @@ public static com.google.cloud.gkebackup.v1.BackupPlan getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BackupPlan parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BackupPlan(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackupPlan parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BackupPlan(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6337,6 +7054,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.BackupPlan getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanName.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanName.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanOrBuilder.java similarity index 80% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanOrBuilder.java index 4573421..6dc8d46 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanOrBuilder.java @@ -1,134 +1,189 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/backup_plan.proto package com.google.cloud.gkebackup.v1; -public interface BackupPlanOrBuilder extends +public interface BackupPlanOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.BackupPlan) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The full name of the BackupPlan resource.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The full name of the BackupPlan resource.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* * 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. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. The timestamp when this BackupPlan resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The timestamp when this BackupPlan resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The timestamp when this BackupPlan resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The timestamp when this BackupPlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The timestamp when this BackupPlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The timestamp when this BackupPlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * User specified descriptive string for this BackupPlan.
    * 
* * string description = 5; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * User specified descriptive string for this BackupPlan.
    * 
* * string description = 5; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Required. Immutable. The source cluster from which Backups will be created via
    * this BackupPlan.
@@ -137,11 +192,16 @@ public interface BackupPlanOrBuilder extends
    * - projects/*/zones/*/clusters/*
    * 
* - * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The cluster. */ java.lang.String getCluster(); /** + * + * *
    * Required. Immutable. The source cluster from which Backups will be created via
    * this BackupPlan.
@@ -150,31 +210,41 @@ public interface BackupPlanOrBuilder extends
    * - projects/*/zones/*/clusters/*
    * 
* - * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for cluster. */ - com.google.protobuf.ByteString - getClusterBytes(); + com.google.protobuf.ByteString getClusterBytes(); /** + * + * *
    * RetentionPolicy governs lifecycle of Backups created under this plan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; + * * @return Whether the retentionPolicy field is set. */ boolean hasRetentionPolicy(); /** + * + * *
    * RetentionPolicy governs lifecycle of Backups created under this plan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7; + * * @return The retentionPolicy. */ com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy getRetentionPolicy(); /** + * + * *
    * RetentionPolicy governs lifecycle of Backups created under this plan.
    * 
@@ -184,6 +254,8 @@ public interface BackupPlanOrBuilder extends com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder getRetentionPolicyOrBuilder(); /** + * + * *
    * A set of custom labels supplied by user.
    * 
@@ -192,30 +264,31 @@ public interface BackupPlanOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 8; */ - 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(); /** + * + * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 8; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * A set of custom labels supplied by user.
    * 
@@ -224,40 +297,48 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 8; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Defines a schedule for automatic Backup creation via this BackupPlan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9; + * * @return Whether the backupSchedule field is set. */ boolean hasBackupSchedule(); /** + * + * *
    * Defines a schedule for automatic Backup creation via this BackupPlan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9; + * * @return The backupSchedule. */ com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule(); /** + * + * *
    * Defines a schedule for automatic Backup creation via this BackupPlan.
    * 
@@ -267,6 +348,8 @@ java.lang.String getLabelsOrThrow( com.google.cloud.gkebackup.v1.BackupPlan.ScheduleOrBuilder getBackupScheduleOrBuilder(); /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a backup plan from overwriting each other.
@@ -279,10 +362,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a backup plan from overwriting each other.
@@ -295,12 +381,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * This flag indicates whether this BackupPlan has been deactivated.
    * Setting this field to True locks the BackupPlan such that no further
@@ -311,29 +399,38 @@ java.lang.String getLabelsOrThrow(
    * 
* * bool deactivated = 11; + * * @return The deactivated. */ boolean getDeactivated(); /** + * + * *
    * Defines the configuration of Backups created via this BackupPlan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12; + * * @return Whether the backupConfig field is set. */ boolean hasBackupConfig(); /** + * + * *
    * Defines the configuration of Backups created via this BackupPlan.
    * 
* * .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12; + * * @return The backupConfig. */ com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig getBackupConfig(); /** + * + * *
    * Defines the configuration of Backups created via this BackupPlan.
    * 
@@ -343,12 +440,15 @@ java.lang.String getLabelsOrThrow( com.google.cloud.gkebackup.v1.BackupPlan.BackupConfigOrBuilder getBackupConfigOrBuilder(); /** + * + * *
    * Output only. The number of Kubernetes Pods backed up in the
    * last successful Backup created via this BackupPlan.
    * 
* * int32 protected_pod_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The protectedPodCount. */ int getProtectedPodCount(); diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanProto.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanProto.java new file mode 100644 index 0000000..d09f525 --- /dev/null +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanProto.java @@ -0,0 +1,183 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/backup_plan.proto + +package com.google.cloud.gkebackup.v1; + +public final class BackupPlanProto { + private BackupPlanProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_BackupPlan_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/gkebackup/v1/backup_plan." + + "proto\022\031google.cloud.gkebackup.v1\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\032&google/cloud/gkebackup/v1/" + + "common.proto\032\037google/protobuf/timestamp." + + "proto\"\327\t\n\nBackupPlan\022\021\n\004name\030\001 \001(\tB\003\340A\003\022" + + "\020\n\003uid\030\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022\023\n\013description\030\005 \001(\t\022<\n\007cluster\030\006 " + + "\001(\tB+\340A\005\340A\002\372A\"\n container.googleapis.com" + + "/Cluster\022O\n\020retention_policy\030\007 \001(\01325.goo" + + "gle.cloud.gkebackup.v1.BackupPlan.Retent" + + "ionPolicy\022A\n\006labels\030\010 \003(\01321.google.cloud" + + ".gkebackup.v1.BackupPlan.LabelsEntry\022G\n\017" + + "backup_schedule\030\t \001(\0132..google.cloud.gke" + + "backup.v1.BackupPlan.Schedule\022\021\n\004etag\030\n " + + "\001(\tB\003\340A\003\022\023\n\013deactivated\030\013 \001(\010\022I\n\rbackup_" + + "config\030\014 \001(\01322.google.cloud.gkebackup.v1" + + ".BackupPlan.BackupConfig\022 \n\023protected_po" + + "d_count\030\r \001(\005B\003\340A\003\032^\n\017RetentionPolicy\022\037\n" + + "\027backup_delete_lock_days\030\001 \001(\005\022\032\n\022backup" + + "_retain_days\030\002 \001(\005\022\016\n\006locked\030\003 \001(\010\0321\n\010Sc" + + "hedule\022\025\n\rcron_schedule\030\001 \001(\t\022\016\n\006paused\030" + + "\002 \001(\010\032\303\002\n\014BackupConfig\022\030\n\016all_namespaces" + + "\030\001 \001(\010H\000\022D\n\023selected_namespaces\030\002 \001(\0132%." + + "google.cloud.gkebackup.v1.NamespacesH\000\022K" + + "\n\025selected_applications\030\003 \001(\0132*.google.c" + + "loud.gkebackup.v1.NamespacedNamesH\000\022\033\n\023i" + + "nclude_volume_data\030\004 \001(\010\022\027\n\017include_secr" + + "ets\030\005 \001(\010\022@\n\016encryption_key\030\006 \001(\0132(.goog" + + "le.cloud.gkebackup.v1.EncryptionKeyB\016\n\014b" + + "ackup_scope\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001:k\352Ah\n#gkebackup.googl" + + "eapis.com/BackupPlan\022Aprojects/{project}" + + "/locations/{location}/backupPlans/{backu" + + "p_plan}B\315\001\n\035com.google.cloud.gkebackup.v" + + "1B\017BackupPlanProtoP\001ZBgoogle.golang.org/" + + "genproto/googleapis/cloud/gkebackup/v1;g" + + "kebackup\252\002\031Google.Cloud.GkeBackup.V1\312\002\031G" + + "oogle\\Cloud\\GkeBackup\\V1\352\002\034Google::Cloud" + + "::GkeBackup::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkebackup_v1_BackupPlan_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "CreateTime", + "UpdateTime", + "Description", + "Cluster", + "RetentionPolicy", + "Labels", + "BackupSchedule", + "Etag", + "Deactivated", + "BackupConfig", + "ProtectedPodCount", + }); + internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor = + internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_BackupPlan_RetentionPolicy_descriptor, + new java.lang.String[] { + "BackupDeleteLockDays", "BackupRetainDays", "Locked", + }); + internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor = + internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_BackupPlan_Schedule_descriptor, + new java.lang.String[] { + "CronSchedule", "Paused", + }); + internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor = + internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_BackupPlan_BackupConfig_descriptor, + new java.lang.String[] { + "AllNamespaces", + "SelectedNamespaces", + "SelectedApplications", + "IncludeVolumeData", + "IncludeSecrets", + "EncryptionKey", + "BackupScope", + }); + internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_descriptor = + internal_static_google_cloud_gkebackup_v1_BackupPlan_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupProto.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupProto.java new file mode 100644 index 0000000..10a9bcd --- /dev/null +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupProto.java @@ -0,0 +1,198 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/backup.proto + +package com.google.cloud.gkebackup.v1; + +public final class BackupProto { + private BackupProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_Backup_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_Backup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n&google/cloud/gkebackup/v1/backup.proto" + + "\022\031google.cloud.gkebackup.v1\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032&google/cloud/gkebackup/v1/commo" + + "n.proto\032\037google/protobuf/timestamp.proto" + + "\"\273\r\n\006Backup\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 " + + "\001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\004 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006" + + "manual\030\005 \001(\010B\003\340A\003\022=\n\006labels\030\006 \003(\0132-.goog" + + "le.cloud.gkebackup.v1.Backup.LabelsEntry" + + "\022\030\n\020delete_lock_days\030\007 \001(\005\022@\n\027delete_loc" + + "k_expire_time\030\010 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\022\023\n\013retain_days\030\t \001(\005\022;\n\022ret" + + "ain_expire_time\030\n \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022E\n\016encryption_key\030\013 \001(\0132(" + + ".google.cloud.gkebackup.v1.EncryptionKey" + + "B\003\340A\003\022\035\n\016all_namespaces\030\014 \001(\010B\003\340A\003H\000\022I\n\023" + + "selected_namespaces\030\r \001(\0132%.google.cloud" + + ".gkebackup.v1.NamespacesB\003\340A\003H\000\022P\n\025selec" + + "ted_applications\030\016 \001(\0132*.google.cloud.gk" + + "ebackup.v1.NamespacedNamesB\003\340A\003H\000\022!\n\024con" + + "tains_volume_data\030\017 \001(\010B\003\340A\003\022\035\n\020contains" + + "_secrets\030\020 \001(\010B\003\340A\003\022P\n\020cluster_metadata\030" + + "\021 \001(\01321.google.cloud.gkebackup.v1.Backup" + + ".ClusterMetadataB\003\340A\003\022;\n\005state\030\022 \001(\0162\'.g" + + "oogle.cloud.gkebackup.v1.Backup.StateB\003\340" + + "A\003\022\031\n\014state_reason\030\023 \001(\tB\003\340A\003\0226\n\rcomplet" + + "e_time\030\024 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022\033\n\016resource_count\030\025 \001(\005B\003\340A\003\022\031\n\014vo" + + "lume_count\030\026 \001(\005B\003\340A\003\022\027\n\nsize_bytes\030\027 \001(" + + "\003B\003\340A\003\022\021\n\004etag\030\030 \001(\tB\003\340A\003\022\023\n\013description" + + "\030\031 \001(\t\022\026\n\tpod_count\030\032 \001(\005B\003\340A\003\022%\n\030config" + + "_backup_size_bytes\030\033 \001(\003B\003\340A\003\032\235\002\n\017Cluste" + + "rMetadata\022\017\n\007cluster\030\001 \001(\t\022\023\n\013k8s_versio" + + "n\030\002 \001(\t\022e\n\023backup_crd_versions\030\003 \003(\0132H.g" + + "oogle.cloud.gkebackup.v1.Backup.ClusterM" + + "etadata.BackupCrdVersionsEntry\022\025\n\013gke_ve" + + "rsion\030\004 \001(\tH\000\022\030\n\016anthos_version\030\005 \001(\tH\000\032" + + "8\n\026BackupCrdVersionsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001B\022\n\020platform_version\032-\n" + + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"f\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010" + + "CREATING\020\001\022\017\n\013IN_PROGRESS\020\002\022\r\n\tSUCCEEDED" + + "\020\003\022\n\n\006FAILED\020\004\022\014\n\010DELETING\020\005:x\352Au\n\037gkeba" + + "ckup.googleapis.com/Backup\022Rprojects/{pr" + + "oject}/locations/{location}/backupPlans/" + + "{backup_plan}/backups/{backup}B\016\n\014backup" + + "_scopeB\311\001\n\035com.google.cloud.gkebackup.v1" + + "B\013BackupProtoP\001ZBgoogle.golang.org/genpr" + + "oto/googleapis/cloud/gkebackup/v1;gkebac" + + "kup\252\002\031Google.Cloud.GkeBackup.V1\312\002\031Google" + + "\\Cloud\\GkeBackup\\V1\352\002\034Google::Cloud::Gke" + + "Backup::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gkebackup_v1_Backup_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkebackup_v1_Backup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_Backup_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "CreateTime", + "UpdateTime", + "Manual", + "Labels", + "DeleteLockDays", + "DeleteLockExpireTime", + "RetainDays", + "RetainExpireTime", + "EncryptionKey", + "AllNamespaces", + "SelectedNamespaces", + "SelectedApplications", + "ContainsVolumeData", + "ContainsSecrets", + "ClusterMetadata", + "State", + "StateReason", + "CompleteTime", + "ResourceCount", + "VolumeCount", + "SizeBytes", + "Etag", + "Description", + "PodCount", + "ConfigBackupSizeBytes", + "BackupScope", + }); + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor = + internal_static_google_cloud_gkebackup_v1_Backup_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor, + new java.lang.String[] { + "Cluster", + "K8SVersion", + "BackupCrdVersions", + "GkeVersion", + "AnthosVersion", + "PlatformVersion", + }); + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_descriptor = + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_BackupCrdVersionsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_descriptor = + internal_static_google_cloud_gkebackup_v1_Backup_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_Backup_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CommonProto.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CommonProto.java new file mode 100644 index 0000000..4a1790b --- /dev/null +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CommonProto.java @@ -0,0 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/common.proto + +package com.google.cloud.gkebackup.v1; + +public final class CommonProto { + private CommonProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_Namespaces_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_NamespacedName_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_NamespacedNames_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_EncryptionKey_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n&google/cloud/gkebackup/v1/common.proto" + + "\022\031google.cloud.gkebackup.v1\032\031google/api/" + + "resource.proto\" \n\nNamespaces\022\022\n\nnamespac" + + "es\030\001 \003(\t\"1\n\016NamespacedName\022\021\n\tnamespace\030" + + "\001 \001(\t\022\014\n\004name\030\002 \001(\t\"V\n\017NamespacedNames\022C" + + "\n\020namespaced_names\030\001 \003(\0132).google.cloud." + + "gkebackup.v1.NamespacedName\"W\n\rEncryptio" + + "nKey\022F\n\026gcp_kms_encryption_key\030\001 \001(\tB&\372A" + + "#\n!cloudkms.googleapis.com/CryptoKeyB\311\001\n" + + "\035com.google.cloud.gkebackup.v1B\013CommonPr" + + "otoP\001ZBgoogle.golang.org/genproto/google" + + "apis/cloud/gkebackup/v1;gkebackup\252\002\031Goog" + + "le.Cloud.GkeBackup.V1\312\002\031Google\\Cloud\\Gke" + + "Backup\\V1\352\002\034Google::Cloud::GkeBackup::V1" + + "b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkebackup_v1_Namespaces_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor, + new java.lang.String[] { + "Namespaces", + }); + internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkebackup_v1_NamespacedName_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor, + new java.lang.String[] { + "Namespace", "Name", + }); + internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkebackup_v1_NamespacedNames_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor, + new java.lang.String[] { + "NamespacedNames", + }); + internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkebackup_v1_EncryptionKey_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor, + new java.lang.String[] { + "GcpKmsEncryptionKey", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequest.java index c28628e..0ba0533 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for CreateBackupPlan.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.CreateBackupPlanRequest} */ -public final class CreateBackupPlanRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateBackupPlanRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.CreateBackupPlanRequest) CreateBackupPlanRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateBackupPlanRequest.newBuilder() to construct. private CreateBackupPlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateBackupPlanRequest() { parent_ = ""; backupPlanId_ = ""; @@ -26,16 +44,15 @@ private CreateBackupPlanRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateBackupPlanRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateBackupPlanRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateBackupPlanRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.gkebackup.v1.BackupPlan.Builder subBuilder = null; - if (backupPlan_ != null) { - subBuilder = backupPlan_.toBuilder(); - } - backupPlan_ = input.readMessage(com.google.cloud.gkebackup.v1.BackupPlan.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(backupPlan_); - backupPlan_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.gkebackup.v1.BackupPlan.Builder subBuilder = null; + if (backupPlan_ != null) { + subBuilder = backupPlan_.toBuilder(); + } + backupPlan_ = + input.readMessage( + com.google.cloud.gkebackup.v1.BackupPlan.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(backupPlan_); + backupPlan_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - backupPlanId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + backupPlanId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +115,42 @@ private CreateBackupPlanRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.class, com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.class, + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The location within which to create the BackupPlan.
    * Format: projects/*/locations/*
    * 
* - * string 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 @@ -130,30 +159,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The location within which to create the BackupPlan.
    * Format: projects/*/locations/*
    * 
* - * string 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 { @@ -164,11 +195,16 @@ public java.lang.String getParent() { public static final int BACKUP_PLAN_FIELD_NUMBER = 2; private com.google.cloud.gkebackup.v1.BackupPlan backupPlan_; /** + * + * *
    * Required. The BackupPlan resource object to create.
    * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the backupPlan field is set. */ @java.lang.Override @@ -176,23 +212,34 @@ public boolean hasBackupPlan() { return backupPlan_ != null; } /** + * + * *
    * Required. The BackupPlan resource object to create.
    * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backupPlan. */ @java.lang.Override public com.google.cloud.gkebackup.v1.BackupPlan getBackupPlan() { - return backupPlan_ == null ? com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() : backupPlan_; + return backupPlan_ == null + ? com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() + : backupPlan_; } /** + * + * *
    * Required. The BackupPlan resource object to create.
    * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder() { @@ -202,6 +249,8 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder( public static final int BACKUP_PLAN_ID_FIELD_NUMBER = 3; private volatile java.lang.Object backupPlanId_; /** + * + * *
    * Required. The client-provided short name for the BackupPlan resource.
    * This name must:
@@ -213,6 +262,7 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder(
    * 
* * string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The backupPlanId. */ @java.lang.Override @@ -221,14 +271,15 @@ public java.lang.String getBackupPlanId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupPlanId_ = s; return s; } } /** + * + * *
    * Required. The client-provided short name for the BackupPlan resource.
    * This name must:
@@ -240,16 +291,15 @@ public java.lang.String getBackupPlanId() {
    * 
* * string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for backupPlanId. */ @java.lang.Override - public com.google.protobuf.ByteString - getBackupPlanIdBytes() { + public com.google.protobuf.ByteString getBackupPlanIdBytes() { java.lang.Object ref = backupPlanId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); backupPlanId_ = b; return b; } else { @@ -258,6 +308,7 @@ public java.lang.String getBackupPlanId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,8 +320,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_); } @@ -293,8 +343,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (backupPlan_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBackupPlan()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBackupPlan()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupPlanId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, backupPlanId_); @@ -307,22 +356,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.CreateBackupPlanRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest other = (com.google.cloud.gkebackup.v1.CreateBackupPlanRequest) obj; + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest other = + (com.google.cloud.gkebackup.v1.CreateBackupPlanRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasBackupPlan() != other.hasBackupPlan()) return false; if (hasBackupPlan()) { - if (!getBackupPlan() - .equals(other.getBackupPlan())) return false; + if (!getBackupPlan().equals(other.getBackupPlan())) return false; } - if (!getBackupPlanId() - .equals(other.getBackupPlanId())) return false; + if (!getBackupPlanId().equals(other.getBackupPlanId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -348,117 +395,127 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.CreateBackupPlanRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 CreateBackupPlan.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.CreateBackupPlanRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.CreateBackupPlanRequest) com.google.cloud.gkebackup.v1.CreateBackupPlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.class, com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.class, + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.newBuilder() @@ -466,16 +523,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -493,9 +549,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor; } @java.lang.Override @@ -514,7 +570,8 @@ public com.google.cloud.gkebackup.v1.CreateBackupPlanRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.CreateBackupPlanRequest buildPartial() { - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest result = new com.google.cloud.gkebackup.v1.CreateBackupPlanRequest(this); + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest result = + new com.google.cloud.gkebackup.v1.CreateBackupPlanRequest(this); result.parent_ = parent_; if (backupPlanBuilder_ == null) { result.backupPlan_ = backupPlan_; @@ -530,38 +587,39 @@ public com.google.cloud.gkebackup.v1.CreateBackupPlanRequest 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.cloud.gkebackup.v1.CreateBackupPlanRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.CreateBackupPlanRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.CreateBackupPlanRequest) other); } else { super.mergeFrom(other); return this; @@ -569,7 +627,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.CreateBackupPlanRequest other) { - if (other == com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.CreateBackupPlanRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -600,7 +659,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.CreateBackupPlanRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.CreateBackupPlanRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -612,19 +672,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The location within which to create the BackupPlan.
      * Format: projects/*/locations/*
      * 
* - * string 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; @@ -633,21 +697,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The location within which to create the BackupPlan.
      * Format: projects/*/locations/*
      * 
* - * string 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 { @@ -655,57 +722,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The location within which to create the BackupPlan.
      * Format: projects/*/locations/*
      * 
* - * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The location within which to create the BackupPlan.
      * Format: projects/*/locations/*
      * 
* - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The location within which to create the BackupPlan.
      * Format: projects/*/locations/*
      * 
* - * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -713,39 +793,58 @@ public Builder setParentBytes( private com.google.cloud.gkebackup.v1.BackupPlan backupPlan_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan, com.google.cloud.gkebackup.v1.BackupPlan.Builder, com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> backupPlanBuilder_; + com.google.cloud.gkebackup.v1.BackupPlan, + com.google.cloud.gkebackup.v1.BackupPlan.Builder, + com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> + backupPlanBuilder_; /** + * + * *
      * Required. The BackupPlan resource object to create.
      * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the backupPlan field is set. */ public boolean hasBackupPlan() { return backupPlanBuilder_ != null || backupPlan_ != null; } /** + * + * *
      * Required. The BackupPlan resource object to create.
      * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backupPlan. */ public com.google.cloud.gkebackup.v1.BackupPlan getBackupPlan() { if (backupPlanBuilder_ == null) { - return backupPlan_ == null ? com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() : backupPlan_; + return backupPlan_ == null + ? com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() + : backupPlan_; } else { return backupPlanBuilder_.getMessage(); } } /** + * + * *
      * Required. The BackupPlan resource object to create.
      * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan value) { if (backupPlanBuilder_ == null) { @@ -761,14 +860,17 @@ public Builder setBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan value) { return this; } /** + * + * *
      * Required. The BackupPlan resource object to create.
      * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setBackupPlan( - com.google.cloud.gkebackup.v1.BackupPlan.Builder builderForValue) { + public Builder setBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan.Builder builderForValue) { if (backupPlanBuilder_ == null) { backupPlan_ = builderForValue.build(); onChanged(); @@ -779,17 +881,23 @@ public Builder setBackupPlan( return this; } /** + * + * *
      * Required. The BackupPlan resource object to create.
      * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan value) { if (backupPlanBuilder_ == null) { if (backupPlan_ != null) { backupPlan_ = - com.google.cloud.gkebackup.v1.BackupPlan.newBuilder(backupPlan_).mergeFrom(value).buildPartial(); + com.google.cloud.gkebackup.v1.BackupPlan.newBuilder(backupPlan_) + .mergeFrom(value) + .buildPartial(); } else { backupPlan_ = value; } @@ -801,11 +909,15 @@ public Builder mergeBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan value) { return this; } /** + * + * *
      * Required. The BackupPlan resource object to create.
      * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBackupPlan() { if (backupPlanBuilder_ == null) { @@ -819,48 +931,64 @@ public Builder clearBackupPlan() { return this; } /** + * + * *
      * Required. The BackupPlan resource object to create.
      * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkebackup.v1.BackupPlan.Builder getBackupPlanBuilder() { - + onChanged(); return getBackupPlanFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The BackupPlan resource object to create.
      * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder() { if (backupPlanBuilder_ != null) { return backupPlanBuilder_.getMessageOrBuilder(); } else { - return backupPlan_ == null ? - com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() : backupPlan_; + return backupPlan_ == null + ? com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() + : backupPlan_; } } /** + * + * *
      * Required. The BackupPlan resource object to create.
      * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan, com.google.cloud.gkebackup.v1.BackupPlan.Builder, com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> + com.google.cloud.gkebackup.v1.BackupPlan, + com.google.cloud.gkebackup.v1.BackupPlan.Builder, + com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> getBackupPlanFieldBuilder() { if (backupPlanBuilder_ == null) { - backupPlanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan, com.google.cloud.gkebackup.v1.BackupPlan.Builder, com.google.cloud.gkebackup.v1.BackupPlanOrBuilder>( - getBackupPlan(), - getParentForChildren(), - isClean()); + backupPlanBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.BackupPlan, + com.google.cloud.gkebackup.v1.BackupPlan.Builder, + com.google.cloud.gkebackup.v1.BackupPlanOrBuilder>( + getBackupPlan(), getParentForChildren(), isClean()); backupPlan_ = null; } return backupPlanBuilder_; @@ -868,6 +996,8 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder( private java.lang.Object backupPlanId_ = ""; /** + * + * *
      * Required. The client-provided short name for the BackupPlan resource.
      * This name must:
@@ -879,13 +1009,13 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder(
      * 
* * string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The backupPlanId. */ public java.lang.String getBackupPlanId() { java.lang.Object ref = backupPlanId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupPlanId_ = s; return s; @@ -894,6 +1024,8 @@ public java.lang.String getBackupPlanId() { } } /** + * + * *
      * Required. The client-provided short name for the BackupPlan resource.
      * This name must:
@@ -905,15 +1037,14 @@ public java.lang.String getBackupPlanId() {
      * 
* * string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for backupPlanId. */ - public com.google.protobuf.ByteString - getBackupPlanIdBytes() { + public com.google.protobuf.ByteString getBackupPlanIdBytes() { java.lang.Object ref = backupPlanId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); backupPlanId_ = b; return b; } else { @@ -921,6 +1052,8 @@ public java.lang.String getBackupPlanId() { } } /** + * + * *
      * Required. The client-provided short name for the BackupPlan resource.
      * This name must:
@@ -932,20 +1065,22 @@ public java.lang.String getBackupPlanId() {
      * 
* * string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The backupPlanId to set. * @return This builder for chaining. */ - public Builder setBackupPlanId( - java.lang.String value) { + public Builder setBackupPlanId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + backupPlanId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The client-provided short name for the BackupPlan resource.
      * This name must:
@@ -957,15 +1092,18 @@ public Builder setBackupPlanId(
      * 
* * string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearBackupPlanId() { - + backupPlanId_ = getDefaultInstance().getBackupPlanId(); onChanged(); return this; } /** + * + * *
      * Required. The client-provided short name for the BackupPlan resource.
      * This name must:
@@ -977,23 +1115,23 @@ public Builder clearBackupPlanId() {
      * 
* * string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for backupPlanId to set. * @return This builder for chaining. */ - public Builder setBackupPlanIdBytes( - com.google.protobuf.ByteString value) { + public Builder setBackupPlanIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backupPlanId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1003,12 +1141,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.CreateBackupPlanRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.CreateBackupPlanRequest) private static final com.google.cloud.gkebackup.v1.CreateBackupPlanRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.CreateBackupPlanRequest(); } @@ -1017,16 +1155,16 @@ public static com.google.cloud.gkebackup.v1.CreateBackupPlanRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBackupPlanRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateBackupPlanRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBackupPlanRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateBackupPlanRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1041,6 +1179,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.CreateBackupPlanRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequestOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequestOrBuilder.java index 6e80139..b932c93 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequestOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupPlanRequestOrBuilder.java @@ -1,62 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface CreateBackupPlanRequestOrBuilder extends +public interface CreateBackupPlanRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.CreateBackupPlanRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The location within which to create the BackupPlan.
    * Format: projects/*/locations/*
    * 
* - * string 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 location within which to create the BackupPlan.
    * Format: projects/*/locations/*
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The BackupPlan resource object to create.
    * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the backupPlan field is set. */ boolean hasBackupPlan(); /** + * + * *
    * Required. The BackupPlan resource object to create.
    * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backupPlan. */ com.google.cloud.gkebackup.v1.BackupPlan getBackupPlan(); /** + * + * *
    * Required. The BackupPlan resource object to create.
    * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder(); /** + * + * *
    * Required. The client-provided short name for the BackupPlan resource.
    * This name must:
@@ -68,10 +109,13 @@ public interface CreateBackupPlanRequestOrBuilder extends
    * 
* * string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The backupPlanId. */ java.lang.String getBackupPlanId(); /** + * + * *
    * Required. The client-provided short name for the BackupPlan resource.
    * This name must:
@@ -83,8 +127,8 @@ public interface CreateBackupPlanRequestOrBuilder extends
    * 
* * string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for backupPlanId. */ - com.google.protobuf.ByteString - getBackupPlanIdBytes(); + com.google.protobuf.ByteString getBackupPlanIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequest.java index 01cc0ee..06fbf58 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for CreateBackup.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.CreateBackupRequest} */ -public final class CreateBackupRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateBackupRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.CreateBackupRequest) CreateBackupRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateBackupRequest.newBuilder() to construct. private CreateBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateBackupRequest() { parent_ = ""; backupId_ = ""; @@ -26,16 +44,15 @@ private CreateBackupRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateBackupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateBackupRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateBackupRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.gkebackup.v1.Backup.Builder subBuilder = null; - if (backup_ != null) { - subBuilder = backup_.toBuilder(); - } - backup_ = input.readMessage(com.google.cloud.gkebackup.v1.Backup.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(backup_); - backup_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.gkebackup.v1.Backup.Builder subBuilder = null; + if (backup_ != null) { + subBuilder = backup_.toBuilder(); + } + backup_ = + input.readMessage( + com.google.cloud.gkebackup.v1.Backup.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(backup_); + backup_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - backupId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + backupId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +115,42 @@ private CreateBackupRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.CreateBackupRequest.class, com.google.cloud.gkebackup.v1.CreateBackupRequest.Builder.class); + com.google.cloud.gkebackup.v1.CreateBackupRequest.class, + com.google.cloud.gkebackup.v1.CreateBackupRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The BackupPlan within which to create the Backup.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * string 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 @@ -130,30 +159,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The BackupPlan within which to create the Backup.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * string 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 { @@ -164,11 +195,14 @@ public java.lang.String getParent() { public static final int BACKUP_FIELD_NUMBER = 2; private com.google.cloud.gkebackup.v1.Backup backup_; /** + * + * *
    * The Backup resource to create.
    * 
* * .google.cloud.gkebackup.v1.Backup backup = 2; + * * @return Whether the backup field is set. */ @java.lang.Override @@ -176,11 +210,14 @@ public boolean hasBackup() { return backup_ != null; } /** + * + * *
    * The Backup resource to create.
    * 
* * .google.cloud.gkebackup.v1.Backup backup = 2; + * * @return The backup. */ @java.lang.Override @@ -188,6 +225,8 @@ public com.google.cloud.gkebackup.v1.Backup getBackup() { return backup_ == null ? com.google.cloud.gkebackup.v1.Backup.getDefaultInstance() : backup_; } /** + * + * *
    * The Backup resource to create.
    * 
@@ -202,6 +241,8 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() { public static final int BACKUP_ID_FIELD_NUMBER = 3; private volatile java.lang.Object backupId_; /** + * + * *
    * The client-provided short name for the Backup resource.
    * This name must:
@@ -213,6 +254,7 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() {
    * 
* * string backup_id = 3; + * * @return The backupId. */ @java.lang.Override @@ -221,14 +263,15 @@ public java.lang.String getBackupId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; } } /** + * + * *
    * The client-provided short name for the Backup resource.
    * This name must:
@@ -240,16 +283,15 @@ public java.lang.String getBackupId() {
    * 
* * string backup_id = 3; + * * @return The bytes for backupId. */ @java.lang.Override - public com.google.protobuf.ByteString - getBackupIdBytes() { + public com.google.protobuf.ByteString getBackupIdBytes() { java.lang.Object ref = backupId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); backupId_ = b; return b; } else { @@ -258,6 +300,7 @@ public java.lang.String getBackupId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,8 +312,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_); } @@ -293,8 +335,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (backup_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBackup()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBackup()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, backupId_); @@ -307,22 +348,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.CreateBackupRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.CreateBackupRequest other = (com.google.cloud.gkebackup.v1.CreateBackupRequest) obj; + com.google.cloud.gkebackup.v1.CreateBackupRequest other = + (com.google.cloud.gkebackup.v1.CreateBackupRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasBackup() != other.hasBackup()) return false; if (hasBackup()) { - if (!getBackup() - .equals(other.getBackup())) return false; + if (!getBackup().equals(other.getBackup())) return false; } - if (!getBackupId() - .equals(other.getBackupId())) return false; + if (!getBackupId().equals(other.getBackupId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -348,117 +387,126 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.CreateBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.CreateBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 CreateBackup.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.CreateBackupRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.CreateBackupRequest) com.google.cloud.gkebackup.v1.CreateBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.CreateBackupRequest.class, com.google.cloud.gkebackup.v1.CreateBackupRequest.Builder.class); + com.google.cloud.gkebackup.v1.CreateBackupRequest.class, + com.google.cloud.gkebackup.v1.CreateBackupRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.CreateBackupRequest.newBuilder() @@ -466,16 +514,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -493,9 +540,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor; } @java.lang.Override @@ -514,7 +561,8 @@ public com.google.cloud.gkebackup.v1.CreateBackupRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.CreateBackupRequest buildPartial() { - com.google.cloud.gkebackup.v1.CreateBackupRequest result = new com.google.cloud.gkebackup.v1.CreateBackupRequest(this); + com.google.cloud.gkebackup.v1.CreateBackupRequest result = + new com.google.cloud.gkebackup.v1.CreateBackupRequest(this); result.parent_ = parent_; if (backupBuilder_ == null) { result.backup_ = backup_; @@ -530,38 +578,39 @@ public com.google.cloud.gkebackup.v1.CreateBackupRequest 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.cloud.gkebackup.v1.CreateBackupRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.CreateBackupRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.CreateBackupRequest) other); } else { super.mergeFrom(other); return this; @@ -569,7 +618,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.CreateBackupRequest other) { - if (other == com.google.cloud.gkebackup.v1.CreateBackupRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.CreateBackupRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -600,7 +650,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.CreateBackupRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.CreateBackupRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -612,19 +663,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The BackupPlan within which to create the Backup.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * string 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; @@ -633,21 +688,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The BackupPlan within which to create the Backup.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * string 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 { @@ -655,57 +713,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The BackupPlan within which to create the Backup.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The BackupPlan within which to create the Backup.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The BackupPlan within which to create the Backup.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -713,34 +784,47 @@ public Builder setParentBytes( private com.google.cloud.gkebackup.v1.Backup backup_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup, com.google.cloud.gkebackup.v1.Backup.Builder, com.google.cloud.gkebackup.v1.BackupOrBuilder> backupBuilder_; + com.google.cloud.gkebackup.v1.Backup, + com.google.cloud.gkebackup.v1.Backup.Builder, + com.google.cloud.gkebackup.v1.BackupOrBuilder> + backupBuilder_; /** + * + * *
      * The Backup resource to create.
      * 
* * .google.cloud.gkebackup.v1.Backup backup = 2; + * * @return Whether the backup field is set. */ public boolean hasBackup() { return backupBuilder_ != null || backup_ != null; } /** + * + * *
      * The Backup resource to create.
      * 
* * .google.cloud.gkebackup.v1.Backup backup = 2; + * * @return The backup. */ public com.google.cloud.gkebackup.v1.Backup getBackup() { if (backupBuilder_ == null) { - return backup_ == null ? com.google.cloud.gkebackup.v1.Backup.getDefaultInstance() : backup_; + return backup_ == null + ? com.google.cloud.gkebackup.v1.Backup.getDefaultInstance() + : backup_; } else { return backupBuilder_.getMessage(); } } /** + * + * *
      * The Backup resource to create.
      * 
@@ -761,14 +845,15 @@ public Builder setBackup(com.google.cloud.gkebackup.v1.Backup value) { return this; } /** + * + * *
      * The Backup resource to create.
      * 
* * .google.cloud.gkebackup.v1.Backup backup = 2; */ - public Builder setBackup( - com.google.cloud.gkebackup.v1.Backup.Builder builderForValue) { + public Builder setBackup(com.google.cloud.gkebackup.v1.Backup.Builder builderForValue) { if (backupBuilder_ == null) { backup_ = builderForValue.build(); onChanged(); @@ -779,6 +864,8 @@ public Builder setBackup( return this; } /** + * + * *
      * The Backup resource to create.
      * 
@@ -789,7 +876,9 @@ public Builder mergeBackup(com.google.cloud.gkebackup.v1.Backup value) { if (backupBuilder_ == null) { if (backup_ != null) { backup_ = - com.google.cloud.gkebackup.v1.Backup.newBuilder(backup_).mergeFrom(value).buildPartial(); + com.google.cloud.gkebackup.v1.Backup.newBuilder(backup_) + .mergeFrom(value) + .buildPartial(); } else { backup_ = value; } @@ -801,6 +890,8 @@ public Builder mergeBackup(com.google.cloud.gkebackup.v1.Backup value) { return this; } /** + * + * *
      * The Backup resource to create.
      * 
@@ -819,6 +910,8 @@ public Builder clearBackup() { return this; } /** + * + * *
      * The Backup resource to create.
      * 
@@ -826,11 +919,13 @@ public Builder clearBackup() { * .google.cloud.gkebackup.v1.Backup backup = 2; */ public com.google.cloud.gkebackup.v1.Backup.Builder getBackupBuilder() { - + onChanged(); return getBackupFieldBuilder().getBuilder(); } /** + * + * *
      * The Backup resource to create.
      * 
@@ -841,11 +936,14 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() { if (backupBuilder_ != null) { return backupBuilder_.getMessageOrBuilder(); } else { - return backup_ == null ? - com.google.cloud.gkebackup.v1.Backup.getDefaultInstance() : backup_; + return backup_ == null + ? com.google.cloud.gkebackup.v1.Backup.getDefaultInstance() + : backup_; } } /** + * + * *
      * The Backup resource to create.
      * 
@@ -853,14 +951,17 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() { * .google.cloud.gkebackup.v1.Backup backup = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup, com.google.cloud.gkebackup.v1.Backup.Builder, com.google.cloud.gkebackup.v1.BackupOrBuilder> + com.google.cloud.gkebackup.v1.Backup, + com.google.cloud.gkebackup.v1.Backup.Builder, + com.google.cloud.gkebackup.v1.BackupOrBuilder> getBackupFieldBuilder() { if (backupBuilder_ == null) { - backupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup, com.google.cloud.gkebackup.v1.Backup.Builder, com.google.cloud.gkebackup.v1.BackupOrBuilder>( - getBackup(), - getParentForChildren(), - isClean()); + backupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.Backup, + com.google.cloud.gkebackup.v1.Backup.Builder, + com.google.cloud.gkebackup.v1.BackupOrBuilder>( + getBackup(), getParentForChildren(), isClean()); backup_ = null; } return backupBuilder_; @@ -868,6 +969,8 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() { private java.lang.Object backupId_ = ""; /** + * + * *
      * The client-provided short name for the Backup resource.
      * This name must:
@@ -879,13 +982,13 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() {
      * 
* * string backup_id = 3; + * * @return The backupId. */ public java.lang.String getBackupId() { java.lang.Object ref = backupId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; @@ -894,6 +997,8 @@ public java.lang.String getBackupId() { } } /** + * + * *
      * The client-provided short name for the Backup resource.
      * This name must:
@@ -905,15 +1010,14 @@ public java.lang.String getBackupId() {
      * 
* * string backup_id = 3; + * * @return The bytes for backupId. */ - public com.google.protobuf.ByteString - getBackupIdBytes() { + public com.google.protobuf.ByteString getBackupIdBytes() { java.lang.Object ref = backupId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); backupId_ = b; return b; } else { @@ -921,6 +1025,8 @@ public java.lang.String getBackupId() { } } /** + * + * *
      * The client-provided short name for the Backup resource.
      * This name must:
@@ -932,20 +1038,22 @@ public java.lang.String getBackupId() {
      * 
* * string backup_id = 3; + * * @param value The backupId to set. * @return This builder for chaining. */ - public Builder setBackupId( - java.lang.String value) { + public Builder setBackupId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + backupId_ = value; onChanged(); return this; } /** + * + * *
      * The client-provided short name for the Backup resource.
      * This name must:
@@ -957,15 +1065,18 @@ public Builder setBackupId(
      * 
* * string backup_id = 3; + * * @return This builder for chaining. */ public Builder clearBackupId() { - + backupId_ = getDefaultInstance().getBackupId(); onChanged(); return this; } /** + * + * *
      * The client-provided short name for the Backup resource.
      * This name must:
@@ -977,23 +1088,23 @@ public Builder clearBackupId() {
      * 
* * string backup_id = 3; + * * @param value The bytes for backupId to set. * @return This builder for chaining. */ - public Builder setBackupIdBytes( - com.google.protobuf.ByteString value) { + public Builder setBackupIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backupId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1003,12 +1114,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.CreateBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.CreateBackupRequest) private static final com.google.cloud.gkebackup.v1.CreateBackupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.CreateBackupRequest(); } @@ -1017,16 +1128,16 @@ public static com.google.cloud.gkebackup.v1.CreateBackupRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateBackupRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateBackupRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1041,6 +1152,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.CreateBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequestOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequestOrBuilder.java index 3321bdc..c3938ca 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequestOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateBackupRequestOrBuilder.java @@ -1,53 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface CreateBackupRequestOrBuilder extends +public interface CreateBackupRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.CreateBackupRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The BackupPlan within which to create the Backup.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * string 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 BackupPlan within which to create the Backup.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * string 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 Backup resource to create.
    * 
* * .google.cloud.gkebackup.v1.Backup backup = 2; + * * @return Whether the backup field is set. */ boolean hasBackup(); /** + * + * *
    * The Backup resource to create.
    * 
* * .google.cloud.gkebackup.v1.Backup backup = 2; + * * @return The backup. */ com.google.cloud.gkebackup.v1.Backup getBackup(); /** + * + * *
    * The Backup resource to create.
    * 
@@ -57,6 +90,8 @@ public interface CreateBackupRequestOrBuilder extends com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder(); /** + * + * *
    * The client-provided short name for the Backup resource.
    * This name must:
@@ -68,10 +103,13 @@ public interface CreateBackupRequestOrBuilder extends
    * 
* * string backup_id = 3; + * * @return The backupId. */ java.lang.String getBackupId(); /** + * + * *
    * The client-provided short name for the Backup resource.
    * This name must:
@@ -83,8 +121,8 @@ public interface CreateBackupRequestOrBuilder extends
    * 
* * string backup_id = 3; + * * @return The bytes for backupId. */ - com.google.protobuf.ByteString - getBackupIdBytes(); + com.google.protobuf.ByteString getBackupIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequest.java index 5ad97d9..4ed1e9a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for CreateRestorePlan.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.CreateRestorePlanRequest} */ -public final class CreateRestorePlanRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateRestorePlanRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.CreateRestorePlanRequest) CreateRestorePlanRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateRestorePlanRequest.newBuilder() to construct. private CreateRestorePlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateRestorePlanRequest() { parent_ = ""; restorePlanId_ = ""; @@ -26,16 +44,15 @@ private CreateRestorePlanRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateRestorePlanRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateRestorePlanRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateRestorePlanRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.gkebackup.v1.RestorePlan.Builder subBuilder = null; - if (restorePlan_ != null) { - subBuilder = restorePlan_.toBuilder(); - } - restorePlan_ = input.readMessage(com.google.cloud.gkebackup.v1.RestorePlan.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(restorePlan_); - restorePlan_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.gkebackup.v1.RestorePlan.Builder subBuilder = null; + if (restorePlan_ != null) { + subBuilder = restorePlan_.toBuilder(); + } + restorePlan_ = + input.readMessage( + com.google.cloud.gkebackup.v1.RestorePlan.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(restorePlan_); + restorePlan_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - restorePlanId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + restorePlanId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +115,42 @@ private CreateRestorePlanRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.class, com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.class, + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The location within which to create the RestorePlan.
    * Format: projects/*/locations/*
    * 
* - * string 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 @@ -130,30 +159,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The location within which to create the RestorePlan.
    * Format: projects/*/locations/*
    * 
* - * string 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 { @@ -164,11 +195,16 @@ public java.lang.String getParent() { public static final int RESTORE_PLAN_FIELD_NUMBER = 2; private com.google.cloud.gkebackup.v1.RestorePlan restorePlan_; /** + * + * *
    * Required. The RestorePlan resource object to create.
    * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the restorePlan field is set. */ @java.lang.Override @@ -176,23 +212,34 @@ public boolean hasRestorePlan() { return restorePlan_ != null; } /** + * + * *
    * Required. The RestorePlan resource object to create.
    * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The restorePlan. */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestorePlan getRestorePlan() { - return restorePlan_ == null ? com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() : restorePlan_; + return restorePlan_ == null + ? com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() + : restorePlan_; } /** + * + * *
    * Required. The RestorePlan resource object to create.
    * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilder() { @@ -202,6 +249,8 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilde public static final int RESTORE_PLAN_ID_FIELD_NUMBER = 3; private volatile java.lang.Object restorePlanId_; /** + * + * *
    * Required. The client-provided short name for the RestorePlan resource.
    * This name must:
@@ -213,6 +262,7 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilde
    * 
* * string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The restorePlanId. */ @java.lang.Override @@ -221,14 +271,15 @@ public java.lang.String getRestorePlanId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); restorePlanId_ = s; return s; } } /** + * + * *
    * Required. The client-provided short name for the RestorePlan resource.
    * This name must:
@@ -240,16 +291,15 @@ public java.lang.String getRestorePlanId() {
    * 
* * string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for restorePlanId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRestorePlanIdBytes() { + public com.google.protobuf.ByteString getRestorePlanIdBytes() { java.lang.Object ref = restorePlanId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); restorePlanId_ = b; return b; } else { @@ -258,6 +308,7 @@ public java.lang.String getRestorePlanId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,8 +320,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_); } @@ -293,8 +343,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (restorePlan_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRestorePlan()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRestorePlan()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(restorePlanId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, restorePlanId_); @@ -307,22 +356,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.CreateRestorePlanRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest other = (com.google.cloud.gkebackup.v1.CreateRestorePlanRequest) obj; + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest other = + (com.google.cloud.gkebackup.v1.CreateRestorePlanRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasRestorePlan() != other.hasRestorePlan()) return false; if (hasRestorePlan()) { - if (!getRestorePlan() - .equals(other.getRestorePlan())) return false; + if (!getRestorePlan().equals(other.getRestorePlan())) return false; } - if (!getRestorePlanId() - .equals(other.getRestorePlanId())) return false; + if (!getRestorePlanId().equals(other.getRestorePlanId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -348,117 +395,127 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.CreateRestorePlanRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 CreateRestorePlan.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.CreateRestorePlanRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.CreateRestorePlanRequest) com.google.cloud.gkebackup.v1.CreateRestorePlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.class, com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.class, + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.newBuilder() @@ -466,16 +523,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -493,9 +549,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor; } @java.lang.Override @@ -514,7 +570,8 @@ public com.google.cloud.gkebackup.v1.CreateRestorePlanRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.CreateRestorePlanRequest buildPartial() { - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest result = new com.google.cloud.gkebackup.v1.CreateRestorePlanRequest(this); + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest result = + new com.google.cloud.gkebackup.v1.CreateRestorePlanRequest(this); result.parent_ = parent_; if (restorePlanBuilder_ == null) { result.restorePlan_ = restorePlan_; @@ -530,38 +587,39 @@ public com.google.cloud.gkebackup.v1.CreateRestorePlanRequest 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.cloud.gkebackup.v1.CreateRestorePlanRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.CreateRestorePlanRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.CreateRestorePlanRequest) other); } else { super.mergeFrom(other); return this; @@ -569,7 +627,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.CreateRestorePlanRequest other) { - if (other == com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.CreateRestorePlanRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -600,7 +659,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.CreateRestorePlanRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.CreateRestorePlanRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -612,19 +672,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The location within which to create the RestorePlan.
      * Format: projects/*/locations/*
      * 
* - * string 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; @@ -633,21 +697,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The location within which to create the RestorePlan.
      * Format: projects/*/locations/*
      * 
* - * string 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 { @@ -655,57 +722,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The location within which to create the RestorePlan.
      * Format: projects/*/locations/*
      * 
* - * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The location within which to create the RestorePlan.
      * Format: projects/*/locations/*
      * 
* - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The location within which to create the RestorePlan.
      * Format: projects/*/locations/*
      * 
* - * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -713,39 +793,58 @@ public Builder setParentBytes( private com.google.cloud.gkebackup.v1.RestorePlan restorePlan_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestorePlan, com.google.cloud.gkebackup.v1.RestorePlan.Builder, com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> restorePlanBuilder_; + com.google.cloud.gkebackup.v1.RestorePlan, + com.google.cloud.gkebackup.v1.RestorePlan.Builder, + com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> + restorePlanBuilder_; /** + * + * *
      * Required. The RestorePlan resource object to create.
      * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the restorePlan field is set. */ public boolean hasRestorePlan() { return restorePlanBuilder_ != null || restorePlan_ != null; } /** + * + * *
      * Required. The RestorePlan resource object to create.
      * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The restorePlan. */ public com.google.cloud.gkebackup.v1.RestorePlan getRestorePlan() { if (restorePlanBuilder_ == null) { - return restorePlan_ == null ? com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() : restorePlan_; + return restorePlan_ == null + ? com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() + : restorePlan_; } else { return restorePlanBuilder_.getMessage(); } } /** + * + * *
      * Required. The RestorePlan resource object to create.
      * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRestorePlan(com.google.cloud.gkebackup.v1.RestorePlan value) { if (restorePlanBuilder_ == null) { @@ -761,11 +860,15 @@ public Builder setRestorePlan(com.google.cloud.gkebackup.v1.RestorePlan value) { return this; } /** + * + * *
      * Required. The RestorePlan resource object to create.
      * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRestorePlan( com.google.cloud.gkebackup.v1.RestorePlan.Builder builderForValue) { @@ -779,17 +882,23 @@ public Builder setRestorePlan( return this; } /** + * + * *
      * Required. The RestorePlan resource object to create.
      * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeRestorePlan(com.google.cloud.gkebackup.v1.RestorePlan value) { if (restorePlanBuilder_ == null) { if (restorePlan_ != null) { restorePlan_ = - com.google.cloud.gkebackup.v1.RestorePlan.newBuilder(restorePlan_).mergeFrom(value).buildPartial(); + com.google.cloud.gkebackup.v1.RestorePlan.newBuilder(restorePlan_) + .mergeFrom(value) + .buildPartial(); } else { restorePlan_ = value; } @@ -801,11 +910,15 @@ public Builder mergeRestorePlan(com.google.cloud.gkebackup.v1.RestorePlan value) return this; } /** + * + * *
      * Required. The RestorePlan resource object to create.
      * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRestorePlan() { if (restorePlanBuilder_ == null) { @@ -819,48 +932,64 @@ public Builder clearRestorePlan() { return this; } /** + * + * *
      * Required. The RestorePlan resource object to create.
      * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkebackup.v1.RestorePlan.Builder getRestorePlanBuilder() { - + onChanged(); return getRestorePlanFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The RestorePlan resource object to create.
      * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilder() { if (restorePlanBuilder_ != null) { return restorePlanBuilder_.getMessageOrBuilder(); } else { - return restorePlan_ == null ? - com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() : restorePlan_; + return restorePlan_ == null + ? com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() + : restorePlan_; } } /** + * + * *
      * Required. The RestorePlan resource object to create.
      * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestorePlan, com.google.cloud.gkebackup.v1.RestorePlan.Builder, com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> + com.google.cloud.gkebackup.v1.RestorePlan, + com.google.cloud.gkebackup.v1.RestorePlan.Builder, + com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> getRestorePlanFieldBuilder() { if (restorePlanBuilder_ == null) { - restorePlanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestorePlan, com.google.cloud.gkebackup.v1.RestorePlan.Builder, com.google.cloud.gkebackup.v1.RestorePlanOrBuilder>( - getRestorePlan(), - getParentForChildren(), - isClean()); + restorePlanBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestorePlan, + com.google.cloud.gkebackup.v1.RestorePlan.Builder, + com.google.cloud.gkebackup.v1.RestorePlanOrBuilder>( + getRestorePlan(), getParentForChildren(), isClean()); restorePlan_ = null; } return restorePlanBuilder_; @@ -868,6 +997,8 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilde private java.lang.Object restorePlanId_ = ""; /** + * + * *
      * Required. The client-provided short name for the RestorePlan resource.
      * This name must:
@@ -879,13 +1010,13 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilde
      * 
* * string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The restorePlanId. */ public java.lang.String getRestorePlanId() { java.lang.Object ref = restorePlanId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); restorePlanId_ = s; return s; @@ -894,6 +1025,8 @@ public java.lang.String getRestorePlanId() { } } /** + * + * *
      * Required. The client-provided short name for the RestorePlan resource.
      * This name must:
@@ -905,15 +1038,14 @@ public java.lang.String getRestorePlanId() {
      * 
* * string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for restorePlanId. */ - public com.google.protobuf.ByteString - getRestorePlanIdBytes() { + public com.google.protobuf.ByteString getRestorePlanIdBytes() { java.lang.Object ref = restorePlanId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); restorePlanId_ = b; return b; } else { @@ -921,6 +1053,8 @@ public java.lang.String getRestorePlanId() { } } /** + * + * *
      * Required. The client-provided short name for the RestorePlan resource.
      * This name must:
@@ -932,20 +1066,22 @@ public java.lang.String getRestorePlanId() {
      * 
* * string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The restorePlanId to set. * @return This builder for chaining. */ - public Builder setRestorePlanId( - java.lang.String value) { + public Builder setRestorePlanId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + restorePlanId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The client-provided short name for the RestorePlan resource.
      * This name must:
@@ -957,15 +1093,18 @@ public Builder setRestorePlanId(
      * 
* * string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRestorePlanId() { - + restorePlanId_ = getDefaultInstance().getRestorePlanId(); onChanged(); return this; } /** + * + * *
      * Required. The client-provided short name for the RestorePlan resource.
      * This name must:
@@ -977,23 +1116,23 @@ public Builder clearRestorePlanId() {
      * 
* * string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for restorePlanId to set. * @return This builder for chaining. */ - public Builder setRestorePlanIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRestorePlanIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + restorePlanId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1003,12 +1142,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.CreateRestorePlanRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.CreateRestorePlanRequest) private static final com.google.cloud.gkebackup.v1.CreateRestorePlanRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.CreateRestorePlanRequest(); } @@ -1017,16 +1156,16 @@ public static com.google.cloud.gkebackup.v1.CreateRestorePlanRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRestorePlanRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateRestorePlanRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRestorePlanRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateRestorePlanRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1041,6 +1180,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.CreateRestorePlanRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequestOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequestOrBuilder.java index ad3c38c..209070c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequestOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestorePlanRequestOrBuilder.java @@ -1,62 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface CreateRestorePlanRequestOrBuilder extends +public interface CreateRestorePlanRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.CreateRestorePlanRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The location within which to create the RestorePlan.
    * Format: projects/*/locations/*
    * 
* - * string 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 location within which to create the RestorePlan.
    * Format: projects/*/locations/*
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The RestorePlan resource object to create.
    * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the restorePlan field is set. */ boolean hasRestorePlan(); /** + * + * *
    * Required. The RestorePlan resource object to create.
    * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The restorePlan. */ com.google.cloud.gkebackup.v1.RestorePlan getRestorePlan(); /** + * + * *
    * Required. The RestorePlan resource object to create.
    * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilder(); /** + * + * *
    * Required. The client-provided short name for the RestorePlan resource.
    * This name must:
@@ -68,10 +109,13 @@ public interface CreateRestorePlanRequestOrBuilder extends
    * 
* * string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The restorePlanId. */ java.lang.String getRestorePlanId(); /** + * + * *
    * Required. The client-provided short name for the RestorePlan resource.
    * This name must:
@@ -83,8 +127,8 @@ public interface CreateRestorePlanRequestOrBuilder extends
    * 
* * string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for restorePlanId. */ - com.google.protobuf.ByteString - getRestorePlanIdBytes(); + com.google.protobuf.ByteString getRestorePlanIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequest.java index bd26248..cd90a2f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for CreateRestore.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.CreateRestoreRequest} */ -public final class CreateRestoreRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateRestoreRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.CreateRestoreRequest) CreateRestoreRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateRestoreRequest.newBuilder() to construct. private CreateRestoreRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateRestoreRequest() { parent_ = ""; restoreId_ = ""; @@ -26,16 +44,15 @@ private CreateRestoreRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateRestoreRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateRestoreRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateRestoreRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.gkebackup.v1.Restore.Builder subBuilder = null; - if (restore_ != null) { - subBuilder = restore_.toBuilder(); - } - restore_ = input.readMessage(com.google.cloud.gkebackup.v1.Restore.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(restore_); - restore_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.gkebackup.v1.Restore.Builder subBuilder = null; + if (restore_ != null) { + subBuilder = restore_.toBuilder(); + } + restore_ = + input.readMessage( + com.google.cloud.gkebackup.v1.Restore.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(restore_); + restore_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - restoreId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + restoreId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +115,42 @@ private CreateRestoreRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.CreateRestoreRequest.class, com.google.cloud.gkebackup.v1.CreateRestoreRequest.Builder.class); + com.google.cloud.gkebackup.v1.CreateRestoreRequest.class, + com.google.cloud.gkebackup.v1.CreateRestoreRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The RestorePlan within which to create the Restore.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * string 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 @@ -130,30 +159,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The RestorePlan within which to create the Restore.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * string 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 { @@ -164,11 +195,15 @@ public java.lang.String getParent() { public static final int RESTORE_FIELD_NUMBER = 2; private com.google.cloud.gkebackup.v1.Restore restore_; /** + * + * *
    * Required. The restore resource to create.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the restore field is set. */ @java.lang.Override @@ -176,11 +211,15 @@ public boolean hasRestore() { return restore_ != null; } /** + * + * *
    * Required. The restore resource to create.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The restore. */ @java.lang.Override @@ -188,11 +227,14 @@ public com.google.cloud.gkebackup.v1.Restore getRestore() { return restore_ == null ? com.google.cloud.gkebackup.v1.Restore.getDefaultInstance() : restore_; } /** + * + * *
    * Required. The restore resource to create.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() { @@ -202,6 +244,8 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() { public static final int RESTORE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object restoreId_; /** + * + * *
    * Required. The client-provided short name for the Restore resource.
    * This name must:
@@ -213,6 +257,7 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() {
    * 
* * string restore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The restoreId. */ @java.lang.Override @@ -221,14 +266,15 @@ public java.lang.String getRestoreId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); restoreId_ = s; return s; } } /** + * + * *
    * Required. The client-provided short name for the Restore resource.
    * This name must:
@@ -240,16 +286,15 @@ public java.lang.String getRestoreId() {
    * 
* * string restore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for restoreId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRestoreIdBytes() { + public com.google.protobuf.ByteString getRestoreIdBytes() { java.lang.Object ref = restoreId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); restoreId_ = b; return b; } else { @@ -258,6 +303,7 @@ public java.lang.String getRestoreId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -293,8 +338,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (restore_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRestore()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRestore()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(restoreId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, restoreId_); @@ -307,22 +351,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.CreateRestoreRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.CreateRestoreRequest other = (com.google.cloud.gkebackup.v1.CreateRestoreRequest) obj; + com.google.cloud.gkebackup.v1.CreateRestoreRequest other = + (com.google.cloud.gkebackup.v1.CreateRestoreRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasRestore() != other.hasRestore()) return false; if (hasRestore()) { - if (!getRestore() - .equals(other.getRestore())) return false; + if (!getRestore().equals(other.getRestore())) return false; } - if (!getRestoreId() - .equals(other.getRestoreId())) return false; + if (!getRestoreId().equals(other.getRestoreId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -348,117 +390,126 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.CreateRestoreRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.CreateRestoreRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 CreateRestore.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.CreateRestoreRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.CreateRestoreRequest) com.google.cloud.gkebackup.v1.CreateRestoreRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.CreateRestoreRequest.class, com.google.cloud.gkebackup.v1.CreateRestoreRequest.Builder.class); + com.google.cloud.gkebackup.v1.CreateRestoreRequest.class, + com.google.cloud.gkebackup.v1.CreateRestoreRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.CreateRestoreRequest.newBuilder() @@ -466,16 +517,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -493,9 +543,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor; } @java.lang.Override @@ -514,7 +564,8 @@ public com.google.cloud.gkebackup.v1.CreateRestoreRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.CreateRestoreRequest buildPartial() { - com.google.cloud.gkebackup.v1.CreateRestoreRequest result = new com.google.cloud.gkebackup.v1.CreateRestoreRequest(this); + com.google.cloud.gkebackup.v1.CreateRestoreRequest result = + new com.google.cloud.gkebackup.v1.CreateRestoreRequest(this); result.parent_ = parent_; if (restoreBuilder_ == null) { result.restore_ = restore_; @@ -530,38 +581,39 @@ public com.google.cloud.gkebackup.v1.CreateRestoreRequest 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.cloud.gkebackup.v1.CreateRestoreRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.CreateRestoreRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.CreateRestoreRequest) other); } else { super.mergeFrom(other); return this; @@ -569,7 +621,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.CreateRestoreRequest other) { - if (other == com.google.cloud.gkebackup.v1.CreateRestoreRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.CreateRestoreRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -600,7 +653,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.CreateRestoreRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.CreateRestoreRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -612,19 +666,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The RestorePlan within which to create the Restore.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * string 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; @@ -633,21 +691,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The RestorePlan within which to create the Restore.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * string 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 { @@ -655,57 +716,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The RestorePlan within which to create the Restore.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The RestorePlan within which to create the Restore.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The RestorePlan within which to create the Restore.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -713,39 +787,58 @@ public Builder setParentBytes( private com.google.cloud.gkebackup.v1.Restore restore_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Restore, com.google.cloud.gkebackup.v1.Restore.Builder, com.google.cloud.gkebackup.v1.RestoreOrBuilder> restoreBuilder_; + com.google.cloud.gkebackup.v1.Restore, + com.google.cloud.gkebackup.v1.Restore.Builder, + com.google.cloud.gkebackup.v1.RestoreOrBuilder> + restoreBuilder_; /** + * + * *
      * Required. The restore resource to create.
      * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the restore field is set. */ public boolean hasRestore() { return restoreBuilder_ != null || restore_ != null; } /** + * + * *
      * Required. The restore resource to create.
      * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The restore. */ public com.google.cloud.gkebackup.v1.Restore getRestore() { if (restoreBuilder_ == null) { - return restore_ == null ? com.google.cloud.gkebackup.v1.Restore.getDefaultInstance() : restore_; + return restore_ == null + ? com.google.cloud.gkebackup.v1.Restore.getDefaultInstance() + : restore_; } else { return restoreBuilder_.getMessage(); } } /** + * + * *
      * Required. The restore resource to create.
      * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRestore(com.google.cloud.gkebackup.v1.Restore value) { if (restoreBuilder_ == null) { @@ -761,14 +854,17 @@ public Builder setRestore(com.google.cloud.gkebackup.v1.Restore value) { return this; } /** + * + * *
      * Required. The restore resource to create.
      * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setRestore( - com.google.cloud.gkebackup.v1.Restore.Builder builderForValue) { + public Builder setRestore(com.google.cloud.gkebackup.v1.Restore.Builder builderForValue) { if (restoreBuilder_ == null) { restore_ = builderForValue.build(); onChanged(); @@ -779,17 +875,23 @@ public Builder setRestore( return this; } /** + * + * *
      * Required. The restore resource to create.
      * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeRestore(com.google.cloud.gkebackup.v1.Restore value) { if (restoreBuilder_ == null) { if (restore_ != null) { restore_ = - com.google.cloud.gkebackup.v1.Restore.newBuilder(restore_).mergeFrom(value).buildPartial(); + com.google.cloud.gkebackup.v1.Restore.newBuilder(restore_) + .mergeFrom(value) + .buildPartial(); } else { restore_ = value; } @@ -801,11 +903,15 @@ public Builder mergeRestore(com.google.cloud.gkebackup.v1.Restore value) { return this; } /** + * + * *
      * Required. The restore resource to create.
      * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRestore() { if (restoreBuilder_ == null) { @@ -819,48 +925,64 @@ public Builder clearRestore() { return this; } /** + * + * *
      * Required. The restore resource to create.
      * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkebackup.v1.Restore.Builder getRestoreBuilder() { - + onChanged(); return getRestoreFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The restore resource to create.
      * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() { if (restoreBuilder_ != null) { return restoreBuilder_.getMessageOrBuilder(); } else { - return restore_ == null ? - com.google.cloud.gkebackup.v1.Restore.getDefaultInstance() : restore_; + return restore_ == null + ? com.google.cloud.gkebackup.v1.Restore.getDefaultInstance() + : restore_; } } /** + * + * *
      * Required. The restore resource to create.
      * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Restore, com.google.cloud.gkebackup.v1.Restore.Builder, com.google.cloud.gkebackup.v1.RestoreOrBuilder> + com.google.cloud.gkebackup.v1.Restore, + com.google.cloud.gkebackup.v1.Restore.Builder, + com.google.cloud.gkebackup.v1.RestoreOrBuilder> getRestoreFieldBuilder() { if (restoreBuilder_ == null) { - restoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Restore, com.google.cloud.gkebackup.v1.Restore.Builder, com.google.cloud.gkebackup.v1.RestoreOrBuilder>( - getRestore(), - getParentForChildren(), - isClean()); + restoreBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.Restore, + com.google.cloud.gkebackup.v1.Restore.Builder, + com.google.cloud.gkebackup.v1.RestoreOrBuilder>( + getRestore(), getParentForChildren(), isClean()); restore_ = null; } return restoreBuilder_; @@ -868,6 +990,8 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() { private java.lang.Object restoreId_ = ""; /** + * + * *
      * Required. The client-provided short name for the Restore resource.
      * This name must:
@@ -879,13 +1003,13 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() {
      * 
* * string restore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The restoreId. */ public java.lang.String getRestoreId() { java.lang.Object ref = restoreId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); restoreId_ = s; return s; @@ -894,6 +1018,8 @@ public java.lang.String getRestoreId() { } } /** + * + * *
      * Required. The client-provided short name for the Restore resource.
      * This name must:
@@ -905,15 +1031,14 @@ public java.lang.String getRestoreId() {
      * 
* * string restore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for restoreId. */ - public com.google.protobuf.ByteString - getRestoreIdBytes() { + public com.google.protobuf.ByteString getRestoreIdBytes() { java.lang.Object ref = restoreId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); restoreId_ = b; return b; } else { @@ -921,6 +1046,8 @@ public java.lang.String getRestoreId() { } } /** + * + * *
      * Required. The client-provided short name for the Restore resource.
      * This name must:
@@ -932,20 +1059,22 @@ public java.lang.String getRestoreId() {
      * 
* * string restore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The restoreId to set. * @return This builder for chaining. */ - public Builder setRestoreId( - java.lang.String value) { + public Builder setRestoreId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + restoreId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The client-provided short name for the Restore resource.
      * This name must:
@@ -957,15 +1086,18 @@ public Builder setRestoreId(
      * 
* * string restore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRestoreId() { - + restoreId_ = getDefaultInstance().getRestoreId(); onChanged(); return this; } /** + * + * *
      * Required. The client-provided short name for the Restore resource.
      * This name must:
@@ -977,23 +1109,23 @@ public Builder clearRestoreId() {
      * 
* * string restore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for restoreId to set. * @return This builder for chaining. */ - public Builder setRestoreIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRestoreIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + restoreId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1003,12 +1135,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.CreateRestoreRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.CreateRestoreRequest) private static final com.google.cloud.gkebackup.v1.CreateRestoreRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.CreateRestoreRequest(); } @@ -1017,16 +1149,16 @@ public static com.google.cloud.gkebackup.v1.CreateRestoreRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRestoreRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateRestoreRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRestoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateRestoreRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1041,6 +1173,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.CreateRestoreRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequestOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequestOrBuilder.java index 52854bc..c25d468 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequestOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CreateRestoreRequestOrBuilder.java @@ -1,62 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface CreateRestoreRequestOrBuilder extends +public interface CreateRestoreRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.CreateRestoreRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The RestorePlan within which to create the Restore.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * string 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 RestorePlan within which to create the Restore.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The restore resource to create.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the restore field is set. */ boolean hasRestore(); /** + * + * *
    * Required. The restore resource to create.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The restore. */ com.google.cloud.gkebackup.v1.Restore getRestore(); /** + * + * *
    * Required. The restore resource to create.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder(); /** + * + * *
    * Required. The client-provided short name for the Restore resource.
    * This name must:
@@ -68,10 +106,13 @@ public interface CreateRestoreRequestOrBuilder extends
    * 
* * string restore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The restoreId. */ java.lang.String getRestoreId(); /** + * + * *
    * Required. The client-provided short name for the Restore resource.
    * This name must:
@@ -83,8 +124,8 @@ public interface CreateRestoreRequestOrBuilder extends
    * 
* * string restore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for restoreId. */ - com.google.protobuf.ByteString - getRestoreIdBytes(); + com.google.protobuf.ByteString getRestoreIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequest.java index a38bba0..fbdd6de 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for DeleteBackupPlan.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.DeleteBackupPlanRequest} */ -public final class DeleteBackupPlanRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteBackupPlanRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.DeleteBackupPlanRequest) DeleteBackupPlanRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteBackupPlanRequest.newBuilder() to construct. private DeleteBackupPlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteBackupPlanRequest() { name_ = ""; etag_ = ""; @@ -26,16 +44,15 @@ private DeleteBackupPlanRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteBackupPlanRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteBackupPlanRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private DeleteBackupPlanRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + etag_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,35 +99,42 @@ private DeleteBackupPlanRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.class, com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.class, + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Fully qualified BackupPlan name.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * 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 @@ -117,30 +143,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. Fully qualified BackupPlan name.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * 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 { @@ -151,6 +179,8 @@ public java.lang.String getName() { public static final int ETAG_FIELD_NUMBER = 2; private volatile java.lang.Object etag_; /** + * + * *
    * If provided, this value must match the current value of the
    * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field or the request is
@@ -158,6 +188,7 @@ public java.lang.String getName() {
    * 
* * string etag = 2; + * * @return The etag. */ @java.lang.Override @@ -166,14 +197,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; } } /** + * + * *
    * If provided, this value must match the current value of the
    * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field or the request is
@@ -181,16 +213,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 2; + * * @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 { @@ -199,6 +230,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,8 +242,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_); } @@ -241,17 +272,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest other = (com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest) obj; + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest other = + (com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -273,117 +303,127 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 DeleteBackupPlan.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.DeleteBackupPlanRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.DeleteBackupPlanRequest) com.google.cloud.gkebackup.v1.DeleteBackupPlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.class, com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.class, + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.newBuilder() @@ -391,16 +431,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +451,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor; } @java.lang.Override @@ -433,7 +472,8 @@ public com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest buildPartial() { - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest result = new com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest(this); + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest result = + new com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest(this); result.name_ = name_; result.etag_ = etag_; onBuilt(); @@ -444,38 +484,39 @@ public com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest 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.cloud.gkebackup.v1.DeleteBackupPlanRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest) other); } else { super.mergeFrom(other); return this; @@ -483,7 +524,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest other) { - if (other == com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -511,7 +553,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -523,19 +566,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Fully qualified BackupPlan name.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * 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; @@ -544,21 +591,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Fully qualified BackupPlan name.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * 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 { @@ -566,57 +616,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Fully qualified BackupPlan name.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Fully qualified BackupPlan name.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Fully qualified BackupPlan name.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -624,6 +687,8 @@ public Builder setNameBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * If provided, this value must match the current value of the
      * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field or the request is
@@ -631,13 +696,13 @@ public Builder setNameBytes(
      * 
* * string etag = 2; + * * @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; @@ -646,6 +711,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If provided, this value must match the current value of the
      * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field or the request is
@@ -653,15 +720,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2; + * * @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 { @@ -669,6 +735,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If provided, this value must match the current value of the
      * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field or the request is
@@ -676,20 +744,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * If provided, this value must match the current value of the
      * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field or the request is
@@ -697,15 +767,18 @@ public Builder setEtag(
      * 
* * string etag = 2; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * If provided, this value must match the current value of the
      * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field or the request is
@@ -713,23 +786,23 @@ public Builder clearEtag() {
      * 
* * string etag = 2; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -739,12 +812,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.DeleteBackupPlanRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.DeleteBackupPlanRequest) private static final com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest(); } @@ -753,16 +826,16 @@ public static com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBackupPlanRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteBackupPlanRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBackupPlanRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteBackupPlanRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -777,6 +850,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequestOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequestOrBuilder.java index cf4a1bb..b655f0a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequestOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupPlanRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface DeleteBackupPlanRequestOrBuilder extends +public interface DeleteBackupPlanRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.DeleteBackupPlanRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Fully qualified BackupPlan name.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * 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. Fully qualified BackupPlan name.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * 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 provided, this value must match the current value of the
    * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field or the request is
@@ -37,10 +64,13 @@ public interface DeleteBackupPlanRequestOrBuilder extends
    * 
* * string etag = 2; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * If provided, this value must match the current value of the
    * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field or the request is
@@ -48,8 +78,8 @@ public interface DeleteBackupPlanRequestOrBuilder extends
    * 
* * string etag = 2; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequest.java index 33c4a5e..b18ad7e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for DeleteBackup.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.DeleteBackupRequest} */ -public final class DeleteBackupRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteBackupRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.DeleteBackupRequest) DeleteBackupRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteBackupRequest.newBuilder() to construct. private DeleteBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteBackupRequest() { name_ = ""; etag_ = ""; @@ -26,16 +44,15 @@ private DeleteBackupRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteBackupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteBackupRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private DeleteBackupRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - case 24: { + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - force_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + etag_ = s; + break; + } + case 24: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private DeleteBackupRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.DeleteBackupRequest.class, com.google.cloud.gkebackup.v1.DeleteBackupRequest.Builder.class); + com.google.cloud.gkebackup.v1.DeleteBackupRequest.class, + com.google.cloud.gkebackup.v1.DeleteBackupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the Backup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*
    * 
* - * 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 @@ -122,30 +148,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 Backup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*
    * 
* - * 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 { @@ -156,6 +184,8 @@ public java.lang.String getName() { public static final int ETAG_FIELD_NUMBER = 2; private volatile java.lang.Object etag_; /** + * + * *
    * If provided, this value must match the current value of the
    * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the request is
@@ -163,6 +193,7 @@ public java.lang.String getName() {
    * 
* * string etag = 2; + * * @return The etag. */ @java.lang.Override @@ -171,14 +202,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; } } /** + * + * *
    * If provided, this value must match the current value of the
    * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the request is
@@ -186,16 +218,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 2; + * * @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 { @@ -206,6 +237,8 @@ public java.lang.String getEtag() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_; /** + * + * *
    * If set to true, any VolumeBackups below this Backup will also be deleted.
    * Otherwise, the request will only succeed if the Backup has no
@@ -213,6 +246,7 @@ public java.lang.String getEtag() {
    * 
* * bool force = 3; + * * @return The force. */ @java.lang.Override @@ -221,6 +255,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +267,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_); } @@ -259,8 +293,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -270,19 +303,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.DeleteBackupRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.DeleteBackupRequest other = (com.google.cloud.gkebackup.v1.DeleteBackupRequest) obj; + com.google.cloud.gkebackup.v1.DeleteBackupRequest other = + (com.google.cloud.gkebackup.v1.DeleteBackupRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (getForce() - != other.getForce()) return false; + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getForce() != other.getForce()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -299,125 +330,133 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.DeleteBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.DeleteBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 DeleteBackup.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.DeleteBackupRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.DeleteBackupRequest) com.google.cloud.gkebackup.v1.DeleteBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.DeleteBackupRequest.class, com.google.cloud.gkebackup.v1.DeleteBackupRequest.Builder.class); + com.google.cloud.gkebackup.v1.DeleteBackupRequest.class, + com.google.cloud.gkebackup.v1.DeleteBackupRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.DeleteBackupRequest.newBuilder() @@ -425,16 +464,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +486,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor; } @java.lang.Override @@ -469,7 +507,8 @@ public com.google.cloud.gkebackup.v1.DeleteBackupRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.DeleteBackupRequest buildPartial() { - com.google.cloud.gkebackup.v1.DeleteBackupRequest result = new com.google.cloud.gkebackup.v1.DeleteBackupRequest(this); + com.google.cloud.gkebackup.v1.DeleteBackupRequest result = + new com.google.cloud.gkebackup.v1.DeleteBackupRequest(this); result.name_ = name_; result.etag_ = etag_; result.force_ = force_; @@ -481,38 +520,39 @@ public com.google.cloud.gkebackup.v1.DeleteBackupRequest 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.cloud.gkebackup.v1.DeleteBackupRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.DeleteBackupRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.DeleteBackupRequest) other); } else { super.mergeFrom(other); return this; @@ -520,7 +560,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.DeleteBackupRequest other) { - if (other == com.google.cloud.gkebackup.v1.DeleteBackupRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.DeleteBackupRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -551,7 +592,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.DeleteBackupRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.DeleteBackupRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,19 +605,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the Backup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * 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; @@ -584,21 +630,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the Backup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * 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 { @@ -606,57 +655,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the Backup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the Backup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the Backup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -664,6 +726,8 @@ public Builder setNameBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * If provided, this value must match the current value of the
      * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the request is
@@ -671,13 +735,13 @@ public Builder setNameBytes(
      * 
* * string etag = 2; + * * @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; @@ -686,6 +750,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If provided, this value must match the current value of the
      * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the request is
@@ -693,15 +759,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2; + * * @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 { @@ -709,6 +774,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If provided, this value must match the current value of the
      * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the request is
@@ -716,20 +783,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * If provided, this value must match the current value of the
      * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the request is
@@ -737,15 +806,18 @@ public Builder setEtag(
      * 
* * string etag = 2; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * If provided, this value must match the current value of the
      * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the request is
@@ -753,23 +825,25 @@ public Builder clearEtag() {
      * 
* * string etag = 2; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * If set to true, any VolumeBackups below this Backup will also be deleted.
      * Otherwise, the request will only succeed if the Backup has no
@@ -777,6 +851,7 @@ public Builder setEtagBytes(
      * 
* * bool force = 3; + * * @return The force. */ @java.lang.Override @@ -784,6 +859,8 @@ public boolean getForce() { return force_; } /** + * + * *
      * If set to true, any VolumeBackups below this Backup will also be deleted.
      * Otherwise, the request will only succeed if the Backup has no
@@ -791,16 +868,19 @@ public boolean getForce() {
      * 
* * bool force = 3; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** + * + * *
      * If set to true, any VolumeBackups below this Backup will also be deleted.
      * Otherwise, the request will only succeed if the Backup has no
@@ -808,17 +888,18 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 3; + * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -828,12 +909,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.DeleteBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.DeleteBackupRequest) private static final com.google.cloud.gkebackup.v1.DeleteBackupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.DeleteBackupRequest(); } @@ -842,16 +923,16 @@ public static com.google.cloud.gkebackup.v1.DeleteBackupRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteBackupRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteBackupRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -866,6 +947,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.DeleteBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequestOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequestOrBuilder.java index 502e5d3..e37186f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequestOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteBackupRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface DeleteBackupRequestOrBuilder extends +public interface DeleteBackupRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.DeleteBackupRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the Backup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Name of the Backup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*
    * 
* - * 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 provided, this value must match the current value of the
    * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the request is
@@ -37,10 +64,13 @@ public interface DeleteBackupRequestOrBuilder extends
    * 
* * string etag = 2; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * If provided, this value must match the current value of the
    * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the request is
@@ -48,12 +78,14 @@ public interface DeleteBackupRequestOrBuilder extends
    * 
* * string etag = 2; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * If set to true, any VolumeBackups below this Backup will also be deleted.
    * Otherwise, the request will only succeed if the Backup has no
@@ -61,6 +93,7 @@ public interface DeleteBackupRequestOrBuilder extends
    * 
* * bool force = 3; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequest.java index 5ed8784..ad8a42c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for DeleteRestorePlan.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.DeleteRestorePlanRequest} */ -public final class DeleteRestorePlanRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteRestorePlanRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.DeleteRestorePlanRequest) DeleteRestorePlanRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteRestorePlanRequest.newBuilder() to construct. private DeleteRestorePlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteRestorePlanRequest() { name_ = ""; etag_ = ""; @@ -26,16 +44,15 @@ private DeleteRestorePlanRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteRestorePlanRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteRestorePlanRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private DeleteRestorePlanRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - case 24: { + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - force_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + etag_ = s; + break; + } + case 24: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private DeleteRestorePlanRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.class, com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.class, + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Fully qualified RestorePlan name.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * 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 @@ -122,30 +148,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. Fully qualified RestorePlan name.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * 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 { @@ -156,6 +184,8 @@ public java.lang.String getName() { public static final int ETAG_FIELD_NUMBER = 2; private volatile java.lang.Object etag_; /** + * + * *
    * If provided, this value must match the current value of the
    * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag] field or the request is
@@ -163,6 +193,7 @@ public java.lang.String getName() {
    * 
* * string etag = 2; + * * @return The etag. */ @java.lang.Override @@ -171,14 +202,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; } } /** + * + * *
    * If provided, this value must match the current value of the
    * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag] field or the request is
@@ -186,16 +218,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 2; + * * @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 { @@ -206,6 +237,8 @@ public java.lang.String getEtag() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_; /** + * + * *
    * If set to true, any Restores below this RestorePlan will also be deleted.
    * Otherwise, the request will only succeed if the RestorePlan has no
@@ -213,6 +246,7 @@ public java.lang.String getEtag() {
    * 
* * bool force = 3; + * * @return The force. */ @java.lang.Override @@ -221,6 +255,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +267,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_); } @@ -259,8 +293,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -270,19 +303,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest other = (com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest) obj; + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest other = + (com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (getForce() - != other.getForce()) return false; + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getForce() != other.getForce()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -299,125 +330,134 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 DeleteRestorePlan.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.DeleteRestorePlanRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.DeleteRestorePlanRequest) com.google.cloud.gkebackup.v1.DeleteRestorePlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.class, com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.class, + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.newBuilder() @@ -425,16 +465,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor; } @java.lang.Override @@ -469,7 +508,8 @@ public com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest buildPartial() { - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest result = new com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest(this); + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest result = + new com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest(this); result.name_ = name_; result.etag_ = etag_; result.force_ = force_; @@ -481,38 +521,39 @@ public com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest 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.cloud.gkebackup.v1.DeleteRestorePlanRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest) other); } else { super.mergeFrom(other); return this; @@ -520,7 +561,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest other) { - if (other == com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -551,7 +593,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,19 +606,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Fully qualified RestorePlan name.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * 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; @@ -584,21 +631,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Fully qualified RestorePlan name.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * 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 { @@ -606,57 +656,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Fully qualified RestorePlan name.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Fully qualified RestorePlan name.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Fully qualified RestorePlan name.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -664,6 +727,8 @@ public Builder setNameBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * If provided, this value must match the current value of the
      * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag] field or the request is
@@ -671,13 +736,13 @@ public Builder setNameBytes(
      * 
* * string etag = 2; + * * @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; @@ -686,6 +751,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If provided, this value must match the current value of the
      * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag] field or the request is
@@ -693,15 +760,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2; + * * @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 { @@ -709,6 +775,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If provided, this value must match the current value of the
      * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag] field or the request is
@@ -716,20 +784,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * If provided, this value must match the current value of the
      * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag] field or the request is
@@ -737,15 +807,18 @@ public Builder setEtag(
      * 
* * string etag = 2; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * If provided, this value must match the current value of the
      * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag] field or the request is
@@ -753,23 +826,25 @@ public Builder clearEtag() {
      * 
* * string etag = 2; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * If set to true, any Restores below this RestorePlan will also be deleted.
      * Otherwise, the request will only succeed if the RestorePlan has no
@@ -777,6 +852,7 @@ public Builder setEtagBytes(
      * 
* * bool force = 3; + * * @return The force. */ @java.lang.Override @@ -784,6 +860,8 @@ public boolean getForce() { return force_; } /** + * + * *
      * If set to true, any Restores below this RestorePlan will also be deleted.
      * Otherwise, the request will only succeed if the RestorePlan has no
@@ -791,16 +869,19 @@ public boolean getForce() {
      * 
* * bool force = 3; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** + * + * *
      * If set to true, any Restores below this RestorePlan will also be deleted.
      * Otherwise, the request will only succeed if the RestorePlan has no
@@ -808,17 +889,18 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 3; + * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -828,12 +910,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.DeleteRestorePlanRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.DeleteRestorePlanRequest) private static final com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest(); } @@ -842,16 +924,16 @@ public static com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRestorePlanRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteRestorePlanRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRestorePlanRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteRestorePlanRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -866,6 +948,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequestOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequestOrBuilder.java index 263c272..17cfe84 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequestOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestorePlanRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface DeleteRestorePlanRequestOrBuilder extends +public interface DeleteRestorePlanRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.DeleteRestorePlanRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Fully qualified RestorePlan name.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * 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. Fully qualified RestorePlan name.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * 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 provided, this value must match the current value of the
    * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag] field or the request is
@@ -37,10 +64,13 @@ public interface DeleteRestorePlanRequestOrBuilder extends
    * 
* * string etag = 2; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * If provided, this value must match the current value of the
    * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag] field or the request is
@@ -48,12 +78,14 @@ public interface DeleteRestorePlanRequestOrBuilder extends
    * 
* * string etag = 2; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * If set to true, any Restores below this RestorePlan will also be deleted.
    * Otherwise, the request will only succeed if the RestorePlan has no
@@ -61,6 +93,7 @@ public interface DeleteRestorePlanRequestOrBuilder extends
    * 
* * bool force = 3; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequest.java index 657fc24..175e50b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for DeleteRestore.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.DeleteRestoreRequest} */ -public final class DeleteRestoreRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteRestoreRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.DeleteRestoreRequest) DeleteRestoreRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteRestoreRequest.newBuilder() to construct. private DeleteRestoreRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteRestoreRequest() { name_ = ""; etag_ = ""; @@ -26,16 +44,15 @@ private DeleteRestoreRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteRestoreRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteRestoreRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private DeleteRestoreRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - case 24: { + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - force_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + etag_ = s; + break; + } + case 24: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private DeleteRestoreRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.DeleteRestoreRequest.class, com.google.cloud.gkebackup.v1.DeleteRestoreRequest.Builder.class); + com.google.cloud.gkebackup.v1.DeleteRestoreRequest.class, + com.google.cloud.gkebackup.v1.DeleteRestoreRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Full name of the Restore
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* - * 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 @@ -122,30 +148,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. Full name of the Restore
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* - * 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 { @@ -156,6 +184,8 @@ public java.lang.String getName() { public static final int ETAG_FIELD_NUMBER = 2; private volatile java.lang.Object etag_; /** + * + * *
    * If provided, this value must match the current value of the
    * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or the request is
@@ -163,6 +193,7 @@ public java.lang.String getName() {
    * 
* * string etag = 2; + * * @return The etag. */ @java.lang.Override @@ -171,14 +202,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; } } /** + * + * *
    * If provided, this value must match the current value of the
    * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or the request is
@@ -186,16 +218,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 2; + * * @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 { @@ -206,6 +237,8 @@ public java.lang.String getEtag() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_; /** + * + * *
    * If set to true, any VolumeRestores below this restore will also be deleted.
    * Otherwise, the request will only succeed if the restore has no
@@ -213,6 +246,7 @@ public java.lang.String getEtag() {
    * 
* * bool force = 3; + * * @return The force. */ @java.lang.Override @@ -221,6 +255,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +267,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_); } @@ -259,8 +293,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -270,19 +303,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.DeleteRestoreRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.DeleteRestoreRequest other = (com.google.cloud.gkebackup.v1.DeleteRestoreRequest) obj; + com.google.cloud.gkebackup.v1.DeleteRestoreRequest other = + (com.google.cloud.gkebackup.v1.DeleteRestoreRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (getForce() - != other.getForce()) return false; + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getForce() != other.getForce()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -299,125 +330,133 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.DeleteRestoreRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 DeleteRestore.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.DeleteRestoreRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.DeleteRestoreRequest) com.google.cloud.gkebackup.v1.DeleteRestoreRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.DeleteRestoreRequest.class, com.google.cloud.gkebackup.v1.DeleteRestoreRequest.Builder.class); + com.google.cloud.gkebackup.v1.DeleteRestoreRequest.class, + com.google.cloud.gkebackup.v1.DeleteRestoreRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.DeleteRestoreRequest.newBuilder() @@ -425,16 +464,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +486,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor; } @java.lang.Override @@ -469,7 +507,8 @@ public com.google.cloud.gkebackup.v1.DeleteRestoreRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.DeleteRestoreRequest buildPartial() { - com.google.cloud.gkebackup.v1.DeleteRestoreRequest result = new com.google.cloud.gkebackup.v1.DeleteRestoreRequest(this); + com.google.cloud.gkebackup.v1.DeleteRestoreRequest result = + new com.google.cloud.gkebackup.v1.DeleteRestoreRequest(this); result.name_ = name_; result.etag_ = etag_; result.force_ = force_; @@ -481,38 +520,39 @@ public com.google.cloud.gkebackup.v1.DeleteRestoreRequest 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.cloud.gkebackup.v1.DeleteRestoreRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.DeleteRestoreRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.DeleteRestoreRequest) other); } else { super.mergeFrom(other); return this; @@ -520,7 +560,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.DeleteRestoreRequest other) { - if (other == com.google.cloud.gkebackup.v1.DeleteRestoreRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.DeleteRestoreRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -551,7 +592,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.DeleteRestoreRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.DeleteRestoreRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,19 +605,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Full name of the Restore
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * 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; @@ -584,21 +630,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Full name of the Restore
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * 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 { @@ -606,57 +655,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Full name of the Restore
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Full name of the Restore
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Full name of the Restore
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -664,6 +726,8 @@ public Builder setNameBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * If provided, this value must match the current value of the
      * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or the request is
@@ -671,13 +735,13 @@ public Builder setNameBytes(
      * 
* * string etag = 2; + * * @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; @@ -686,6 +750,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If provided, this value must match the current value of the
      * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or the request is
@@ -693,15 +759,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2; + * * @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 { @@ -709,6 +774,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If provided, this value must match the current value of the
      * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or the request is
@@ -716,20 +783,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * If provided, this value must match the current value of the
      * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or the request is
@@ -737,15 +806,18 @@ public Builder setEtag(
      * 
* * string etag = 2; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * If provided, this value must match the current value of the
      * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or the request is
@@ -753,23 +825,25 @@ public Builder clearEtag() {
      * 
* * string etag = 2; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * If set to true, any VolumeRestores below this restore will also be deleted.
      * Otherwise, the request will only succeed if the restore has no
@@ -777,6 +851,7 @@ public Builder setEtagBytes(
      * 
* * bool force = 3; + * * @return The force. */ @java.lang.Override @@ -784,6 +859,8 @@ public boolean getForce() { return force_; } /** + * + * *
      * If set to true, any VolumeRestores below this restore will also be deleted.
      * Otherwise, the request will only succeed if the restore has no
@@ -791,16 +868,19 @@ public boolean getForce() {
      * 
* * bool force = 3; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** + * + * *
      * If set to true, any VolumeRestores below this restore will also be deleted.
      * Otherwise, the request will only succeed if the restore has no
@@ -808,17 +888,18 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 3; + * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -828,12 +909,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.DeleteRestoreRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.DeleteRestoreRequest) private static final com.google.cloud.gkebackup.v1.DeleteRestoreRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.DeleteRestoreRequest(); } @@ -842,16 +923,16 @@ public static com.google.cloud.gkebackup.v1.DeleteRestoreRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRestoreRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteRestoreRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRestoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteRestoreRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -866,6 +947,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.DeleteRestoreRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequestOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequestOrBuilder.java index 50b1fbd..cdb7643 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequestOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/DeleteRestoreRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface DeleteRestoreRequestOrBuilder extends +public interface DeleteRestoreRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.DeleteRestoreRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Full name of the Restore
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* - * 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. Full name of the Restore
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* - * 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 provided, this value must match the current value of the
    * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or the request is
@@ -37,10 +64,13 @@ public interface DeleteRestoreRequestOrBuilder extends
    * 
* * string etag = 2; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * If provided, this value must match the current value of the
    * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or the request is
@@ -48,12 +78,14 @@ public interface DeleteRestoreRequestOrBuilder extends
    * 
* * string etag = 2; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * If set to true, any VolumeRestores below this restore will also be deleted.
    * Otherwise, the request will only succeed if the restore has no
@@ -61,6 +93,7 @@ public interface DeleteRestoreRequestOrBuilder extends
    * 
* * bool force = 3; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKey.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKey.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKey.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKey.java index 4db7b95..b727042 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKey.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKey.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/common.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Defined a customer managed encryption key that will be used to encrypt Backup
  * artifacts.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.gkebackup.v1.EncryptionKey}
  */
-public final class EncryptionKey extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class EncryptionKey extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.EncryptionKey)
     EncryptionKeyOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use EncryptionKey.newBuilder() to construct.
   private EncryptionKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private EncryptionKey() {
     gcpKmsEncryptionKey_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new EncryptionKey();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private EncryptionKey(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,19 +71,20 @@ private EncryptionKey(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            gcpKmsEncryptionKey_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              gcpKmsEncryptionKey_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -74,35 +92,40 @@ private EncryptionKey(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkebackup.v1.CommonProto
+        .internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_EncryptionKey_fieldAccessorTable
+    return com.google.cloud.gkebackup.v1.CommonProto
+        .internal_static_google_cloud_gkebackup_v1_EncryptionKey_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkebackup.v1.EncryptionKey.class, com.google.cloud.gkebackup.v1.EncryptionKey.Builder.class);
+            com.google.cloud.gkebackup.v1.EncryptionKey.class,
+            com.google.cloud.gkebackup.v1.EncryptionKey.Builder.class);
   }
 
   public static final int GCP_KMS_ENCRYPTION_KEY_FIELD_NUMBER = 1;
   private volatile java.lang.Object gcpKmsEncryptionKey_;
   /**
+   *
+   *
    * 
    * Google Cloud KMS encryption key. Format:
    * projects/*/locations/*/keyRings/*/cryptoKeys/*
    * 
* * string gcp_kms_encryption_key = 1 [(.google.api.resource_reference) = { ... } + * * @return The gcpKmsEncryptionKey. */ @java.lang.Override @@ -111,30 +134,30 @@ public java.lang.String getGcpKmsEncryptionKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpKmsEncryptionKey_ = s; return s; } } /** + * + * *
    * Google Cloud KMS encryption key. Format:
    * projects/*/locations/*/keyRings/*/cryptoKeys/*
    * 
* * string gcp_kms_encryption_key = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for gcpKmsEncryptionKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcpKmsEncryptionKeyBytes() { + public com.google.protobuf.ByteString getGcpKmsEncryptionKeyBytes() { java.lang.Object ref = gcpKmsEncryptionKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcpKmsEncryptionKey_ = b; return b; } else { @@ -143,6 +166,7 @@ public java.lang.String getGcpKmsEncryptionKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -154,8 +178,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(gcpKmsEncryptionKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcpKmsEncryptionKey_); } @@ -179,15 +202,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.EncryptionKey)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.EncryptionKey other = (com.google.cloud.gkebackup.v1.EncryptionKey) obj; + com.google.cloud.gkebackup.v1.EncryptionKey other = + (com.google.cloud.gkebackup.v1.EncryptionKey) obj; - if (!getGcpKmsEncryptionKey() - .equals(other.getGcpKmsEncryptionKey())) return false; + if (!getGcpKmsEncryptionKey().equals(other.getGcpKmsEncryptionKey())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,97 +229,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.EncryptionKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.EncryptionKey parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.EncryptionKey parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.EncryptionKey parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.EncryptionKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Defined a customer managed encryption key that will be used to encrypt Backup
    * artifacts.
@@ -304,21 +334,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.EncryptionKey}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.EncryptionKey)
       com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkebackup.v1.CommonProto
+          .internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_EncryptionKey_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.CommonProto
+          .internal_static_google_cloud_gkebackup_v1_EncryptionKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.EncryptionKey.class, com.google.cloud.gkebackup.v1.EncryptionKey.Builder.class);
+              com.google.cloud.gkebackup.v1.EncryptionKey.class,
+              com.google.cloud.gkebackup.v1.EncryptionKey.Builder.class);
     }
 
     // Construct using com.google.cloud.gkebackup.v1.EncryptionKey.newBuilder()
@@ -326,16 +358,15 @@ 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) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -345,9 +376,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkebackup.v1.CommonProto
+          .internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor;
     }
 
     @java.lang.Override
@@ -366,7 +397,8 @@ public com.google.cloud.gkebackup.v1.EncryptionKey build() {
 
     @java.lang.Override
     public com.google.cloud.gkebackup.v1.EncryptionKey buildPartial() {
-      com.google.cloud.gkebackup.v1.EncryptionKey result = new com.google.cloud.gkebackup.v1.EncryptionKey(this);
+      com.google.cloud.gkebackup.v1.EncryptionKey result =
+          new com.google.cloud.gkebackup.v1.EncryptionKey(this);
       result.gcpKmsEncryptionKey_ = gcpKmsEncryptionKey_;
       onBuilt();
       return result;
@@ -376,38 +408,39 @@ public com.google.cloud.gkebackup.v1.EncryptionKey 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.cloud.gkebackup.v1.EncryptionKey) {
-        return mergeFrom((com.google.cloud.gkebackup.v1.EncryptionKey)other);
+        return mergeFrom((com.google.cloud.gkebackup.v1.EncryptionKey) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -451,19 +484,21 @@ public Builder mergeFrom(
 
     private java.lang.Object gcpKmsEncryptionKey_ = "";
     /**
+     *
+     *
      * 
      * Google Cloud KMS encryption key. Format:
      * projects/*/locations/*/keyRings/*/cryptoKeys/*
      * 
* * string gcp_kms_encryption_key = 1 [(.google.api.resource_reference) = { ... } + * * @return The gcpKmsEncryptionKey. */ public java.lang.String getGcpKmsEncryptionKey() { java.lang.Object ref = gcpKmsEncryptionKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpKmsEncryptionKey_ = s; return s; @@ -472,21 +507,22 @@ public java.lang.String getGcpKmsEncryptionKey() { } } /** + * + * *
      * Google Cloud KMS encryption key. Format:
      * projects/*/locations/*/keyRings/*/cryptoKeys/*
      * 
* * string gcp_kms_encryption_key = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for gcpKmsEncryptionKey. */ - public com.google.protobuf.ByteString - getGcpKmsEncryptionKeyBytes() { + public com.google.protobuf.ByteString getGcpKmsEncryptionKeyBytes() { java.lang.Object ref = gcpKmsEncryptionKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcpKmsEncryptionKey_ = b; return b; } else { @@ -494,64 +530,71 @@ public java.lang.String getGcpKmsEncryptionKey() { } } /** + * + * *
      * Google Cloud KMS encryption key. Format:
      * projects/*/locations/*/keyRings/*/cryptoKeys/*
      * 
* * string gcp_kms_encryption_key = 1 [(.google.api.resource_reference) = { ... } + * * @param value The gcpKmsEncryptionKey to set. * @return This builder for chaining. */ - public Builder setGcpKmsEncryptionKey( - java.lang.String value) { + public Builder setGcpKmsEncryptionKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcpKmsEncryptionKey_ = value; onChanged(); return this; } /** + * + * *
      * Google Cloud KMS encryption key. Format:
      * projects/*/locations/*/keyRings/*/cryptoKeys/*
      * 
* * string gcp_kms_encryption_key = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearGcpKmsEncryptionKey() { - + gcpKmsEncryptionKey_ = getDefaultInstance().getGcpKmsEncryptionKey(); onChanged(); return this; } /** + * + * *
      * Google Cloud KMS encryption key. Format:
      * projects/*/locations/*/keyRings/*/cryptoKeys/*
      * 
* * string gcp_kms_encryption_key = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for gcpKmsEncryptionKey to set. * @return This builder for chaining. */ - public Builder setGcpKmsEncryptionKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setGcpKmsEncryptionKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpKmsEncryptionKey_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -561,12 +604,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.EncryptionKey) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.EncryptionKey) private static final com.google.cloud.gkebackup.v1.EncryptionKey DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.EncryptionKey(); } @@ -575,16 +618,16 @@ public static com.google.cloud.gkebackup.v1.EncryptionKey getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EncryptionKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EncryptionKey(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EncryptionKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EncryptionKey(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -599,6 +642,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.EncryptionKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKeyOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKeyOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKeyOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKeyOrBuilder.java index c6817d1..b08040d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKeyOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/EncryptionKeyOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/common.proto package com.google.cloud.gkebackup.v1; -public interface EncryptionKeyOrBuilder extends +public interface EncryptionKeyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.EncryptionKey) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Google Cloud KMS encryption key. Format:
    * projects/*/locations/*/keyRings/*/cryptoKeys/*
    * 
* * string gcp_kms_encryption_key = 1 [(.google.api.resource_reference) = { ... } + * * @return The gcpKmsEncryptionKey. */ java.lang.String getGcpKmsEncryptionKey(); /** + * + * *
    * Google Cloud KMS encryption key. Format:
    * projects/*/locations/*/keyRings/*/cryptoKeys/*
    * 
* * string gcp_kms_encryption_key = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for gcpKmsEncryptionKey. */ - com.google.protobuf.ByteString - getGcpKmsEncryptionKeyBytes(); + com.google.protobuf.ByteString getGcpKmsEncryptionKeyBytes(); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GKEBackupProto.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GKEBackupProto.java new file mode 100644 index 0000000..1200c4f --- /dev/null +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GKEBackupProto.java @@ -0,0 +1,719 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/gkebackup.proto + +package com.google.cloud.gkebackup.v1; + +public final class GKEBackupProto { + private GKEBackupProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_GetBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/gkebackup/v1/gkebackup.pr" + + "oto\022\031google.cloud.gkebackup.v1\032\034google/a" + + "pi/annotations.proto\032\027google/api/client." + + "proto\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032&google/cloud/" + + "gkebackup/v1/backup.proto\032+google/cloud/" + + "gkebackup/v1/backup_plan.proto\032\'google/c" + + "loud/gkebackup/v1/restore.proto\032,google/" + + "cloud/gkebackup/v1/restore_plan.proto\032&g" + + "oogle/cloud/gkebackup/v1/volume.proto\032#g" + + "oogle/longrunning/operations.proto\032 goog" + + "le/protobuf/field_mask.proto\032\037google/pro" + + "tobuf/timestamp.proto\"\200\002\n\021OperationMetad" + + "ata\0224\n\013create_time\030\001 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022\023\n\006target\030\003" + + " \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_m" + + "essage\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellat" + + "ion\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003" + + "\"\262\001\n\027CreateBackupPlanRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022?\n\013backup_plan\030\002 \001(\0132%.google.cl" + + "oud.gkebackup.v1.BackupPlanB\003\340A\002\022\033\n\016back" + + "up_plan_id\030\003 \001(\tB\003\340A\002\"\234\001\n\026ListBackupPlan" + + "sRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locati" + + "ons.googleapis.com/Location\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001" + + "(\t\022\020\n\010order_by\030\005 \001(\t\"\204\001\n\027ListBackupPlans" + + "Response\022;\n\014backup_plans\030\001 \003(\0132%.google." + + "cloud.gkebackup.v1.BackupPlan\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\024G" + + "etBackupPlanRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A" + + "%\n#gkebackup.googleapis.com/BackupPlan\"\213" + + "\001\n\027UpdateBackupPlanRequest\022?\n\013backup_pla" + + "n\030\001 \001(\0132%.google.cloud.gkebackup.v1.Back" + + "upPlanB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMask\"b\n\027DeleteBackupPlan" + + "Request\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#gkebackup" + + ".googleapis.com/BackupPlan\022\014\n\004etag\030\002 \001(\t" + + "\"\230\001\n\023CreateBackupRequest\022;\n\006parent\030\001 \001(\t" + + "B+\340A\002\372A%\n#gkebackup.googleapis.com/Backu" + + "pPlan\0221\n\006backup\030\002 \001(\0132!.google.cloud.gke" + + "backup.v1.Backup\022\021\n\tbackup_id\030\003 \001(\t\"\232\001\n\022" + + "ListBackupsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372" + + "A%\n#gkebackup.googleapis.com/BackupPlan\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016" + + "\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"b\n\023List" + + "BackupsResponse\0222\n\007backups\030\001 \003(\0132!.googl" + + "e.cloud.gkebackup.v1.Backup\022\027\n\017next_page" + + "_token\030\002 \001(\t\"I\n\020GetBackupRequest\0225\n\004name" + + "\030\001 \001(\tB\'\340A\002\372A!\n\037gkebackup.googleapis.com" + + "/Backup\"~\n\023UpdateBackupRequest\0226\n\006backup" + + "\030\001 \001(\0132!.google.cloud.gkebackup.v1.Backu" + + "pB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.pro" + + "tobuf.FieldMask\"i\n\023DeleteBackupRequest\0225" + + "\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037gkebackup.googleap" + + "is.com/Backup\022\014\n\004etag\030\002 \001(\t\022\r\n\005force\030\003 \001" + + "(\010\"\234\001\n\030ListVolumeBackupsRequest\0227\n\006paren" + + "t\030\001 \001(\tB\'\340A\002\372A!\n\037gkebackup.googleapis.co" + + "m/Backup\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + + "n\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(" + + "\t\"u\n\031ListVolumeBackupsResponse\022?\n\016volume" + + "_backups\030\001 \003(\0132\'.google.cloud.gkebackup." + + "v1.VolumeBackup\022\027\n\017next_page_token\030\002 \001(\t" + + "\"U\n\026GetVolumeBackupRequest\022;\n\004name\030\001 \001(\t" + + "B-\340A\002\372A\'\n%gkebackup.googleapis.com/Volum" + + "eBackup\"\266\001\n\030CreateRestorePlanRequest\0229\n\006" + + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\022A\n\014restore_plan\030\002 \001(\0132&." + + "google.cloud.gkebackup.v1.RestorePlanB\003\340" + + "A\002\022\034\n\017restore_plan_id\030\003 \001(\tB\003\340A\002\"\235\001\n\027Lis" + + "tRestorePlansRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016" + + "\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\207\001\n\030Lis" + + "tRestorePlansResponse\022=\n\rrestore_plans\030\001" + + " \003(\0132&.google.cloud.gkebackup.v1.Restore" + + "Plan\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" + + "able\030\003 \003(\t\"S\n\025GetRestorePlanRequest\022:\n\004n" + + "ame\030\001 \001(\tB,\340A\002\372A&\n$gkebackup.googleapis." + + "com/RestorePlan\"\216\001\n\030UpdateRestorePlanReq" + + "uest\022A\n\014restore_plan\030\001 \001(\0132&.google.clou" + + "d.gkebackup.v1.RestorePlanB\003\340A\002\022/\n\013updat" + + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + + "\"s\n\030DeleteRestorePlanRequest\022:\n\004name\030\001 \001" + + "(\tB,\340A\002\372A&\n$gkebackup.googleapis.com/Res" + + "torePlan\022\014\n\004etag\030\002 \001(\t\022\r\n\005force\030\003 \001(\010\"\247\001" + + "\n\024CreateRestoreRequest\022<\n\006parent\030\001 \001(\tB," + + "\340A\002\372A&\n$gkebackup.googleapis.com/Restore" + + "Plan\0228\n\007restore\030\002 \001(\0132\".google.cloud.gke" + + "backup.v1.RestoreB\003\340A\002\022\027\n\nrestore_id\030\003 \001" + + "(\tB\003\340A\002\"\234\001\n\023ListRestoresRequest\022<\n\006paren" + + "t\030\001 \001(\tB,\340A\002\372A&\n$gkebackup.googleapis.co" + + "m/RestorePlan\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" + + "\030\005 \001(\t\"z\n\024ListRestoresResponse\0224\n\010restor" + + "es\030\001 \003(\0132\".google.cloud.gkebackup.v1.Res" + + "tore\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" + + "able\030\003 \003(\t\"K\n\021GetRestoreRequest\0226\n\004name\030" + + "\001 \001(\tB(\340A\002\372A\"\n gkebackup.googleapis.com/" + + "Restore\"\201\001\n\024UpdateRestoreRequest\0228\n\007rest" + + "ore\030\001 \001(\0132\".google.cloud.gkebackup.v1.Re" + + "storeB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google" + + ".protobuf.FieldMask\"k\n\024DeleteRestoreRequ" + + "est\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n gkebackup.goo" + + "gleapis.com/Restore\022\014\n\004etag\030\002 \001(\t\022\r\n\005for" + + "ce\030\003 \001(\010\"\236\001\n\031ListVolumeRestoresRequest\0228" + + "\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n gkebackup.google" + + "apis.com/Restore\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" + + "age_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order" + + "_by\030\005 \001(\t\"x\n\032ListVolumeRestoresResponse\022" + + "A\n\017volume_restores\030\001 \003(\0132(.google.cloud." + + "gkebackup.v1.VolumeRestore\022\027\n\017next_page_" + + "token\030\002 \001(\t\"W\n\027GetVolumeRestoreRequest\022<" + + "\n\004name\030\001 \001(\tB.\340A\002\372A(\n&gkebackup.googleap" + + "is.com/VolumeRestore2\305(\n\014BackupForGKE\022\362\001" + + "\n\020CreateBackupPlan\0222.google.cloud.gkebac" + + "kup.v1.CreateBackupPlanRequest\032\035.google." + + "longrunning.Operation\"\212\001\202\323\344\223\002>\"//v1/{par" + + "ent=projects/*/locations/*}/backupPlans:" + + "\013backup_plan\332A!parent,backup_plan,backup" + + "_plan_id\312A\037\n\nBackupPlan\022\021OperationMetada" + + "ta\022\272\001\n\017ListBackupPlans\0221.google.cloud.gk" + + "ebackup.v1.ListBackupPlansRequest\0322.goog" + + "le.cloud.gkebackup.v1.ListBackupPlansRes" + + "ponse\"@\202\323\344\223\0021\022//v1/{parent=projects/*/lo" + + "cations/*}/backupPlans\332A\006parent\022\247\001\n\rGetB" + + "ackupPlan\022/.google.cloud.gkebackup.v1.Ge" + + "tBackupPlanRequest\032%.google.cloud.gkebac" + + "kup.v1.BackupPlan\">\202\323\344\223\0021\022//v1/{name=pro" + + "jects/*/locations/*/backupPlans/*}\332A\004nam" + + "e\022\364\001\n\020UpdateBackupPlan\0222.google.cloud.gk" + + "ebackup.v1.UpdateBackupPlanRequest\032\035.goo" + + "gle.longrunning.Operation\"\214\001\202\323\344\223\002J2;/v1/" + + "{backup_plan.name=projects/*/locations/*" + + "/backupPlans/*}:\013backup_plan\332A\027backup_pl" + + "an,update_mask\312A\037\n\nBackupPlan\022\021Operation" + + "Metadata\022\322\001\n\020DeleteBackupPlan\0222.google.c" + + "loud.gkebackup.v1.DeleteBackupPlanReques" + + "t\032\035.google.longrunning.Operation\"k\202\323\344\223\0021" + + "*//v1/{name=projects/*/locations/*/backu" + + "pPlans/*}\332A\004name\312A*\n\025google.protobuf.Emp" + + "ty\022\021OperationMetadata\022\341\001\n\014CreateBackup\022." + + ".google.cloud.gkebackup.v1.CreateBackupR" + + "equest\032\035.google.longrunning.Operation\"\201\001" + + "\202\323\344\223\002C\"9/v1/{parent=projects/*/locations" + + "/*/backupPlans/*}/backups:\006backup\332A\027pare" + + "nt,backup,backup_id\312A\033\n\006Backup\022\021Operatio" + + "nMetadata\022\270\001\n\013ListBackups\022-.google.cloud" + + ".gkebackup.v1.ListBackupsRequest\032..googl" + + "e.cloud.gkebackup.v1.ListBackupsResponse" + + "\"J\202\323\344\223\002;\0229/v1/{parent=projects/*/locatio" + + "ns/*/backupPlans/*}/backups\332A\006parent\022\245\001\n" + + "\tGetBackup\022+.google.cloud.gkebackup.v1.G" + + "etBackupRequest\032!.google.cloud.gkebackup" + + ".v1.Backup\"H\202\323\344\223\002;\0229/v1/{name=projects/*" + + "/locations/*/backupPlans/*/backups/*}\332A\004" + + "name\022\343\001\n\014UpdateBackup\022..google.cloud.gke" + + "backup.v1.UpdateBackupRequest\032\035.google.l" + + "ongrunning.Operation\"\203\001\202\323\344\223\002J2@/v1/{back" + + "up.name=projects/*/locations/*/backupPla" + + "ns/*/backups/*}:\006backup\332A\022backup,update_" + + "mask\312A\033\n\006Backup\022\021OperationMetadata\022\324\001\n\014D" + + "eleteBackup\022..google.cloud.gkebackup.v1." + + "DeleteBackupRequest\032\035.google.longrunning" + + ".Operation\"u\202\323\344\223\002;*9/v1/{name=projects/*" + + "/locations/*/backupPlans/*/backups/*}\332A\004" + + "name\312A*\n\025google.protobuf.Empty\022\021Operatio" + + "nMetadata\022\332\001\n\021ListVolumeBackups\0223.google" + + ".cloud.gkebackup.v1.ListVolumeBackupsReq" + + "uest\0324.google.cloud.gkebackup.v1.ListVol" + + "umeBackupsResponse\"Z\202\323\344\223\002K\022I/v1/{parent=" + + "projects/*/locations/*/backupPlans/*/bac" + + "kups/*}/volumeBackups\332A\006parent\022\307\001\n\017GetVo" + + "lumeBackup\0221.google.cloud.gkebackup.v1.G" + + "etVolumeBackupRequest\032\'.google.cloud.gke" + + "backup.v1.VolumeBackup\"X\202\323\344\223\002K\022I/v1/{nam" + + "e=projects/*/locations/*/backupPlans/*/b" + + "ackups/*/volumeBackups/*}\332A\004name\022\371\001\n\021Cre" + + "ateRestorePlan\0223.google.cloud.gkebackup." + + "v1.CreateRestorePlanRequest\032\035.google.lon" + + "grunning.Operation\"\217\001\202\323\344\223\002@\"0/v1/{parent" + + "=projects/*/locations/*}/restorePlans:\014r" + + "estore_plan\332A#parent,restore_plan,restor" + + "e_plan_id\312A \n\013RestorePlan\022\021OperationMeta" + + "data\022\276\001\n\020ListRestorePlans\0222.google.cloud" + + ".gkebackup.v1.ListRestorePlansRequest\0323." + + "google.cloud.gkebackup.v1.ListRestorePla" + + "nsResponse\"A\202\323\344\223\0022\0220/v1/{parent=projects" + + "/*/locations/*}/restorePlans\332A\006parent\022\253\001" + + "\n\016GetRestorePlan\0220.google.cloud.gkebacku" + + "p.v1.GetRestorePlanRequest\032&.google.clou" + + "d.gkebackup.v1.RestorePlan\"?\202\323\344\223\0022\0220/v1/" + + "{name=projects/*/locations/*/restorePlan" + + "s/*}\332A\004name\022\373\001\n\021UpdateRestorePlan\0223.goog" + + "le.cloud.gkebackup.v1.UpdateRestorePlanR" + + "equest\032\035.google.longrunning.Operation\"\221\001" + + "\202\323\344\223\002M2=/v1/{restore_plan.name=projects/" + + "*/locations/*/restorePlans/*}:\014restore_p" + + "lan\332A\030restore_plan,update_mask\312A \n\013Resto" + + "rePlan\022\021OperationMetadata\022\325\001\n\021DeleteRest" + + "orePlan\0223.google.cloud.gkebackup.v1.Dele" + + "teRestorePlanRequest\032\035.google.longrunnin" + + "g.Operation\"l\202\323\344\223\0022*0/v1/{name=projects/" + + "*/locations/*/restorePlans/*}\332A\004name\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadat" + + "a\022\351\001\n\rCreateRestore\022/.google.cloud.gkeba" + + "ckup.v1.CreateRestoreRequest\032\035.google.lo" + + "ngrunning.Operation\"\207\001\202\323\344\223\002F\";/v1/{paren" + + "t=projects/*/locations/*/restorePlans/*}" + + "/restores:\007restore\332A\031parent,restore,rest" + + "ore_id\312A\034\n\007Restore\022\021OperationMetadata\022\275\001" + + "\n\014ListRestores\022..google.cloud.gkebackup." + + "v1.ListRestoresRequest\032/.google.cloud.gk" + + "ebackup.v1.ListRestoresResponse\"L\202\323\344\223\002=\022" + + ";/v1/{parent=projects/*/locations/*/rest" + + "orePlans/*}/restores\332A\006parent\022\252\001\n\nGetRes" + + "tore\022,.google.cloud.gkebackup.v1.GetRest" + + "oreRequest\032\".google.cloud.gkebackup.v1.R" + + "estore\"J\202\323\344\223\002=\022;/v1/{name=projects/*/loc" + + "ations/*/restorePlans/*/restores/*}\332A\004na" + + "me\022\353\001\n\rUpdateRestore\022/.google.cloud.gkeb" + + "ackup.v1.UpdateRestoreRequest\032\035.google.l" + + "ongrunning.Operation\"\211\001\202\323\344\223\002N2C/v1/{rest" + + "ore.name=projects/*/locations/*/restoreP" + + "lans/*/restores/*}:\007restore\332A\023restore,up" + + "date_mask\312A\034\n\007Restore\022\021OperationMetadata" + + "\022\330\001\n\rDeleteRestore\022/.google.cloud.gkebac" + + "kup.v1.DeleteRestoreRequest\032\035.google.lon" + + "grunning.Operation\"w\202\323\344\223\002=*;/v1/{name=pr" + + "ojects/*/locations/*/restorePlans/*/rest" + + "ores/*}\332A\004name\312A*\n\025google.protobuf.Empty" + + "\022\021OperationMetadata\022\340\001\n\022ListVolumeRestor" + + "es\0224.google.cloud.gkebackup.v1.ListVolum" + + "eRestoresRequest\0325.google.cloud.gkebacku" + + "p.v1.ListVolumeRestoresResponse\"]\202\323\344\223\002N\022" + + "L/v1/{parent=projects/*/locations/*/rest" + + "orePlans/*/restores/*}/volumeRestores\332A\006" + + "parent\022\315\001\n\020GetVolumeRestore\0222.google.clo" + + "ud.gkebackup.v1.GetVolumeRestoreRequest\032" + + "(.google.cloud.gkebackup.v1.VolumeRestor" + + "e\"[\202\323\344\223\002N\022L/v1/{name=projects/*/location" + + "s/*/restorePlans/*/restores/*/volumeRest" + + "ores/*}\332A\004name\032L\312A\030gkebackup.googleapis." + + "com\322A.https://www.googleapis.com/auth/cl" + + "oud-platformB\250\003\n\035com.google.cloud.gkebac" + + "kup.v1B\016GKEBackupProtoP\001ZBgoogle.golang." + + "org/genproto/googleapis/cloud/gkebackup/" + + "v1;gkebackup\252\002\031Google.Cloud.GkeBackup.V1" + + "\312\002\031Google\\Cloud\\GkeBackup\\V1\352\002\034Google::C" + + "loud::GkeBackup::V1\352A^\n container.google" + + "apis.com/Cluster\022:projects/{project}/loc" + + "ations/{location}/clusters/{cluster}\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sproj" + + "ects/{project}/locations/{location}/keyR" + + "ings/{key_ring}/cryptoKeys/{crypto_key}b" + + "\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.gkebackup.v1.BackupProto.getDescriptor(), + com.google.cloud.gkebackup.v1.BackupPlanProto.getDescriptor(), + com.google.cloud.gkebackup.v1.RestoreProto.getDescriptor(), + com.google.cloud.gkebackup.v1.RestorePlanProto.getDescriptor(), + com.google.cloud.gkebackup.v1.VolumeProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkebackup_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_CreateBackupPlanRequest_descriptor, + new java.lang.String[] { + "Parent", "BackupPlan", "BackupPlanId", + }); + internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor, + new java.lang.String[] { + "BackupPlans", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor, + new java.lang.String[] { + "BackupPlan", "UpdateMask", + }); + internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_DeleteBackupPlanRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_CreateBackupRequest_descriptor, + new java.lang.String[] { + "Parent", "Backup", "BackupId", + }); + internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor, + new java.lang.String[] { + "Backups", "NextPageToken", + }); + internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_gkebackup_v1_GetBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor, + new java.lang.String[] { + "Backup", "UpdateMask", + }); + internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_DeleteBackupRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", "Force", + }); + internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor, + new java.lang.String[] { + "VolumeBackups", "NextPageToken", + }); + internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_CreateRestorePlanRequest_descriptor, + new java.lang.String[] { + "Parent", "RestorePlan", "RestorePlanId", + }); + internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor, + new java.lang.String[] { + "RestorePlans", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor, + new java.lang.String[] { + "RestorePlan", "UpdateMask", + }); + internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_DeleteRestorePlanRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", "Force", + }); + internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_CreateRestoreRequest_descriptor, + new java.lang.String[] { + "Parent", "Restore", "RestoreId", + }); + internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor, + new java.lang.String[] { + "Restores", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor, + new java.lang.String[] { + "Restore", "UpdateMask", + }); + internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_DeleteRestoreRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", "Force", + }); + internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor, + new java.lang.String[] { + "VolumeRestores", "NextPageToken", + }); + internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.gkebackup.v1.BackupProto.getDescriptor(); + com.google.cloud.gkebackup.v1.BackupPlanProto.getDescriptor(); + com.google.cloud.gkebackup.v1.RestoreProto.getDescriptor(); + com.google.cloud.gkebackup.v1.RestorePlanProto.getDescriptor(); + com.google.cloud.gkebackup.v1.VolumeProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequest.java index 2b425ca..3b090c0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for GetBackupPlan.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetBackupPlanRequest} */ -public final class GetBackupPlanRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetBackupPlanRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.GetBackupPlanRequest) GetBackupPlanRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetBackupPlanRequest.newBuilder() to construct. private GetBackupPlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetBackupPlanRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetBackupPlanRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetBackupPlanRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetBackupPlanRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetBackupPlanRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetBackupPlanRequest.class, com.google.cloud.gkebackup.v1.GetBackupPlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetBackupPlanRequest.class, + com.google.cloud.gkebackup.v1.GetBackupPlanRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Fully qualified BackupPlan name.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * 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 @@ -110,30 +135,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. Fully qualified BackupPlan name.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.GetBackupPlanRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.GetBackupPlanRequest other = (com.google.cloud.gkebackup.v1.GetBackupPlanRequest) obj; + com.google.cloud.gkebackup.v1.GetBackupPlanRequest other = + (com.google.cloud.gkebackup.v1.GetBackupPlanRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,126 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.GetBackupPlanRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetBackupPlan.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetBackupPlanRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.GetBackupPlanRequest) com.google.cloud.gkebackup.v1.GetBackupPlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetBackupPlanRequest.class, com.google.cloud.gkebackup.v1.GetBackupPlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetBackupPlanRequest.class, + com.google.cloud.gkebackup.v1.GetBackupPlanRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.GetBackupPlanRequest.newBuilder() @@ -324,16 +360,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetBackupPlanRequest_descriptor; } @java.lang.Override @@ -364,7 +399,8 @@ public com.google.cloud.gkebackup.v1.GetBackupPlanRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.GetBackupPlanRequest buildPartial() { - com.google.cloud.gkebackup.v1.GetBackupPlanRequest result = new com.google.cloud.gkebackup.v1.GetBackupPlanRequest(this); + com.google.cloud.gkebackup.v1.GetBackupPlanRequest result = + new com.google.cloud.gkebackup.v1.GetBackupPlanRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.cloud.gkebackup.v1.GetBackupPlanRequest 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.cloud.gkebackup.v1.GetBackupPlanRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.GetBackupPlanRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.GetBackupPlanRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +450,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.GetBackupPlanRequest other) { - if (other == com.google.cloud.gkebackup.v1.GetBackupPlanRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.GetBackupPlanRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +475,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.GetBackupPlanRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.GetBackupPlanRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +488,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Fully qualified BackupPlan name.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * 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; @@ -470,21 +513,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Fully qualified BackupPlan name.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * 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 { @@ -492,64 +538,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Fully qualified BackupPlan name.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Fully qualified BackupPlan name.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Fully qualified BackupPlan name.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +618,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.GetBackupPlanRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.GetBackupPlanRequest) private static final com.google.cloud.gkebackup.v1.GetBackupPlanRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.GetBackupPlanRequest(); } @@ -573,16 +632,16 @@ public static com.google.cloud.gkebackup.v1.GetBackupPlanRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBackupPlanRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetBackupPlanRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBackupPlanRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetBackupPlanRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +656,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.GetBackupPlanRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequestOrBuilder.java new file mode 100644 index 0000000..373aadd --- /dev/null +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupPlanRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/gkebackup.proto + +package com.google.cloud.gkebackup.v1; + +public interface GetBackupPlanRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetBackupPlanRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Fully qualified BackupPlan name.
+   * Format: projects/*/locations/*/backupPlans/*
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Fully qualified BackupPlan name.
+   * Format: projects/*/locations/*/backupPlans/*
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequest.java index 8868385..ca61070 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for GetBackup.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetBackupRequest} */ -public final class GetBackupRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetBackupRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.GetBackupRequest) GetBackupRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetBackupRequest.newBuilder() to construct. private GetBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetBackupRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetBackupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetBackupRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetBackupRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetBackupRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetBackupRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetBackupRequest.class, com.google.cloud.gkebackup.v1.GetBackupRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetBackupRequest.class, + com.google.cloud.gkebackup.v1.GetBackupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Full name of the Backup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*
    * 
* - * 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 @@ -110,30 +135,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. Full name of the Backup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*
    * 
* - * 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.GetBackupRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.GetBackupRequest other = (com.google.cloud.gkebackup.v1.GetBackupRequest) obj; + com.google.cloud.gkebackup.v1.GetBackupRequest other = + (com.google.cloud.gkebackup.v1.GetBackupRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +232,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetBackupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.GetBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.GetBackupRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.GetBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.GetBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetBackup.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetBackupRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.GetBackupRequest) com.google.cloud.gkebackup.v1.GetBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetBackupRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetBackupRequest.class, com.google.cloud.gkebackup.v1.GetBackupRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetBackupRequest.class, + com.google.cloud.gkebackup.v1.GetBackupRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.GetBackupRequest.newBuilder() @@ -324,16 +360,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetBackupRequest_descriptor; } @java.lang.Override @@ -364,7 +399,8 @@ public com.google.cloud.gkebackup.v1.GetBackupRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.GetBackupRequest buildPartial() { - com.google.cloud.gkebackup.v1.GetBackupRequest result = new com.google.cloud.gkebackup.v1.GetBackupRequest(this); + com.google.cloud.gkebackup.v1.GetBackupRequest result = + new com.google.cloud.gkebackup.v1.GetBackupRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.cloud.gkebackup.v1.GetBackupRequest 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.cloud.gkebackup.v1.GetBackupRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.GetBackupRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.GetBackupRequest) other); } else { super.mergeFrom(other); return this; @@ -449,19 +486,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Full name of the Backup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * 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; @@ -470,21 +511,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Full name of the Backup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * 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 { @@ -492,64 +536,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Full name of the Backup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Full name of the Backup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Full name of the Backup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +616,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.GetBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.GetBackupRequest) private static final com.google.cloud.gkebackup.v1.GetBackupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.GetBackupRequest(); } @@ -573,16 +630,16 @@ public static com.google.cloud.gkebackup.v1.GetBackupRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetBackupRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetBackupRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +654,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.GetBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequestOrBuilder.java new file mode 100644 index 0000000..5037dc3 --- /dev/null +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetBackupRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/gkebackup.proto + +package com.google.cloud.gkebackup.v1; + +public interface GetBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Full name of the Backup resource.
+   * Format: projects/*/locations/*/backupPlans/*/backups/*
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Full name of the Backup resource.
+   * Format: projects/*/locations/*/backupPlans/*/backups/*
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequest.java index 5b71f21..8f8d08d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for GetRestorePlan.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetRestorePlanRequest} */ -public final class GetRestorePlanRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetRestorePlanRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.GetRestorePlanRequest) GetRestorePlanRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetRestorePlanRequest.newBuilder() to construct. private GetRestorePlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetRestorePlanRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetRestorePlanRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetRestorePlanRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetRestorePlanRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetRestorePlanRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetRestorePlanRequest.class, com.google.cloud.gkebackup.v1.GetRestorePlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetRestorePlanRequest.class, + com.google.cloud.gkebackup.v1.GetRestorePlanRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Fully qualified RestorePlan name.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * 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 @@ -110,30 +135,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. Fully qualified RestorePlan name.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.GetRestorePlanRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.GetRestorePlanRequest other = (com.google.cloud.gkebackup.v1.GetRestorePlanRequest) obj; + com.google.cloud.gkebackup.v1.GetRestorePlanRequest other = + (com.google.cloud.gkebackup.v1.GetRestorePlanRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,126 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.GetRestorePlanRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetRestorePlan.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetRestorePlanRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.GetRestorePlanRequest) com.google.cloud.gkebackup.v1.GetRestorePlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetRestorePlanRequest.class, com.google.cloud.gkebackup.v1.GetRestorePlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetRestorePlanRequest.class, + com.google.cloud.gkebackup.v1.GetRestorePlanRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.GetRestorePlanRequest.newBuilder() @@ -324,16 +360,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetRestorePlanRequest_descriptor; } @java.lang.Override @@ -364,7 +399,8 @@ public com.google.cloud.gkebackup.v1.GetRestorePlanRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.GetRestorePlanRequest buildPartial() { - com.google.cloud.gkebackup.v1.GetRestorePlanRequest result = new com.google.cloud.gkebackup.v1.GetRestorePlanRequest(this); + com.google.cloud.gkebackup.v1.GetRestorePlanRequest result = + new com.google.cloud.gkebackup.v1.GetRestorePlanRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.cloud.gkebackup.v1.GetRestorePlanRequest 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.cloud.gkebackup.v1.GetRestorePlanRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.GetRestorePlanRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.GetRestorePlanRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +450,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.GetRestorePlanRequest other) { - if (other == com.google.cloud.gkebackup.v1.GetRestorePlanRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.GetRestorePlanRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +475,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.GetRestorePlanRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.GetRestorePlanRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +488,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Fully qualified RestorePlan name.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * 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; @@ -470,21 +513,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Fully qualified RestorePlan name.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * 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 { @@ -492,64 +538,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Fully qualified RestorePlan name.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Fully qualified RestorePlan name.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Fully qualified RestorePlan name.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +618,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.GetRestorePlanRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.GetRestorePlanRequest) private static final com.google.cloud.gkebackup.v1.GetRestorePlanRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.GetRestorePlanRequest(); } @@ -573,16 +632,16 @@ public static com.google.cloud.gkebackup.v1.GetRestorePlanRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRestorePlanRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetRestorePlanRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRestorePlanRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetRestorePlanRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +656,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.GetRestorePlanRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequestOrBuilder.java new file mode 100644 index 0000000..0f2ce89 --- /dev/null +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestorePlanRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/gkebackup.proto + +package com.google.cloud.gkebackup.v1; + +public interface GetRestorePlanRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetRestorePlanRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Fully qualified RestorePlan name.
+   * Format: projects/*/locations/*/restorePlans/*
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Fully qualified RestorePlan name.
+   * Format: projects/*/locations/*/restorePlans/*
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequest.java index 919dc8f..6b29aa5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for GetRestore.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetRestoreRequest} */ -public final class GetRestoreRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetRestoreRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.GetRestoreRequest) GetRestoreRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetRestoreRequest.newBuilder() to construct. private GetRestoreRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetRestoreRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetRestoreRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetRestoreRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetRestoreRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetRestoreRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetRestoreRequest.class, com.google.cloud.gkebackup.v1.GetRestoreRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetRestoreRequest.class, + com.google.cloud.gkebackup.v1.GetRestoreRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the restore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* - * 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 @@ -110,30 +135,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 restore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* - * 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.GetRestoreRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.GetRestoreRequest other = (com.google.cloud.gkebackup.v1.GetRestoreRequest) obj; + com.google.cloud.gkebackup.v1.GetRestoreRequest other = + (com.google.cloud.gkebackup.v1.GetRestoreRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +232,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.GetRestoreRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.GetRestoreRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetRestore.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetRestoreRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.GetRestoreRequest) com.google.cloud.gkebackup.v1.GetRestoreRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetRestoreRequest.class, com.google.cloud.gkebackup.v1.GetRestoreRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetRestoreRequest.class, + com.google.cloud.gkebackup.v1.GetRestoreRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.GetRestoreRequest.newBuilder() @@ -324,16 +360,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetRestoreRequest_descriptor; } @java.lang.Override @@ -364,7 +399,8 @@ public com.google.cloud.gkebackup.v1.GetRestoreRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.GetRestoreRequest buildPartial() { - com.google.cloud.gkebackup.v1.GetRestoreRequest result = new com.google.cloud.gkebackup.v1.GetRestoreRequest(this); + com.google.cloud.gkebackup.v1.GetRestoreRequest result = + new com.google.cloud.gkebackup.v1.GetRestoreRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.cloud.gkebackup.v1.GetRestoreRequest 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.cloud.gkebackup.v1.GetRestoreRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.GetRestoreRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.GetRestoreRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +450,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.GetRestoreRequest other) { - if (other == com.google.cloud.gkebackup.v1.GetRestoreRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.GetRestoreRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -449,19 +487,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the restore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * 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; @@ -470,21 +512,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the restore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * 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 { @@ -492,64 +537,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the restore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the restore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the restore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +617,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.GetRestoreRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.GetRestoreRequest) private static final com.google.cloud.gkebackup.v1.GetRestoreRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.GetRestoreRequest(); } @@ -573,16 +631,16 @@ public static com.google.cloud.gkebackup.v1.GetRestoreRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRestoreRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetRestoreRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRestoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetRestoreRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +655,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.GetRestoreRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequestOrBuilder.java new file mode 100644 index 0000000..e5dffa3 --- /dev/null +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetRestoreRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/gkebackup.proto + +package com.google.cloud.gkebackup.v1; + +public interface GetRestoreRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetRestoreRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the restore resource.
+   * Format: projects/*/locations/*/restorePlans/*/restores/*
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the restore resource.
+   * Format: projects/*/locations/*/restorePlans/*/restores/*
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequest.java index bb1efa7..f12e05e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for GetVolumeBackup.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetVolumeBackupRequest} */ -public final class GetVolumeBackupRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetVolumeBackupRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.GetVolumeBackupRequest) GetVolumeBackupRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetVolumeBackupRequest.newBuilder() to construct. private GetVolumeBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetVolumeBackupRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetVolumeBackupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetVolumeBackupRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetVolumeBackupRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetVolumeBackupRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.class, com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.class, + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Full name of the VolumeBackup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
    * 
* - * 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 @@ -110,30 +135,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. Full name of the VolumeBackup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
    * 
* - * 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.GetVolumeBackupRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest other = (com.google.cloud.gkebackup.v1.GetVolumeBackupRequest) obj; + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest other = + (com.google.cloud.gkebackup.v1.GetVolumeBackupRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,126 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.GetVolumeBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetVolumeBackup.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetVolumeBackupRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.GetVolumeBackupRequest) com.google.cloud.gkebackup.v1.GetVolumeBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.class, com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.class, + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.newBuilder() @@ -324,16 +360,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetVolumeBackupRequest_descriptor; } @java.lang.Override @@ -364,7 +399,8 @@ public com.google.cloud.gkebackup.v1.GetVolumeBackupRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.GetVolumeBackupRequest buildPartial() { - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest result = new com.google.cloud.gkebackup.v1.GetVolumeBackupRequest(this); + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest result = + new com.google.cloud.gkebackup.v1.GetVolumeBackupRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.cloud.gkebackup.v1.GetVolumeBackupRequest 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.cloud.gkebackup.v1.GetVolumeBackupRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.GetVolumeBackupRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.GetVolumeBackupRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +450,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.GetVolumeBackupRequest other) { - if (other == com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.GetVolumeBackupRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +475,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.GetVolumeBackupRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.GetVolumeBackupRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +488,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Full name of the VolumeBackup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
      * 
* - * 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; @@ -470,21 +513,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Full name of the VolumeBackup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
      * 
* - * 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 { @@ -492,64 +538,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Full name of the VolumeBackup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
      * 
* - * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Full name of the VolumeBackup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
      * 
* - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Full name of the VolumeBackup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
      * 
* - * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +618,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.GetVolumeBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.GetVolumeBackupRequest) private static final com.google.cloud.gkebackup.v1.GetVolumeBackupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.GetVolumeBackupRequest(); } @@ -573,16 +632,16 @@ public static com.google.cloud.gkebackup.v1.GetVolumeBackupRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetVolumeBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetVolumeBackupRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetVolumeBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetVolumeBackupRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +656,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.GetVolumeBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequestOrBuilder.java new file mode 100644 index 0000000..b6bbae9 --- /dev/null +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeBackupRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/gkebackup.proto + +package com.google.cloud.gkebackup.v1; + +public interface GetVolumeBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetVolumeBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Full name of the VolumeBackup resource.
+   * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Full name of the VolumeBackup resource.
+   * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequest.java index d1d5806..ab8ac9b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for GetVolumeRestore.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetVolumeRestoreRequest} */ -public final class GetVolumeRestoreRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetVolumeRestoreRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.GetVolumeRestoreRequest) GetVolumeRestoreRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetVolumeRestoreRequest.newBuilder() to construct. private GetVolumeRestoreRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetVolumeRestoreRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetVolumeRestoreRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetVolumeRestoreRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetVolumeRestoreRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetVolumeRestoreRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.class, com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.class, + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Full name of the VolumeRestore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
    * 
* - * 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 @@ -110,30 +135,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. Full name of the VolumeRestore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
    * 
* - * 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest other = (com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest) obj; + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest other = + (com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetVolumeRestore.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.GetVolumeRestoreRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.GetVolumeRestoreRequest) com.google.cloud.gkebackup.v1.GetVolumeRestoreRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.class, com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.Builder.class); + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.class, + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.newBuilder() @@ -324,16 +361,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_GetVolumeRestoreRequest_descriptor; } @java.lang.Override @@ -364,7 +400,8 @@ public com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest buildPartial() { - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest result = new com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest(this); + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest result = + new com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +411,39 @@ public com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest 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.cloud.gkebackup.v1.GetVolumeRestoreRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest other) { - if (other == com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +476,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +489,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Full name of the VolumeRestore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
      * 
* - * 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; @@ -470,21 +514,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Full name of the VolumeRestore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
      * 
* - * 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 { @@ -492,64 +539,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Full name of the VolumeRestore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
      * 
* - * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Full name of the VolumeRestore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
      * 
* - * 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Full name of the VolumeRestore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
      * 
* - * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +619,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.GetVolumeRestoreRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.GetVolumeRestoreRequest) private static final com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest(); } @@ -573,16 +633,16 @@ public static com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetVolumeRestoreRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetVolumeRestoreRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetVolumeRestoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetVolumeRestoreRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +657,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequestOrBuilder.java new file mode 100644 index 0000000..7b2aab5 --- /dev/null +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/GetVolumeRestoreRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/gkebackup.proto + +package com.google.cloud.gkebackup.v1; + +public interface GetVolumeRestoreRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.GetVolumeRestoreRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Full name of the VolumeRestore resource.
+   * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Full name of the VolumeRestore resource.
+   * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequest.java index d5929c1..bef1553 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for ListBackupPlans.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListBackupPlansRequest} */ -public final class ListBackupPlansRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListBackupPlansRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListBackupPlansRequest) ListBackupPlansRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListBackupPlansRequest.newBuilder() to construct. private ListBackupPlansRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListBackupPlansRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListBackupPlansRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBackupPlansRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListBackupPlansRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private ListBackupPlansRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,35 +120,42 @@ private ListBackupPlansRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListBackupPlansRequest.class, com.google.cloud.gkebackup.v1.ListBackupPlansRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListBackupPlansRequest.class, + com.google.cloud.gkebackup.v1.ListBackupPlansRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The location that contains the BackupPlans to list.
    * Format: projects/*/locations/*
    * 
* - * string 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 @@ -136,30 +164,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The location that contains the BackupPlans to list.
    * Format: projects/*/locations/*
    * 
* - * string 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 { @@ -170,6 +200,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -180,6 +212,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -190,6 +223,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
@@ -200,6 +235,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -208,14 +244,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; } } /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
@@ -226,16 +263,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 { @@ -246,11 +282,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -259,29 +298,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -292,11 +331,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -305,29 +347,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -336,6 +378,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,8 +390,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_); } @@ -377,8 +419,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_); @@ -397,23 +438,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListBackupPlansRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListBackupPlansRequest other = (com.google.cloud.gkebackup.v1.ListBackupPlansRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.gkebackup.v1.ListBackupPlansRequest other = + (com.google.cloud.gkebackup.v1.ListBackupPlansRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -441,117 +478,126 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListBackupPlansRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListBackupPlans.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListBackupPlansRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListBackupPlansRequest) com.google.cloud.gkebackup.v1.ListBackupPlansRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListBackupPlansRequest.class, com.google.cloud.gkebackup.v1.ListBackupPlansRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListBackupPlansRequest.class, + com.google.cloud.gkebackup.v1.ListBackupPlansRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListBackupPlansRequest.newBuilder() @@ -559,16 +605,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -586,9 +631,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListBackupPlansRequest_descriptor; } @java.lang.Override @@ -607,7 +652,8 @@ public com.google.cloud.gkebackup.v1.ListBackupPlansRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListBackupPlansRequest buildPartial() { - com.google.cloud.gkebackup.v1.ListBackupPlansRequest result = new com.google.cloud.gkebackup.v1.ListBackupPlansRequest(this); + com.google.cloud.gkebackup.v1.ListBackupPlansRequest result = + new com.google.cloud.gkebackup.v1.ListBackupPlansRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -621,38 +667,39 @@ public com.google.cloud.gkebackup.v1.ListBackupPlansRequest 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.cloud.gkebackup.v1.ListBackupPlansRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListBackupPlansRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListBackupPlansRequest) other); } else { super.mergeFrom(other); return this; @@ -660,7 +707,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListBackupPlansRequest other) { - if (other == com.google.cloud.gkebackup.v1.ListBackupPlansRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.ListBackupPlansRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -699,7 +747,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.ListBackupPlansRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.ListBackupPlansRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -711,19 +760,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The location that contains the BackupPlans to list.
      * Format: projects/*/locations/*
      * 
* - * string 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; @@ -732,21 +785,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The location that contains the BackupPlans to list.
      * Format: projects/*/locations/*
      * 
* - * string 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 { @@ -754,64 +810,79 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The location that contains the BackupPlans to list.
      * Format: projects/*/locations/*
      * 
* - * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The location that contains the BackupPlans to list.
      * Format: projects/*/locations/*
      * 
* - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The location that contains the BackupPlans to list.
      * Format: projects/*/locations/*
      * 
* - * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -822,6 +893,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -829,6 +901,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -839,16 +913,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -859,10 +936,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -870,6 +948,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
@@ -880,13 +960,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; @@ -895,6 +975,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
@@ -905,15 +987,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 { @@ -921,6 +1002,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
@@ -931,20 +1014,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
@@ -955,15 +1040,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
@@ -974,16 +1062,16 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -991,18 +1079,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1011,20 +1101,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1032,54 +1123,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1087,18 +1185,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1107,20 +1207,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1128,61 +1229,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1192,12 +1300,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListBackupPlansRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListBackupPlansRequest) private static final com.google.cloud.gkebackup.v1.ListBackupPlansRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListBackupPlansRequest(); } @@ -1206,16 +1314,16 @@ public static com.google.cloud.gkebackup.v1.ListBackupPlansRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBackupPlansRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListBackupPlansRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupPlansRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListBackupPlansRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1230,6 +1338,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.ListBackupPlansRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequestOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequestOrBuilder.java index 1651421..8f7885c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequestOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListBackupPlansRequestOrBuilder extends +public interface ListBackupPlansRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListBackupPlansRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The location that contains the BackupPlans to list.
    * Format: projects/*/locations/*
    * 
* - * string 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 location that contains the BackupPlans to list.
    * Format: projects/*/locations/*
    * 
* - * string 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 target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -40,11 +67,14 @@ public interface ListBackupPlansRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
@@ -55,10 +85,13 @@ public interface ListBackupPlansRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
@@ -69,48 +102,58 @@ public interface ListBackupPlansRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponse.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponse.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponse.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponse.java index eae965f..dc4f52a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponse.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Response message for ListBackupPlans.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListBackupPlansResponse} */ -public final class ListBackupPlansResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListBackupPlansResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListBackupPlansResponse) ListBackupPlansResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListBackupPlansResponse.newBuilder() to construct. private ListBackupPlansResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListBackupPlansResponse() { backupPlans_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListBackupPlansResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBackupPlansResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListBackupPlansResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private ListBackupPlansResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - backupPlans_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + backupPlans_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + backupPlans_.add( + input.readMessage( + com.google.cloud.gkebackup.v1.BackupPlan.parser(), extensionRegistry)); + break; } - backupPlans_.add( - input.readMessage(com.google.cloud.gkebackup.v1.BackupPlan.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private ListBackupPlansResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { backupPlans_ = java.util.Collections.unmodifiableList(backupPlans_); @@ -107,22 +127,27 @@ private ListBackupPlansResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListBackupPlansResponse.class, com.google.cloud.gkebackup.v1.ListBackupPlansResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListBackupPlansResponse.class, + com.google.cloud.gkebackup.v1.ListBackupPlansResponse.Builder.class); } public static final int BACKUP_PLANS_FIELD_NUMBER = 1; private java.util.List backupPlans_; /** + * + * *
    * The list of BackupPlans matching the given criteria.
    * 
@@ -134,6 +159,8 @@ public java.util.List getBackupPlansLi return backupPlans_; } /** + * + * *
    * The list of BackupPlans matching the given criteria.
    * 
@@ -141,11 +168,13 @@ public java.util.List getBackupPlansLi * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBackupPlansOrBuilderList() { return backupPlans_; } /** + * + * *
    * The list of BackupPlans matching the given criteria.
    * 
@@ -157,6 +186,8 @@ public int getBackupPlansCount() { return backupPlans_.size(); } /** + * + * *
    * The list of BackupPlans matching the given criteria.
    * 
@@ -168,6 +199,8 @@ public com.google.cloud.gkebackup.v1.BackupPlan getBackupPlans(int index) { return backupPlans_.get(index); } /** + * + * *
    * The list of BackupPlans matching the given criteria.
    * 
@@ -175,14 +208,15 @@ public com.google.cloud.gkebackup.v1.BackupPlan getBackupPlans(int index) { * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ @java.lang.Override - public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlansOrBuilder( - int index) { + public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlansOrBuilder(int index) { return backupPlans_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token] in a subsequent
@@ -192,6 +226,7 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlansOrBuilder
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -200,14 +235,15 @@ 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 may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token] in a subsequent
@@ -217,16 +253,15 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -237,34 +272,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -272,20 +315,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -297,8 +343,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 < backupPlans_.size(); i++) { output.writeMessage(1, backupPlans_.get(i)); } @@ -318,8 +363,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < backupPlans_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, backupPlans_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, backupPlans_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -340,19 +384,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListBackupPlansResponse)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListBackupPlansResponse other = (com.google.cloud.gkebackup.v1.ListBackupPlansResponse) obj; + com.google.cloud.gkebackup.v1.ListBackupPlansResponse other = + (com.google.cloud.gkebackup.v1.ListBackupPlansResponse) obj; - if (!getBackupPlansList() - .equals(other.getBackupPlansList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getBackupPlansList().equals(other.getBackupPlansList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -380,117 +422,127 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListBackupPlansResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.ListBackupPlansResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListBackupPlans.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListBackupPlansResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListBackupPlansResponse) com.google.cloud.gkebackup.v1.ListBackupPlansResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListBackupPlansResponse.class, com.google.cloud.gkebackup.v1.ListBackupPlansResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListBackupPlansResponse.class, + com.google.cloud.gkebackup.v1.ListBackupPlansResponse.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListBackupPlansResponse.newBuilder() @@ -498,17 +550,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) { getBackupPlansFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -526,9 +578,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListBackupPlansResponse_descriptor; } @java.lang.Override @@ -547,7 +599,8 @@ public com.google.cloud.gkebackup.v1.ListBackupPlansResponse build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListBackupPlansResponse buildPartial() { - com.google.cloud.gkebackup.v1.ListBackupPlansResponse result = new com.google.cloud.gkebackup.v1.ListBackupPlansResponse(this); + com.google.cloud.gkebackup.v1.ListBackupPlansResponse result = + new com.google.cloud.gkebackup.v1.ListBackupPlansResponse(this); int from_bitField0_ = bitField0_; if (backupPlansBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -572,38 +625,39 @@ public com.google.cloud.gkebackup.v1.ListBackupPlansResponse 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.cloud.gkebackup.v1.ListBackupPlansResponse) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListBackupPlansResponse)other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListBackupPlansResponse) other); } else { super.mergeFrom(other); return this; @@ -611,7 +665,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListBackupPlansResponse other) { - if (other == com.google.cloud.gkebackup.v1.ListBackupPlansResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.ListBackupPlansResponse.getDefaultInstance()) + return this; if (backupPlansBuilder_ == null) { if (!other.backupPlans_.isEmpty()) { if (backupPlans_.isEmpty()) { @@ -630,9 +685,10 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListBackupPlansResponse o backupPlansBuilder_ = null; backupPlans_ = other.backupPlans_; bitField0_ = (bitField0_ & ~0x00000001); - backupPlansBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBackupPlansFieldBuilder() : null; + backupPlansBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBackupPlansFieldBuilder() + : null; } else { backupPlansBuilder_.addAllMessages(other.backupPlans_); } @@ -671,7 +727,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.ListBackupPlansResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.ListBackupPlansResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -680,21 +737,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List backupPlans_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBackupPlansIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - backupPlans_ = new java.util.ArrayList(backupPlans_); + backupPlans_ = + new java.util.ArrayList(backupPlans_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan, com.google.cloud.gkebackup.v1.BackupPlan.Builder, com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> backupPlansBuilder_; + com.google.cloud.gkebackup.v1.BackupPlan, + com.google.cloud.gkebackup.v1.BackupPlan.Builder, + com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> + backupPlansBuilder_; /** + * + * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -709,6 +774,8 @@ public java.util.List getBackupPlansLi } } /** + * + * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -723,6 +790,8 @@ public int getBackupPlansCount() { } } /** + * + * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -737,14 +806,15 @@ public com.google.cloud.gkebackup.v1.BackupPlan getBackupPlans(int index) { } } /** + * + * *
      * The list of BackupPlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ - public Builder setBackupPlans( - int index, com.google.cloud.gkebackup.v1.BackupPlan value) { + public Builder setBackupPlans(int index, com.google.cloud.gkebackup.v1.BackupPlan value) { if (backupPlansBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -758,6 +828,8 @@ public Builder setBackupPlans( return this; } /** + * + * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -776,6 +848,8 @@ public Builder setBackupPlans( return this; } /** + * + * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -796,14 +870,15 @@ public Builder addBackupPlans(com.google.cloud.gkebackup.v1.BackupPlan value) { return this; } /** + * + * *
      * The list of BackupPlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ - public Builder addBackupPlans( - int index, com.google.cloud.gkebackup.v1.BackupPlan value) { + public Builder addBackupPlans(int index, com.google.cloud.gkebackup.v1.BackupPlan value) { if (backupPlansBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -817,6 +892,8 @@ public Builder addBackupPlans( return this; } /** + * + * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -835,6 +912,8 @@ public Builder addBackupPlans( return this; } /** + * + * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -853,6 +932,8 @@ public Builder addBackupPlans( return this; } /** + * + * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -863,8 +944,7 @@ public Builder addAllBackupPlans( java.lang.Iterable values) { if (backupPlansBuilder_ == null) { ensureBackupPlansIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, backupPlans_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backupPlans_); onChanged(); } else { backupPlansBuilder_.addAllMessages(values); @@ -872,6 +952,8 @@ public Builder addAllBackupPlans( return this; } /** + * + * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -889,6 +971,8 @@ public Builder clearBackupPlans() { return this; } /** + * + * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -906,39 +990,44 @@ public Builder removeBackupPlans(int index) { return this; } /** + * + * *
      * The list of BackupPlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ - public com.google.cloud.gkebackup.v1.BackupPlan.Builder getBackupPlansBuilder( - int index) { + public com.google.cloud.gkebackup.v1.BackupPlan.Builder getBackupPlansBuilder(int index) { return getBackupPlansFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of BackupPlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ - public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlansOrBuilder( - int index) { + public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlansOrBuilder(int index) { if (backupPlansBuilder_ == null) { - return backupPlans_.get(index); } else { + return backupPlans_.get(index); + } else { return backupPlansBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of BackupPlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ - public java.util.List - getBackupPlansOrBuilderList() { + public java.util.List + getBackupPlansOrBuilderList() { if (backupPlansBuilder_ != null) { return backupPlansBuilder_.getMessageOrBuilderList(); } else { @@ -946,6 +1035,8 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlansOrBuilder } } /** + * + * *
      * The list of BackupPlans matching the given criteria.
      * 
@@ -953,42 +1044,48 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlansOrBuilder * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ public com.google.cloud.gkebackup.v1.BackupPlan.Builder addBackupPlansBuilder() { - return getBackupPlansFieldBuilder().addBuilder( - com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance()); + return getBackupPlansFieldBuilder() + .addBuilder(com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance()); } /** + * + * *
      * The list of BackupPlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ - public com.google.cloud.gkebackup.v1.BackupPlan.Builder addBackupPlansBuilder( - int index) { - return getBackupPlansFieldBuilder().addBuilder( - index, com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.BackupPlan.Builder addBackupPlansBuilder(int index) { + return getBackupPlansFieldBuilder() + .addBuilder(index, com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance()); } /** + * + * *
      * The list of BackupPlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ - public java.util.List - getBackupPlansBuilderList() { + public java.util.List + getBackupPlansBuilderList() { return getBackupPlansFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan, com.google.cloud.gkebackup.v1.BackupPlan.Builder, com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> + com.google.cloud.gkebackup.v1.BackupPlan, + com.google.cloud.gkebackup.v1.BackupPlan.Builder, + com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> getBackupPlansFieldBuilder() { if (backupPlansBuilder_ == null) { - backupPlansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan, com.google.cloud.gkebackup.v1.BackupPlan.Builder, com.google.cloud.gkebackup.v1.BackupPlanOrBuilder>( - backupPlans_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + backupPlansBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.BackupPlan, + com.google.cloud.gkebackup.v1.BackupPlan.Builder, + com.google.cloud.gkebackup.v1.BackupPlanOrBuilder>( + backupPlans_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); backupPlans_ = null; } return backupPlansBuilder_; @@ -996,6 +1093,8 @@ public com.google.cloud.gkebackup.v1.BackupPlan.Builder addBackupPlansBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token] in a subsequent
@@ -1005,13 +1104,13 @@ public com.google.cloud.gkebackup.v1.BackupPlan.Builder addBackupPlansBuilder(
      * 
* * 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; @@ -1020,6 +1119,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token] in a subsequent
@@ -1029,15 +1130,14 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1045,6 +1145,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token] in a subsequent
@@ -1054,20 +1156,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token] in a subsequent
@@ -1077,15 +1181,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token] in a subsequent
@@ -1095,57 +1202,67 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1153,80 +1270,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1236,28 +1363,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1267,12 +1396,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListBackupPlansResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListBackupPlansResponse) private static final com.google.cloud.gkebackup.v1.ListBackupPlansResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListBackupPlansResponse(); } @@ -1281,16 +1410,16 @@ public static com.google.cloud.gkebackup.v1.ListBackupPlansResponse getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBackupPlansResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListBackupPlansResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupPlansResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListBackupPlansResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1305,6 +1434,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.ListBackupPlansResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponseOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponseOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponseOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponseOrBuilder.java index 54caef0..25f48c1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponseOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupPlansResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListBackupPlansResponseOrBuilder extends +public interface ListBackupPlansResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListBackupPlansResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of BackupPlans matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ - java.util.List - getBackupPlansList(); + java.util.List getBackupPlansList(); /** + * + * *
    * The list of BackupPlans matching the given criteria.
    * 
@@ -25,6 +44,8 @@ public interface ListBackupPlansResponseOrBuilder extends */ com.google.cloud.gkebackup.v1.BackupPlan getBackupPlans(int index); /** + * + * *
    * The list of BackupPlans matching the given criteria.
    * 
@@ -33,25 +54,30 @@ public interface ListBackupPlansResponseOrBuilder extends */ int getBackupPlansCount(); /** + * + * *
    * The list of BackupPlans matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ - java.util.List + java.util.List getBackupPlansOrBuilderList(); /** + * + * *
    * The list of BackupPlans matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1; */ - com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlansOrBuilder( - int index); + com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlansOrBuilder(int index); /** + * + * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token] in a subsequent
@@ -61,10 +87,13 @@ com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlansOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token] in a subsequent
@@ -74,49 +103,59 @@ com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlansOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequest.java index 9e04cb3..25d4940 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for ListBackups.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListBackupsRequest} */ -public final class ListBackupsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListBackupsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListBackupsRequest) ListBackupsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListBackupsRequest.newBuilder() to construct. private ListBackupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListBackupsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListBackupsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBackupsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListBackupsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private ListBackupsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,35 +120,42 @@ private ListBackupsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListBackupsRequest.class, com.google.cloud.gkebackup.v1.ListBackupsRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListBackupsRequest.class, + com.google.cloud.gkebackup.v1.ListBackupsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The BackupPlan that contains the Backups to list.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * string 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 @@ -136,30 +164,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The BackupPlan that contains the Backups to list.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * string 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 { @@ -170,6 +200,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -180,6 +212,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -190,6 +223,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
@@ -200,6 +235,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -208,14 +244,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; } } /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
@@ -226,16 +263,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 { @@ -246,11 +282,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -259,29 +298,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -292,11 +331,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -305,29 +347,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -336,6 +378,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,8 +390,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_); } @@ -377,8 +419,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_); @@ -397,23 +438,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListBackupsRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListBackupsRequest other = (com.google.cloud.gkebackup.v1.ListBackupsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.gkebackup.v1.ListBackupsRequest other = + (com.google.cloud.gkebackup.v1.ListBackupsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -440,118 +477,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListBackupsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListBackupsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListBackups.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListBackupsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListBackupsRequest) com.google.cloud.gkebackup.v1.ListBackupsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListBackupsRequest.class, com.google.cloud.gkebackup.v1.ListBackupsRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListBackupsRequest.class, + com.google.cloud.gkebackup.v1.ListBackupsRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListBackupsRequest.newBuilder() @@ -559,16 +605,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -586,9 +631,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListBackupsRequest_descriptor; } @java.lang.Override @@ -607,7 +652,8 @@ public com.google.cloud.gkebackup.v1.ListBackupsRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListBackupsRequest buildPartial() { - com.google.cloud.gkebackup.v1.ListBackupsRequest result = new com.google.cloud.gkebackup.v1.ListBackupsRequest(this); + com.google.cloud.gkebackup.v1.ListBackupsRequest result = + new com.google.cloud.gkebackup.v1.ListBackupsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -621,38 +667,39 @@ public com.google.cloud.gkebackup.v1.ListBackupsRequest 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.cloud.gkebackup.v1.ListBackupsRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListBackupsRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListBackupsRequest) other); } else { super.mergeFrom(other); return this; @@ -660,7 +707,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListBackupsRequest other) { - if (other == com.google.cloud.gkebackup.v1.ListBackupsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.ListBackupsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -711,19 +759,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The BackupPlan that contains the Backups to list.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * string 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; @@ -732,21 +784,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The BackupPlan that contains the Backups to list.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * string 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 { @@ -754,64 +809,79 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The BackupPlan that contains the Backups to list.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The BackupPlan that contains the Backups to list.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The BackupPlan that contains the Backups to list.
      * Format: projects/*/locations/*/backupPlans/*
      * 
* - * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -822,6 +892,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -829,6 +900,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -839,16 +912,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -859,10 +935,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -870,6 +947,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
@@ -880,13 +959,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; @@ -895,6 +974,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
@@ -905,15 +986,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 { @@ -921,6 +1001,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
@@ -931,20 +1013,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
@@ -955,15 +1039,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
@@ -974,16 +1061,16 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -991,18 +1078,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1011,20 +1100,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1032,54 +1122,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1087,18 +1184,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1107,20 +1206,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1128,61 +1228,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1192,12 +1299,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListBackupsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListBackupsRequest) private static final com.google.cloud.gkebackup.v1.ListBackupsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListBackupsRequest(); } @@ -1206,16 +1313,16 @@ public static com.google.cloud.gkebackup.v1.ListBackupsRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBackupsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListBackupsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListBackupsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1230,6 +1337,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.ListBackupsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequestOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequestOrBuilder.java index c01be2e..cd5ae6a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequestOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListBackupsRequestOrBuilder extends +public interface ListBackupsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListBackupsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The BackupPlan that contains the Backups to list.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * string 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 BackupPlan that contains the Backups to list.
    * Format: projects/*/locations/*/backupPlans/*
    * 
* - * string 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 target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -40,11 +67,14 @@ public interface ListBackupsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
@@ -55,10 +85,13 @@ public interface ListBackupsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
@@ -69,48 +102,58 @@ public interface ListBackupsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponse.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponse.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponse.java index 0294e56..613acb3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponse.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Response message for ListBackups.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListBackupsResponse} */ -public final class ListBackupsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListBackupsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListBackupsResponse) ListBackupsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListBackupsResponse.newBuilder() to construct. private ListBackupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListBackupsResponse() { backups_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListBackupsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBackupsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListBackupsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,31 @@ private ListBackupsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - backups_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + backups_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + backups_.add( + input.readMessage( + com.google.cloud.gkebackup.v1.Backup.parser(), extensionRegistry)); + break; } - backups_.add( - input.readMessage(com.google.cloud.gkebackup.v1.Backup.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +104,7 @@ private ListBackupsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { backups_ = java.util.Collections.unmodifiableList(backups_); @@ -94,22 +113,27 @@ private ListBackupsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListBackupsResponse.class, com.google.cloud.gkebackup.v1.ListBackupsResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListBackupsResponse.class, + com.google.cloud.gkebackup.v1.ListBackupsResponse.Builder.class); } public static final int BACKUPS_FIELD_NUMBER = 1; private java.util.List backups_; /** + * + * *
    * The list of Backups matching the given criteria.
    * 
@@ -121,6 +145,8 @@ public java.util.List getBackupsList() { return backups_; } /** + * + * *
    * The list of Backups matching the given criteria.
    * 
@@ -128,11 +154,13 @@ public java.util.List getBackupsList() { * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBackupsOrBuilderList() { return backups_; } /** + * + * *
    * The list of Backups matching the given criteria.
    * 
@@ -144,6 +172,8 @@ public int getBackupsCount() { return backups_.size(); } /** + * + * *
    * The list of Backups matching the given criteria.
    * 
@@ -155,6 +185,8 @@ public com.google.cloud.gkebackup.v1.Backup getBackups(int index) { return backups_.get(index); } /** + * + * *
    * The list of Backups matching the given criteria.
    * 
@@ -162,14 +194,15 @@ public com.google.cloud.gkebackup.v1.Backup getBackups(int index) { * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ @java.lang.Override - public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupsOrBuilder( - int index) { + public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupsOrBuilder(int index) { return backups_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in
    * a subsequent `ListBackups` call to retrieve the next page of results. If
@@ -177,6 +210,7 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -185,14 +219,15 @@ 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 may be sent as [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in
    * a subsequent `ListBackups` call to retrieve the next page of results. If
@@ -200,16 +235,15 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -218,6 +252,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,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 { for (int i = 0; i < backups_.size(); i++) { output.writeMessage(1, backups_.get(i)); } @@ -247,8 +281,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < backups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, backups_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, backups_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -261,17 +294,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListBackupsResponse)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListBackupsResponse other = (com.google.cloud.gkebackup.v1.ListBackupsResponse) obj; + com.google.cloud.gkebackup.v1.ListBackupsResponse other = + (com.google.cloud.gkebackup.v1.ListBackupsResponse) obj; - if (!getBackupsList() - .equals(other.getBackupsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getBackupsList().equals(other.getBackupsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -295,117 +327,126 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListBackupsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListBackupsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListBackups.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListBackupsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListBackupsResponse) com.google.cloud.gkebackup.v1.ListBackupsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListBackupsResponse.class, com.google.cloud.gkebackup.v1.ListBackupsResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListBackupsResponse.class, + com.google.cloud.gkebackup.v1.ListBackupsResponse.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListBackupsResponse.newBuilder() @@ -413,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) { getBackupsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -439,9 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListBackupsResponse_descriptor; } @java.lang.Override @@ -460,7 +501,8 @@ public com.google.cloud.gkebackup.v1.ListBackupsResponse build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListBackupsResponse buildPartial() { - com.google.cloud.gkebackup.v1.ListBackupsResponse result = new com.google.cloud.gkebackup.v1.ListBackupsResponse(this); + com.google.cloud.gkebackup.v1.ListBackupsResponse result = + new com.google.cloud.gkebackup.v1.ListBackupsResponse(this); int from_bitField0_ = bitField0_; if (backupsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -480,38 +522,39 @@ public com.google.cloud.gkebackup.v1.ListBackupsResponse 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.cloud.gkebackup.v1.ListBackupsResponse) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListBackupsResponse)other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListBackupsResponse) other); } else { super.mergeFrom(other); return this; @@ -519,7 +562,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListBackupsResponse other) { - if (other == com.google.cloud.gkebackup.v1.ListBackupsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.ListBackupsResponse.getDefaultInstance()) + return this; if (backupsBuilder_ == null) { if (!other.backups_.isEmpty()) { if (backups_.isEmpty()) { @@ -538,9 +582,10 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListBackupsResponse other backupsBuilder_ = null; backups_ = other.backups_; bitField0_ = (bitField0_ & ~0x00000001); - backupsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBackupsFieldBuilder() : null; + backupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBackupsFieldBuilder() + : null; } else { backupsBuilder_.addAllMessages(other.backups_); } @@ -569,7 +614,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.ListBackupsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.ListBackupsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -578,21 +624,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List backups_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBackupsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { backups_ = new java.util.ArrayList(backups_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup, com.google.cloud.gkebackup.v1.Backup.Builder, com.google.cloud.gkebackup.v1.BackupOrBuilder> backupsBuilder_; + com.google.cloud.gkebackup.v1.Backup, + com.google.cloud.gkebackup.v1.Backup.Builder, + com.google.cloud.gkebackup.v1.BackupOrBuilder> + backupsBuilder_; /** + * + * *
      * The list of Backups matching the given criteria.
      * 
@@ -607,6 +660,8 @@ public java.util.List getBackupsList() { } } /** + * + * *
      * The list of Backups matching the given criteria.
      * 
@@ -621,6 +676,8 @@ public int getBackupsCount() { } } /** + * + * *
      * The list of Backups matching the given criteria.
      * 
@@ -635,14 +692,15 @@ public com.google.cloud.gkebackup.v1.Backup getBackups(int index) { } } /** + * + * *
      * The list of Backups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - public Builder setBackups( - int index, com.google.cloud.gkebackup.v1.Backup value) { + public Builder setBackups(int index, com.google.cloud.gkebackup.v1.Backup value) { if (backupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -656,6 +714,8 @@ public Builder setBackups( return this; } /** + * + * *
      * The list of Backups matching the given criteria.
      * 
@@ -674,6 +734,8 @@ public Builder setBackups( return this; } /** + * + * *
      * The list of Backups matching the given criteria.
      * 
@@ -694,14 +756,15 @@ public Builder addBackups(com.google.cloud.gkebackup.v1.Backup value) { return this; } /** + * + * *
      * The list of Backups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - public Builder addBackups( - int index, com.google.cloud.gkebackup.v1.Backup value) { + public Builder addBackups(int index, com.google.cloud.gkebackup.v1.Backup value) { if (backupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -715,14 +778,15 @@ public Builder addBackups( return this; } /** + * + * *
      * The list of Backups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - public Builder addBackups( - com.google.cloud.gkebackup.v1.Backup.Builder builderForValue) { + public Builder addBackups(com.google.cloud.gkebackup.v1.Backup.Builder builderForValue) { if (backupsBuilder_ == null) { ensureBackupsIsMutable(); backups_.add(builderForValue.build()); @@ -733,6 +797,8 @@ public Builder addBackups( return this; } /** + * + * *
      * The list of Backups matching the given criteria.
      * 
@@ -751,6 +817,8 @@ public Builder addBackups( return this; } /** + * + * *
      * The list of Backups matching the given criteria.
      * 
@@ -761,8 +829,7 @@ public Builder addAllBackups( java.lang.Iterable values) { if (backupsBuilder_ == null) { ensureBackupsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, backups_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backups_); onChanged(); } else { backupsBuilder_.addAllMessages(values); @@ -770,6 +837,8 @@ public Builder addAllBackups( return this; } /** + * + * *
      * The list of Backups matching the given criteria.
      * 
@@ -787,6 +856,8 @@ public Builder clearBackups() { return this; } /** + * + * *
      * The list of Backups matching the given criteria.
      * 
@@ -804,39 +875,44 @@ public Builder removeBackups(int index) { return this; } /** + * + * *
      * The list of Backups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - public com.google.cloud.gkebackup.v1.Backup.Builder getBackupsBuilder( - int index) { + public com.google.cloud.gkebackup.v1.Backup.Builder getBackupsBuilder(int index) { return getBackupsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of Backups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupsOrBuilder( - int index) { + public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupsOrBuilder(int index) { if (backupsBuilder_ == null) { - return backups_.get(index); } else { + return backups_.get(index); + } else { return backupsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of Backups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - public java.util.List - getBackupsOrBuilderList() { + public java.util.List + getBackupsOrBuilderList() { if (backupsBuilder_ != null) { return backupsBuilder_.getMessageOrBuilderList(); } else { @@ -844,6 +920,8 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupsOrBuilder( } } /** + * + * *
      * The list of Backups matching the given criteria.
      * 
@@ -851,42 +929,47 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupsOrBuilder( * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ public com.google.cloud.gkebackup.v1.Backup.Builder addBackupsBuilder() { - return getBackupsFieldBuilder().addBuilder( - com.google.cloud.gkebackup.v1.Backup.getDefaultInstance()); + return getBackupsFieldBuilder() + .addBuilder(com.google.cloud.gkebackup.v1.Backup.getDefaultInstance()); } /** + * + * *
      * The list of Backups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - public com.google.cloud.gkebackup.v1.Backup.Builder addBackupsBuilder( - int index) { - return getBackupsFieldBuilder().addBuilder( - index, com.google.cloud.gkebackup.v1.Backup.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.Backup.Builder addBackupsBuilder(int index) { + return getBackupsFieldBuilder() + .addBuilder(index, com.google.cloud.gkebackup.v1.Backup.getDefaultInstance()); } /** + * + * *
      * The list of Backups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - public java.util.List - getBackupsBuilderList() { + public java.util.List getBackupsBuilderList() { return getBackupsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup, com.google.cloud.gkebackup.v1.Backup.Builder, com.google.cloud.gkebackup.v1.BackupOrBuilder> + com.google.cloud.gkebackup.v1.Backup, + com.google.cloud.gkebackup.v1.Backup.Builder, + com.google.cloud.gkebackup.v1.BackupOrBuilder> getBackupsFieldBuilder() { if (backupsBuilder_ == null) { - backupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup, com.google.cloud.gkebackup.v1.Backup.Builder, com.google.cloud.gkebackup.v1.BackupOrBuilder>( - backups_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + backupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.Backup, + com.google.cloud.gkebackup.v1.Backup.Builder, + com.google.cloud.gkebackup.v1.BackupOrBuilder>( + backups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); backups_ = null; } return backupsBuilder_; @@ -894,6 +977,8 @@ public com.google.cloud.gkebackup.v1.Backup.Builder addBackupsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in
      * a subsequent `ListBackups` call to retrieve the next page of results. If
@@ -901,13 +986,13 @@ public com.google.cloud.gkebackup.v1.Backup.Builder addBackupsBuilder(
      * 
* * 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; @@ -916,6 +1001,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in
      * a subsequent `ListBackups` call to retrieve the next page of results. If
@@ -923,15 +1010,14 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -939,6 +1025,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in
      * a subsequent `ListBackups` call to retrieve the next page of results. If
@@ -946,20 +1034,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in
      * a subsequent `ListBackups` call to retrieve the next page of results. If
@@ -967,15 +1057,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in
      * a subsequent `ListBackups` call to retrieve the next page of results. If
@@ -983,23 +1076,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1009,12 +1102,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListBackupsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListBackupsResponse) private static final com.google.cloud.gkebackup.v1.ListBackupsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListBackupsResponse(); } @@ -1023,16 +1116,16 @@ public static com.google.cloud.gkebackup.v1.ListBackupsResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBackupsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListBackupsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListBackupsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1047,6 +1140,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.ListBackupsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponseOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponseOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponseOrBuilder.java index 96b4cd0..694dd73 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponseOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListBackupsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListBackupsResponseOrBuilder extends +public interface ListBackupsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListBackupsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of Backups matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - java.util.List - getBackupsList(); + java.util.List getBackupsList(); /** + * + * *
    * The list of Backups matching the given criteria.
    * 
@@ -25,6 +44,8 @@ public interface ListBackupsResponseOrBuilder extends */ com.google.cloud.gkebackup.v1.Backup getBackups(int index); /** + * + * *
    * The list of Backups matching the given criteria.
    * 
@@ -33,25 +54,29 @@ public interface ListBackupsResponseOrBuilder extends */ int getBackupsCount(); /** + * + * *
    * The list of Backups matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - java.util.List - getBackupsOrBuilderList(); + java.util.List getBackupsOrBuilderList(); /** + * + * *
    * The list of Backups matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.Backup backups = 1; */ - com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupsOrBuilder( - int index); + com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupsOrBuilder(int index); /** + * + * *
    * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in
    * a subsequent `ListBackups` call to retrieve the next page of results. If
@@ -59,10 +84,13 @@ com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in
    * a subsequent `ListBackups` call to retrieve the next page of results. If
@@ -70,8 +98,8 @@ com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupsOrBuilder(
    * 
* * 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/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequest.java index b5b4e78..098c4c3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for ListRestorePlans.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListRestorePlansRequest} */ -public final class ListRestorePlansRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRestorePlansRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListRestorePlansRequest) ListRestorePlansRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRestorePlansRequest.newBuilder() to construct. private ListRestorePlansRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRestorePlansRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListRestorePlansRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRestorePlansRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListRestorePlansRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private ListRestorePlansRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,35 +120,42 @@ private ListRestorePlansRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListRestorePlansRequest.class, com.google.cloud.gkebackup.v1.ListRestorePlansRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListRestorePlansRequest.class, + com.google.cloud.gkebackup.v1.ListRestorePlansRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The location that contains the RestorePlans to list.
    * Format: projects/*/locations/*
    * 
* - * string 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 @@ -136,30 +164,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The location that contains the RestorePlans to list.
    * Format: projects/*/locations/*
    * 
* - * string 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 { @@ -170,6 +200,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -180,6 +212,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -190,6 +223,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
@@ -200,6 +235,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -208,14 +244,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; } } /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
@@ -226,16 +263,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 { @@ -246,11 +282,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -259,29 +298,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -292,11 +331,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -305,29 +347,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -336,6 +378,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,8 +390,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_); } @@ -377,8 +419,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_); @@ -397,23 +438,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListRestorePlansRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListRestorePlansRequest other = (com.google.cloud.gkebackup.v1.ListRestorePlansRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.gkebackup.v1.ListRestorePlansRequest other = + (com.google.cloud.gkebackup.v1.ListRestorePlansRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -441,117 +478,127 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListRestorePlansRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.ListRestorePlansRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListRestorePlans.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListRestorePlansRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListRestorePlansRequest) com.google.cloud.gkebackup.v1.ListRestorePlansRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListRestorePlansRequest.class, com.google.cloud.gkebackup.v1.ListRestorePlansRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListRestorePlansRequest.class, + com.google.cloud.gkebackup.v1.ListRestorePlansRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListRestorePlansRequest.newBuilder() @@ -559,16 +606,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -586,9 +632,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListRestorePlansRequest_descriptor; } @java.lang.Override @@ -607,7 +653,8 @@ public com.google.cloud.gkebackup.v1.ListRestorePlansRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListRestorePlansRequest buildPartial() { - com.google.cloud.gkebackup.v1.ListRestorePlansRequest result = new com.google.cloud.gkebackup.v1.ListRestorePlansRequest(this); + com.google.cloud.gkebackup.v1.ListRestorePlansRequest result = + new com.google.cloud.gkebackup.v1.ListRestorePlansRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -621,38 +668,39 @@ public com.google.cloud.gkebackup.v1.ListRestorePlansRequest 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.cloud.gkebackup.v1.ListRestorePlansRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListRestorePlansRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListRestorePlansRequest) other); } else { super.mergeFrom(other); return this; @@ -660,7 +708,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListRestorePlansRequest other) { - if (other == com.google.cloud.gkebackup.v1.ListRestorePlansRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.ListRestorePlansRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -699,7 +748,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.ListRestorePlansRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.ListRestorePlansRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -711,19 +761,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The location that contains the RestorePlans to list.
      * Format: projects/*/locations/*
      * 
* - * string 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; @@ -732,21 +786,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The location that contains the RestorePlans to list.
      * Format: projects/*/locations/*
      * 
* - * string 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 { @@ -754,64 +811,79 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The location that contains the RestorePlans to list.
      * Format: projects/*/locations/*
      * 
* - * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The location that contains the RestorePlans to list.
      * Format: projects/*/locations/*
      * 
* - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The location that contains the RestorePlans to list.
      * Format: projects/*/locations/*
      * 
* - * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -822,6 +894,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -829,6 +902,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -839,16 +914,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -859,10 +937,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -870,6 +949,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
@@ -880,13 +961,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; @@ -895,6 +976,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
@@ -905,15 +988,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 { @@ -921,6 +1003,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
@@ -931,20 +1015,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
@@ -955,15 +1041,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
@@ -974,16 +1063,16 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -991,18 +1080,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1011,20 +1102,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1032,54 +1124,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1087,18 +1186,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1107,20 +1208,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1128,61 +1230,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1192,12 +1301,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListRestorePlansRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListRestorePlansRequest) private static final com.google.cloud.gkebackup.v1.ListRestorePlansRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListRestorePlansRequest(); } @@ -1206,16 +1315,16 @@ public static com.google.cloud.gkebackup.v1.ListRestorePlansRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRestorePlansRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRestorePlansRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRestorePlansRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRestorePlansRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1230,6 +1339,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.ListRestorePlansRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequestOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequestOrBuilder.java index 2d225a4..c925451 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequestOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListRestorePlansRequestOrBuilder extends +public interface ListRestorePlansRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListRestorePlansRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The location that contains the RestorePlans to list.
    * Format: projects/*/locations/*
    * 
* - * string 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 location that contains the RestorePlans to list.
    * Format: projects/*/locations/*
    * 
* - * string 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 target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -40,11 +67,14 @@ public interface ListRestorePlansRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
@@ -55,10 +85,13 @@ public interface ListRestorePlansRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
@@ -69,48 +102,58 @@ public interface ListRestorePlansRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponse.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponse.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponse.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponse.java index 4e39874..763c126 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponse.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Response message for ListRestorePlans.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListRestorePlansResponse} */ -public final class ListRestorePlansResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRestorePlansResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListRestorePlansResponse) ListRestorePlansResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRestorePlansResponse.newBuilder() to construct. private ListRestorePlansResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRestorePlansResponse() { restorePlans_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListRestorePlansResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRestorePlansResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListRestorePlansResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,42 @@ private ListRestorePlansResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - restorePlans_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + restorePlans_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + restorePlans_.add( + input.readMessage( + com.google.cloud.gkebackup.v1.RestorePlan.parser(), extensionRegistry)); + break; } - restorePlans_.add( - input.readMessage(com.google.cloud.gkebackup.v1.RestorePlan.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +116,7 @@ private ListRestorePlansResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { restorePlans_ = java.util.Collections.unmodifiableList(restorePlans_); @@ -107,22 +128,27 @@ private ListRestorePlansResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListRestorePlansResponse.class, com.google.cloud.gkebackup.v1.ListRestorePlansResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListRestorePlansResponse.class, + com.google.cloud.gkebackup.v1.ListRestorePlansResponse.Builder.class); } public static final int RESTORE_PLANS_FIELD_NUMBER = 1; private java.util.List restorePlans_; /** + * + * *
    * The list of RestorePlans matching the given criteria.
    * 
@@ -134,6 +160,8 @@ public java.util.List getRestorePlans return restorePlans_; } /** + * + * *
    * The list of RestorePlans matching the given criteria.
    * 
@@ -141,11 +169,13 @@ public java.util.List getRestorePlans * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRestorePlansOrBuilderList() { return restorePlans_; } /** + * + * *
    * The list of RestorePlans matching the given criteria.
    * 
@@ -157,6 +187,8 @@ public int getRestorePlansCount() { return restorePlans_.size(); } /** + * + * *
    * The list of RestorePlans matching the given criteria.
    * 
@@ -168,6 +200,8 @@ public com.google.cloud.gkebackup.v1.RestorePlan getRestorePlans(int index) { return restorePlans_.get(index); } /** + * + * *
    * The list of RestorePlans matching the given criteria.
    * 
@@ -175,14 +209,15 @@ public com.google.cloud.gkebackup.v1.RestorePlan getRestorePlans(int index) { * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlansOrBuilder( - int index) { + public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlansOrBuilder(int index) { return restorePlans_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token] in a subsequent
@@ -192,6 +227,7 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlansOrBuild
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -200,14 +236,15 @@ 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 may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token] in a subsequent
@@ -217,16 +254,15 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -237,34 +273,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -272,20 +316,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -297,8 +344,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 < restorePlans_.size(); i++) { output.writeMessage(1, restorePlans_.get(i)); } @@ -318,8 +364,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < restorePlans_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, restorePlans_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, restorePlans_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -340,19 +385,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListRestorePlansResponse)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListRestorePlansResponse other = (com.google.cloud.gkebackup.v1.ListRestorePlansResponse) obj; + com.google.cloud.gkebackup.v1.ListRestorePlansResponse other = + (com.google.cloud.gkebackup.v1.ListRestorePlansResponse) obj; - if (!getRestorePlansList() - .equals(other.getRestorePlansList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getRestorePlansList().equals(other.getRestorePlansList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -380,117 +423,127 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListRestorePlansResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.ListRestorePlansResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListRestorePlans.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListRestorePlansResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListRestorePlansResponse) com.google.cloud.gkebackup.v1.ListRestorePlansResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListRestorePlansResponse.class, com.google.cloud.gkebackup.v1.ListRestorePlansResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListRestorePlansResponse.class, + com.google.cloud.gkebackup.v1.ListRestorePlansResponse.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListRestorePlansResponse.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) { getRestorePlansFieldBuilder(); } } + @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.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListRestorePlansResponse_descriptor; } @java.lang.Override @@ -547,7 +600,8 @@ public com.google.cloud.gkebackup.v1.ListRestorePlansResponse build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListRestorePlansResponse buildPartial() { - com.google.cloud.gkebackup.v1.ListRestorePlansResponse result = new com.google.cloud.gkebackup.v1.ListRestorePlansResponse(this); + com.google.cloud.gkebackup.v1.ListRestorePlansResponse result = + new com.google.cloud.gkebackup.v1.ListRestorePlansResponse(this); int from_bitField0_ = bitField0_; if (restorePlansBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -572,38 +626,39 @@ public com.google.cloud.gkebackup.v1.ListRestorePlansResponse 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.cloud.gkebackup.v1.ListRestorePlansResponse) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListRestorePlansResponse)other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListRestorePlansResponse) other); } else { super.mergeFrom(other); return this; @@ -611,7 +666,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListRestorePlansResponse other) { - if (other == com.google.cloud.gkebackup.v1.ListRestorePlansResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.ListRestorePlansResponse.getDefaultInstance()) + return this; if (restorePlansBuilder_ == null) { if (!other.restorePlans_.isEmpty()) { if (restorePlans_.isEmpty()) { @@ -630,9 +686,10 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListRestorePlansResponse restorePlansBuilder_ = null; restorePlans_ = other.restorePlans_; bitField0_ = (bitField0_ & ~0x00000001); - restorePlansBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRestorePlansFieldBuilder() : null; + restorePlansBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRestorePlansFieldBuilder() + : null; } else { restorePlansBuilder_.addAllMessages(other.restorePlans_); } @@ -671,7 +728,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.ListRestorePlansResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.ListRestorePlansResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -680,21 +738,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List restorePlans_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRestorePlansIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - restorePlans_ = new java.util.ArrayList(restorePlans_); + restorePlans_ = + new java.util.ArrayList(restorePlans_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestorePlan, com.google.cloud.gkebackup.v1.RestorePlan.Builder, com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> restorePlansBuilder_; + com.google.cloud.gkebackup.v1.RestorePlan, + com.google.cloud.gkebackup.v1.RestorePlan.Builder, + com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> + restorePlansBuilder_; /** + * + * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -709,6 +775,8 @@ public java.util.List getRestorePlans } } /** + * + * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -723,6 +791,8 @@ public int getRestorePlansCount() { } } /** + * + * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -737,14 +807,15 @@ public com.google.cloud.gkebackup.v1.RestorePlan getRestorePlans(int index) { } } /** + * + * *
      * The list of RestorePlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ - public Builder setRestorePlans( - int index, com.google.cloud.gkebackup.v1.RestorePlan value) { + public Builder setRestorePlans(int index, com.google.cloud.gkebackup.v1.RestorePlan value) { if (restorePlansBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -758,6 +829,8 @@ public Builder setRestorePlans( return this; } /** + * + * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -776,6 +849,8 @@ public Builder setRestorePlans( return this; } /** + * + * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -796,14 +871,15 @@ public Builder addRestorePlans(com.google.cloud.gkebackup.v1.RestorePlan value) return this; } /** + * + * *
      * The list of RestorePlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ - public Builder addRestorePlans( - int index, com.google.cloud.gkebackup.v1.RestorePlan value) { + public Builder addRestorePlans(int index, com.google.cloud.gkebackup.v1.RestorePlan value) { if (restorePlansBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -817,6 +893,8 @@ public Builder addRestorePlans( return this; } /** + * + * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -835,6 +913,8 @@ public Builder addRestorePlans( return this; } /** + * + * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -853,6 +933,8 @@ public Builder addRestorePlans( return this; } /** + * + * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -863,8 +945,7 @@ public Builder addAllRestorePlans( java.lang.Iterable values) { if (restorePlansBuilder_ == null) { ensureRestorePlansIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, restorePlans_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, restorePlans_); onChanged(); } else { restorePlansBuilder_.addAllMessages(values); @@ -872,6 +953,8 @@ public Builder addAllRestorePlans( return this; } /** + * + * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -889,6 +972,8 @@ public Builder clearRestorePlans() { return this; } /** + * + * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -906,39 +991,44 @@ public Builder removeRestorePlans(int index) { return this; } /** + * + * *
      * The list of RestorePlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ - public com.google.cloud.gkebackup.v1.RestorePlan.Builder getRestorePlansBuilder( - int index) { + public com.google.cloud.gkebackup.v1.RestorePlan.Builder getRestorePlansBuilder(int index) { return getRestorePlansFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of RestorePlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ - public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlansOrBuilder( - int index) { + public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlansOrBuilder(int index) { if (restorePlansBuilder_ == null) { - return restorePlans_.get(index); } else { + return restorePlans_.get(index); + } else { return restorePlansBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of RestorePlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ - public java.util.List - getRestorePlansOrBuilderList() { + public java.util.List + getRestorePlansOrBuilderList() { if (restorePlansBuilder_ != null) { return restorePlansBuilder_.getMessageOrBuilderList(); } else { @@ -946,6 +1036,8 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlansOrBuild } } /** + * + * *
      * The list of RestorePlans matching the given criteria.
      * 
@@ -953,42 +1045,48 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlansOrBuild * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ public com.google.cloud.gkebackup.v1.RestorePlan.Builder addRestorePlansBuilder() { - return getRestorePlansFieldBuilder().addBuilder( - com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance()); + return getRestorePlansFieldBuilder() + .addBuilder(com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance()); } /** + * + * *
      * The list of RestorePlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ - public com.google.cloud.gkebackup.v1.RestorePlan.Builder addRestorePlansBuilder( - int index) { - return getRestorePlansFieldBuilder().addBuilder( - index, com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.RestorePlan.Builder addRestorePlansBuilder(int index) { + return getRestorePlansFieldBuilder() + .addBuilder(index, com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance()); } /** + * + * *
      * The list of RestorePlans matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ - public java.util.List - getRestorePlansBuilderList() { + public java.util.List + getRestorePlansBuilderList() { return getRestorePlansFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestorePlan, com.google.cloud.gkebackup.v1.RestorePlan.Builder, com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> + com.google.cloud.gkebackup.v1.RestorePlan, + com.google.cloud.gkebackup.v1.RestorePlan.Builder, + com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> getRestorePlansFieldBuilder() { if (restorePlansBuilder_ == null) { - restorePlansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestorePlan, com.google.cloud.gkebackup.v1.RestorePlan.Builder, com.google.cloud.gkebackup.v1.RestorePlanOrBuilder>( - restorePlans_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + restorePlansBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestorePlan, + com.google.cloud.gkebackup.v1.RestorePlan.Builder, + com.google.cloud.gkebackup.v1.RestorePlanOrBuilder>( + restorePlans_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); restorePlans_ = null; } return restorePlansBuilder_; @@ -996,6 +1094,8 @@ public com.google.cloud.gkebackup.v1.RestorePlan.Builder addRestorePlansBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token] in a subsequent
@@ -1005,13 +1105,13 @@ public com.google.cloud.gkebackup.v1.RestorePlan.Builder addRestorePlansBuilder(
      * 
* * 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; @@ -1020,6 +1120,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token] in a subsequent
@@ -1029,15 +1131,14 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1045,6 +1146,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token] in a subsequent
@@ -1054,20 +1157,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token] in a subsequent
@@ -1077,15 +1182,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token] in a subsequent
@@ -1095,57 +1203,67 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1153,80 +1271,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1236,28 +1364,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1267,12 +1397,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListRestorePlansResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListRestorePlansResponse) private static final com.google.cloud.gkebackup.v1.ListRestorePlansResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListRestorePlansResponse(); } @@ -1281,16 +1411,16 @@ public static com.google.cloud.gkebackup.v1.ListRestorePlansResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRestorePlansResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRestorePlansResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRestorePlansResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRestorePlansResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1305,6 +1435,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.ListRestorePlansResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponseOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponseOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponseOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponseOrBuilder.java index f490f79..a04c2ab 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponseOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestorePlansResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListRestorePlansResponseOrBuilder extends +public interface ListRestorePlansResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListRestorePlansResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of RestorePlans matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ - java.util.List - getRestorePlansList(); + java.util.List getRestorePlansList(); /** + * + * *
    * The list of RestorePlans matching the given criteria.
    * 
@@ -25,6 +44,8 @@ public interface ListRestorePlansResponseOrBuilder extends */ com.google.cloud.gkebackup.v1.RestorePlan getRestorePlans(int index); /** + * + * *
    * The list of RestorePlans matching the given criteria.
    * 
@@ -33,25 +54,30 @@ public interface ListRestorePlansResponseOrBuilder extends */ int getRestorePlansCount(); /** + * + * *
    * The list of RestorePlans matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ - java.util.List + java.util.List getRestorePlansOrBuilderList(); /** + * + * *
    * The list of RestorePlans matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1; */ - com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlansOrBuilder( - int index); + com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlansOrBuilder(int index); /** + * + * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token] in a subsequent
@@ -61,10 +87,13 @@ com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlansOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token] in a subsequent
@@ -74,49 +103,59 @@ com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlansOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequest.java index ee3703d..031f2ff 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for ListRestores.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListRestoresRequest} */ -public final class ListRestoresRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRestoresRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListRestoresRequest) ListRestoresRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRestoresRequest.newBuilder() to construct. private ListRestoresRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRestoresRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListRestoresRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRestoresRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListRestoresRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private ListRestoresRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,35 +120,42 @@ private ListRestoresRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListRestoresRequest.class, com.google.cloud.gkebackup.v1.ListRestoresRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListRestoresRequest.class, + com.google.cloud.gkebackup.v1.ListRestoresRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The RestorePlan that contains the Restores to list.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * string 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 @@ -136,30 +164,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The RestorePlan that contains the Restores to list.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * string 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 { @@ -170,6 +200,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -180,6 +212,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -190,6 +223,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
@@ -200,6 +235,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -208,14 +244,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; } } /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
@@ -226,16 +263,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 { @@ -246,11 +282,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -259,29 +298,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -292,11 +331,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -305,29 +347,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -336,6 +378,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,8 +390,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_); } @@ -377,8 +419,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_); @@ -397,23 +438,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListRestoresRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListRestoresRequest other = (com.google.cloud.gkebackup.v1.ListRestoresRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.gkebackup.v1.ListRestoresRequest other = + (com.google.cloud.gkebackup.v1.ListRestoresRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -441,117 +478,126 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListRestoresRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListRestoresRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListRestores.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListRestoresRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListRestoresRequest) com.google.cloud.gkebackup.v1.ListRestoresRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListRestoresRequest.class, com.google.cloud.gkebackup.v1.ListRestoresRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListRestoresRequest.class, + com.google.cloud.gkebackup.v1.ListRestoresRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListRestoresRequest.newBuilder() @@ -559,16 +605,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -586,9 +631,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListRestoresRequest_descriptor; } @java.lang.Override @@ -607,7 +652,8 @@ public com.google.cloud.gkebackup.v1.ListRestoresRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListRestoresRequest buildPartial() { - com.google.cloud.gkebackup.v1.ListRestoresRequest result = new com.google.cloud.gkebackup.v1.ListRestoresRequest(this); + com.google.cloud.gkebackup.v1.ListRestoresRequest result = + new com.google.cloud.gkebackup.v1.ListRestoresRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -621,38 +667,39 @@ public com.google.cloud.gkebackup.v1.ListRestoresRequest 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.cloud.gkebackup.v1.ListRestoresRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListRestoresRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListRestoresRequest) other); } else { super.mergeFrom(other); return this; @@ -660,7 +707,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListRestoresRequest other) { - if (other == com.google.cloud.gkebackup.v1.ListRestoresRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.ListRestoresRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -699,7 +747,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.ListRestoresRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.ListRestoresRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -711,19 +760,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The RestorePlan that contains the Restores to list.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * string 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; @@ -732,21 +785,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The RestorePlan that contains the Restores to list.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * string 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 { @@ -754,64 +810,79 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The RestorePlan that contains the Restores to list.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The RestorePlan that contains the Restores to list.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The RestorePlan that contains the Restores to list.
      * Format: projects/*/locations/*/restorePlans/*
      * 
* - * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -822,6 +893,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -829,6 +901,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -839,16 +913,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -859,10 +936,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -870,6 +948,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
@@ -880,13 +960,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; @@ -895,6 +975,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
@@ -905,15 +987,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 { @@ -921,6 +1002,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
@@ -931,20 +1014,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
@@ -955,15 +1040,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
@@ -974,16 +1062,16 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -991,18 +1079,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1011,20 +1101,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1032,54 +1123,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1087,18 +1185,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1107,20 +1207,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1128,61 +1229,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1192,12 +1300,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListRestoresRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListRestoresRequest) private static final com.google.cloud.gkebackup.v1.ListRestoresRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListRestoresRequest(); } @@ -1206,16 +1314,16 @@ public static com.google.cloud.gkebackup.v1.ListRestoresRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRestoresRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRestoresRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRestoresRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRestoresRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1230,6 +1338,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.ListRestoresRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequestOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequestOrBuilder.java index 9fba075..737cf43 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequestOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListRestoresRequestOrBuilder extends +public interface ListRestoresRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListRestoresRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The RestorePlan that contains the Restores to list.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * string 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 RestorePlan that contains the Restores to list.
    * Format: projects/*/locations/*/restorePlans/*
    * 
* - * string 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 target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -40,11 +67,14 @@ public interface ListRestoresRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
@@ -55,10 +85,13 @@ public interface ListRestoresRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
@@ -69,48 +102,58 @@ public interface ListRestoresRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponse.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponse.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponse.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponse.java index 9d9d1ad..dfcebb0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponse.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Response message for ListRestores.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListRestoresResponse} */ -public final class ListRestoresResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRestoresResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListRestoresResponse) ListRestoresResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRestoresResponse.newBuilder() to construct. private ListRestoresResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRestoresResponse() { restores_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListRestoresResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRestoresResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListRestoresResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private ListRestoresResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - restores_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + restores_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + restores_.add( + input.readMessage( + com.google.cloud.gkebackup.v1.Restore.parser(), extensionRegistry)); + break; } - restores_.add( - input.readMessage(com.google.cloud.gkebackup.v1.Restore.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private ListRestoresResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { restores_ = java.util.Collections.unmodifiableList(restores_); @@ -107,22 +127,27 @@ private ListRestoresResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListRestoresResponse.class, com.google.cloud.gkebackup.v1.ListRestoresResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListRestoresResponse.class, + com.google.cloud.gkebackup.v1.ListRestoresResponse.Builder.class); } public static final int RESTORES_FIELD_NUMBER = 1; private java.util.List restores_; /** + * + * *
    * The list of Restores matching the given criteria.
    * 
@@ -134,6 +159,8 @@ public java.util.List getRestoresList() { return restores_; } /** + * + * *
    * The list of Restores matching the given criteria.
    * 
@@ -141,11 +168,13 @@ public java.util.List getRestoresList() { * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRestoresOrBuilderList() { return restores_; } /** + * + * *
    * The list of Restores matching the given criteria.
    * 
@@ -157,6 +186,8 @@ public int getRestoresCount() { return restores_.size(); } /** + * + * *
    * The list of Restores matching the given criteria.
    * 
@@ -168,6 +199,8 @@ public com.google.cloud.gkebackup.v1.Restore getRestores(int index) { return restores_.get(index); } /** + * + * *
    * The list of Restores matching the given criteria.
    * 
@@ -175,14 +208,15 @@ public com.google.cloud.gkebackup.v1.Restore getRestores(int index) { * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoresOrBuilder( - int index) { + public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoresOrBuilder(int index) { return restores_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token]
    * in a subsequent `ListRestores` call to retrieve the next page of results.
@@ -191,6 +225,7 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoresOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -199,14 +234,15 @@ 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 may be sent as [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token]
    * in a subsequent `ListRestores` call to retrieve the next page of results.
@@ -215,16 +251,15 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -235,34 +270,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -270,20 +313,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -295,8 +341,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 < restores_.size(); i++) { output.writeMessage(1, restores_.get(i)); } @@ -316,8 +361,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < restores_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, restores_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, restores_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -338,19 +382,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListRestoresResponse)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListRestoresResponse other = (com.google.cloud.gkebackup.v1.ListRestoresResponse) obj; + com.google.cloud.gkebackup.v1.ListRestoresResponse other = + (com.google.cloud.gkebackup.v1.ListRestoresResponse) obj; - if (!getRestoresList() - .equals(other.getRestoresList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getRestoresList().equals(other.getRestoresList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -378,117 +420,126 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListRestoresResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListRestoresResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListRestores.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListRestoresResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListRestoresResponse) com.google.cloud.gkebackup.v1.ListRestoresResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListRestoresResponse.class, com.google.cloud.gkebackup.v1.ListRestoresResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListRestoresResponse.class, + com.google.cloud.gkebackup.v1.ListRestoresResponse.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListRestoresResponse.newBuilder() @@ -496,17 +547,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) { getRestoresFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -524,9 +575,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListRestoresResponse_descriptor; } @java.lang.Override @@ -545,7 +596,8 @@ public com.google.cloud.gkebackup.v1.ListRestoresResponse build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListRestoresResponse buildPartial() { - com.google.cloud.gkebackup.v1.ListRestoresResponse result = new com.google.cloud.gkebackup.v1.ListRestoresResponse(this); + com.google.cloud.gkebackup.v1.ListRestoresResponse result = + new com.google.cloud.gkebackup.v1.ListRestoresResponse(this); int from_bitField0_ = bitField0_; if (restoresBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -570,38 +622,39 @@ public com.google.cloud.gkebackup.v1.ListRestoresResponse 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.cloud.gkebackup.v1.ListRestoresResponse) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListRestoresResponse)other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListRestoresResponse) other); } else { super.mergeFrom(other); return this; @@ -609,7 +662,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListRestoresResponse other) { - if (other == com.google.cloud.gkebackup.v1.ListRestoresResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.ListRestoresResponse.getDefaultInstance()) + return this; if (restoresBuilder_ == null) { if (!other.restores_.isEmpty()) { if (restores_.isEmpty()) { @@ -628,9 +682,10 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListRestoresResponse othe restoresBuilder_ = null; restores_ = other.restores_; bitField0_ = (bitField0_ & ~0x00000001); - restoresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRestoresFieldBuilder() : null; + restoresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRestoresFieldBuilder() + : null; } else { restoresBuilder_.addAllMessages(other.restores_); } @@ -669,7 +724,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.ListRestoresResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.ListRestoresResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -678,21 +734,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List restores_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRestoresIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { restores_ = new java.util.ArrayList(restores_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.Restore, com.google.cloud.gkebackup.v1.Restore.Builder, com.google.cloud.gkebackup.v1.RestoreOrBuilder> restoresBuilder_; + com.google.cloud.gkebackup.v1.Restore, + com.google.cloud.gkebackup.v1.Restore.Builder, + com.google.cloud.gkebackup.v1.RestoreOrBuilder> + restoresBuilder_; /** + * + * *
      * The list of Restores matching the given criteria.
      * 
@@ -707,6 +770,8 @@ public java.util.List getRestoresList() { } } /** + * + * *
      * The list of Restores matching the given criteria.
      * 
@@ -721,6 +786,8 @@ public int getRestoresCount() { } } /** + * + * *
      * The list of Restores matching the given criteria.
      * 
@@ -735,14 +802,15 @@ public com.google.cloud.gkebackup.v1.Restore getRestores(int index) { } } /** + * + * *
      * The list of Restores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - public Builder setRestores( - int index, com.google.cloud.gkebackup.v1.Restore value) { + public Builder setRestores(int index, com.google.cloud.gkebackup.v1.Restore value) { if (restoresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -756,6 +824,8 @@ public Builder setRestores( return this; } /** + * + * *
      * The list of Restores matching the given criteria.
      * 
@@ -774,6 +844,8 @@ public Builder setRestores( return this; } /** + * + * *
      * The list of Restores matching the given criteria.
      * 
@@ -794,14 +866,15 @@ public Builder addRestores(com.google.cloud.gkebackup.v1.Restore value) { return this; } /** + * + * *
      * The list of Restores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - public Builder addRestores( - int index, com.google.cloud.gkebackup.v1.Restore value) { + public Builder addRestores(int index, com.google.cloud.gkebackup.v1.Restore value) { if (restoresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -815,14 +888,15 @@ public Builder addRestores( return this; } /** + * + * *
      * The list of Restores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - public Builder addRestores( - com.google.cloud.gkebackup.v1.Restore.Builder builderForValue) { + public Builder addRestores(com.google.cloud.gkebackup.v1.Restore.Builder builderForValue) { if (restoresBuilder_ == null) { ensureRestoresIsMutable(); restores_.add(builderForValue.build()); @@ -833,6 +907,8 @@ public Builder addRestores( return this; } /** + * + * *
      * The list of Restores matching the given criteria.
      * 
@@ -851,6 +927,8 @@ public Builder addRestores( return this; } /** + * + * *
      * The list of Restores matching the given criteria.
      * 
@@ -861,8 +939,7 @@ public Builder addAllRestores( java.lang.Iterable values) { if (restoresBuilder_ == null) { ensureRestoresIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, restores_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, restores_); onChanged(); } else { restoresBuilder_.addAllMessages(values); @@ -870,6 +947,8 @@ public Builder addAllRestores( return this; } /** + * + * *
      * The list of Restores matching the given criteria.
      * 
@@ -887,6 +966,8 @@ public Builder clearRestores() { return this; } /** + * + * *
      * The list of Restores matching the given criteria.
      * 
@@ -904,39 +985,44 @@ public Builder removeRestores(int index) { return this; } /** + * + * *
      * The list of Restores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - public com.google.cloud.gkebackup.v1.Restore.Builder getRestoresBuilder( - int index) { + public com.google.cloud.gkebackup.v1.Restore.Builder getRestoresBuilder(int index) { return getRestoresFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of Restores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoresOrBuilder( - int index) { + public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoresOrBuilder(int index) { if (restoresBuilder_ == null) { - return restores_.get(index); } else { + return restores_.get(index); + } else { return restoresBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of Restores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - public java.util.List - getRestoresOrBuilderList() { + public java.util.List + getRestoresOrBuilderList() { if (restoresBuilder_ != null) { return restoresBuilder_.getMessageOrBuilderList(); } else { @@ -944,6 +1030,8 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoresOrBuilder( } } /** + * + * *
      * The list of Restores matching the given criteria.
      * 
@@ -951,42 +1039,47 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoresOrBuilder( * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ public com.google.cloud.gkebackup.v1.Restore.Builder addRestoresBuilder() { - return getRestoresFieldBuilder().addBuilder( - com.google.cloud.gkebackup.v1.Restore.getDefaultInstance()); + return getRestoresFieldBuilder() + .addBuilder(com.google.cloud.gkebackup.v1.Restore.getDefaultInstance()); } /** + * + * *
      * The list of Restores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - public com.google.cloud.gkebackup.v1.Restore.Builder addRestoresBuilder( - int index) { - return getRestoresFieldBuilder().addBuilder( - index, com.google.cloud.gkebackup.v1.Restore.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.Restore.Builder addRestoresBuilder(int index) { + return getRestoresFieldBuilder() + .addBuilder(index, com.google.cloud.gkebackup.v1.Restore.getDefaultInstance()); } /** + * + * *
      * The list of Restores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - public java.util.List - getRestoresBuilderList() { + public java.util.List getRestoresBuilderList() { return getRestoresFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.Restore, com.google.cloud.gkebackup.v1.Restore.Builder, com.google.cloud.gkebackup.v1.RestoreOrBuilder> + com.google.cloud.gkebackup.v1.Restore, + com.google.cloud.gkebackup.v1.Restore.Builder, + com.google.cloud.gkebackup.v1.RestoreOrBuilder> getRestoresFieldBuilder() { if (restoresBuilder_ == null) { - restoresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.Restore, com.google.cloud.gkebackup.v1.Restore.Builder, com.google.cloud.gkebackup.v1.RestoreOrBuilder>( - restores_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + restoresBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.Restore, + com.google.cloud.gkebackup.v1.Restore.Builder, + com.google.cloud.gkebackup.v1.RestoreOrBuilder>( + restores_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); restores_ = null; } return restoresBuilder_; @@ -994,6 +1087,8 @@ public com.google.cloud.gkebackup.v1.Restore.Builder addRestoresBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token]
      * in a subsequent `ListRestores` call to retrieve the next page of results.
@@ -1002,13 +1097,13 @@ public com.google.cloud.gkebackup.v1.Restore.Builder addRestoresBuilder(
      * 
* * 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; @@ -1017,6 +1112,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token]
      * in a subsequent `ListRestores` call to retrieve the next page of results.
@@ -1025,15 +1122,14 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1041,6 +1137,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token]
      * in a subsequent `ListRestores` call to retrieve the next page of results.
@@ -1049,20 +1147,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token]
      * in a subsequent `ListRestores` call to retrieve the next page of results.
@@ -1071,15 +1171,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token]
      * in a subsequent `ListRestores` call to retrieve the next page of results.
@@ -1088,57 +1191,67 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1146,80 +1259,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1229,28 +1352,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1260,12 +1385,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListRestoresResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListRestoresResponse) private static final com.google.cloud.gkebackup.v1.ListRestoresResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListRestoresResponse(); } @@ -1274,16 +1399,16 @@ public static com.google.cloud.gkebackup.v1.ListRestoresResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRestoresResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRestoresResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRestoresResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRestoresResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1298,6 +1423,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.ListRestoresResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponseOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponseOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponseOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponseOrBuilder.java index 903e6f7..77d0565 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponseOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListRestoresResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListRestoresResponseOrBuilder extends +public interface ListRestoresResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListRestoresResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of Restores matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - java.util.List - getRestoresList(); + java.util.List getRestoresList(); /** + * + * *
    * The list of Restores matching the given criteria.
    * 
@@ -25,6 +44,8 @@ public interface ListRestoresResponseOrBuilder extends */ com.google.cloud.gkebackup.v1.Restore getRestores(int index); /** + * + * *
    * The list of Restores matching the given criteria.
    * 
@@ -33,25 +54,30 @@ public interface ListRestoresResponseOrBuilder extends */ int getRestoresCount(); /** + * + * *
    * The list of Restores matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - java.util.List + java.util.List getRestoresOrBuilderList(); /** + * + * *
    * The list of Restores matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.Restore restores = 1; */ - com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoresOrBuilder( - int index); + com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoresOrBuilder(int index); /** + * + * *
    * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token]
    * in a subsequent `ListRestores` call to retrieve the next page of results.
@@ -60,10 +86,13 @@ com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoresOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token which may be sent as [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token]
    * in a subsequent `ListRestores` call to retrieve the next page of results.
@@ -72,49 +101,59 @@ com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoresOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequest.java index a61ad5e..47e36c9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for ListVolumeBackups.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListVolumeBackupsRequest} */ -public final class ListVolumeBackupsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListVolumeBackupsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListVolumeBackupsRequest) ListVolumeBackupsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListVolumeBackupsRequest.newBuilder() to construct. private ListVolumeBackupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListVolumeBackupsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListVolumeBackupsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListVolumeBackupsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListVolumeBackupsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private ListVolumeBackupsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,35 +120,42 @@ private ListVolumeBackupsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.class, com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.class, + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The Backup that contains the VolumeBackups to list.
    * Format: projects/*/locations/*/backupPlans/*/backups/*
    * 
* - * string 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 @@ -136,30 +164,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The Backup that contains the VolumeBackups to list.
    * Format: projects/*/locations/*/backupPlans/*/backups/*
    * 
* - * string 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 { @@ -170,6 +200,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -180,6 +212,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -190,6 +223,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
@@ -200,6 +235,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -208,14 +244,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; } } /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
@@ -226,16 +263,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 { @@ -246,11 +282,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -259,29 +298,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -292,11 +331,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -305,29 +347,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -336,6 +378,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,8 +390,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_); } @@ -377,8 +419,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_); @@ -397,23 +438,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest other = (com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest other = + (com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -441,117 +478,127 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListVolumeBackups.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListVolumeBackupsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListVolumeBackupsRequest) com.google.cloud.gkebackup.v1.ListVolumeBackupsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.class, com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.class, + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.newBuilder() @@ -559,16 +606,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -586,9 +632,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsRequest_descriptor; } @java.lang.Override @@ -607,7 +653,8 @@ public com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest buildPartial() { - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest result = new com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest(this); + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest result = + new com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -621,38 +668,39 @@ public com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest 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.cloud.gkebackup.v1.ListVolumeBackupsRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest) other); } else { super.mergeFrom(other); return this; @@ -660,7 +708,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest other) { - if (other == com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -699,7 +748,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -711,19 +761,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The Backup that contains the VolumeBackups to list.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * string 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; @@ -732,21 +786,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The Backup that contains the VolumeBackups to list.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * string 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 { @@ -754,64 +811,79 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The Backup that contains the VolumeBackups to list.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Backup that contains the VolumeBackups to list.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The Backup that contains the VolumeBackups to list.
      * Format: projects/*/locations/*/backupPlans/*/backups/*
      * 
* - * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -822,6 +894,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -829,6 +902,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -839,16 +914,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -859,10 +937,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -870,6 +949,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
@@ -880,13 +961,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; @@ -895,6 +976,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
@@ -905,15 +988,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 { @@ -921,6 +1003,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
@@ -931,20 +1015,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
@@ -955,15 +1041,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
@@ -974,16 +1063,16 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -991,18 +1080,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1011,20 +1102,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1032,54 +1124,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1087,18 +1186,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1107,20 +1208,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1128,61 +1230,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1192,12 +1301,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListVolumeBackupsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListVolumeBackupsRequest) private static final com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest(); } @@ -1206,16 +1315,16 @@ public static com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumeBackupsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumeBackupsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVolumeBackupsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVolumeBackupsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1230,6 +1339,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequestOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequestOrBuilder.java index 54a81e1..faf88f0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequestOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListVolumeBackupsRequestOrBuilder extends +public interface ListVolumeBackupsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListVolumeBackupsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Backup that contains the VolumeBackups to list.
    * Format: projects/*/locations/*/backupPlans/*/backups/*
    * 
* - * string 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 Backup that contains the VolumeBackups to list.
    * Format: projects/*/locations/*/backupPlans/*/backups/*
    * 
* - * string 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 target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -40,11 +67,14 @@ public interface ListVolumeBackupsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
@@ -55,10 +85,13 @@ public interface ListVolumeBackupsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
@@ -69,48 +102,58 @@ public interface ListVolumeBackupsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponse.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponse.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponse.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponse.java index 8a93837..b380b9e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponse.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Response message for ListVolumeBackups.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListVolumeBackupsResponse} */ -public final class ListVolumeBackupsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListVolumeBackupsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListVolumeBackupsResponse) ListVolumeBackupsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListVolumeBackupsResponse.newBuilder() to construct. private ListVolumeBackupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListVolumeBackupsResponse() { volumeBackups_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListVolumeBackupsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListVolumeBackupsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListVolumeBackupsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private ListVolumeBackupsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - volumeBackups_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + volumeBackups_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + volumeBackups_.add( + input.readMessage( + com.google.cloud.gkebackup.v1.VolumeBackup.parser(), extensionRegistry)); + break; } - volumeBackups_.add( - input.readMessage(com.google.cloud.gkebackup.v1.VolumeBackup.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private ListVolumeBackupsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { volumeBackups_ = java.util.Collections.unmodifiableList(volumeBackups_); @@ -94,22 +114,27 @@ private ListVolumeBackupsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.class, com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.class, + com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.Builder.class); } public static final int VOLUME_BACKUPS_FIELD_NUMBER = 1; private java.util.List volumeBackups_; /** + * + * *
    * The list of VolumeBackups matching the given criteria.
    * 
@@ -121,6 +146,8 @@ public java.util.List getVolumeBacku return volumeBackups_; } /** + * + * *
    * The list of VolumeBackups matching the given criteria.
    * 
@@ -128,11 +155,13 @@ public java.util.List getVolumeBacku * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVolumeBackupsOrBuilderList() { return volumeBackups_; } /** + * + * *
    * The list of VolumeBackups matching the given criteria.
    * 
@@ -144,6 +173,8 @@ public int getVolumeBackupsCount() { return volumeBackups_.size(); } /** + * + * *
    * The list of VolumeBackups matching the given criteria.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.gkebackup.v1.VolumeBackup getVolumeBackups(int index) { return volumeBackups_.get(index); } /** + * + * *
    * The list of VolumeBackups matching the given criteria.
    * 
@@ -162,14 +195,15 @@ public com.google.cloud.gkebackup.v1.VolumeBackup getVolumeBackups(int index) { * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ @java.lang.Override - public com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder getVolumeBackupsOrBuilder( - int index) { + public com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder getVolumeBackupsOrBuilder(int index) { return volumeBackups_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token] in a subsequent
@@ -179,6 +213,7 @@ public com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder getVolumeBackupsOrBui
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -187,14 +222,15 @@ 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 may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token] in a subsequent
@@ -204,16 +240,15 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -222,6 +257,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,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 < volumeBackups_.size(); i++) { output.writeMessage(1, volumeBackups_.get(i)); } @@ -251,8 +286,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < volumeBackups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, volumeBackups_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, volumeBackups_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -265,17 +299,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse other = (com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse) obj; + com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse other = + (com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse) obj; - if (!getVolumeBackupsList() - .equals(other.getVolumeBackupsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getVolumeBackupsList().equals(other.getVolumeBackupsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -299,117 +332,127 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListVolumeBackups.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListVolumeBackupsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListVolumeBackupsResponse) com.google.cloud.gkebackup.v1.ListVolumeBackupsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.class, com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.class, + com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.newBuilder() @@ -417,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) { getVolumeBackupsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +486,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListVolumeBackupsResponse_descriptor; } @java.lang.Override @@ -464,7 +507,8 @@ public com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse buildPartial() { - com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse result = new com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse(this); + com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse result = + new com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse(this); int from_bitField0_ = bitField0_; if (volumeBackupsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -484,38 +528,39 @@ public com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse 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.cloud.gkebackup.v1.ListVolumeBackupsResponse) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse)other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse) other); } else { super.mergeFrom(other); return this; @@ -523,7 +568,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse other) { - if (other == com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse.getDefaultInstance()) + return this; if (volumeBackupsBuilder_ == null) { if (!other.volumeBackups_.isEmpty()) { if (volumeBackups_.isEmpty()) { @@ -542,9 +588,10 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse volumeBackupsBuilder_ = null; volumeBackups_ = other.volumeBackups_; bitField0_ = (bitField0_ & ~0x00000001); - volumeBackupsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVolumeBackupsFieldBuilder() : null; + volumeBackupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVolumeBackupsFieldBuilder() + : null; } else { volumeBackupsBuilder_.addAllMessages(other.volumeBackups_); } @@ -573,7 +620,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -582,21 +630,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List volumeBackups_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVolumeBackupsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - volumeBackups_ = new java.util.ArrayList(volumeBackups_); + volumeBackups_ = + new java.util.ArrayList(volumeBackups_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.VolumeBackup, com.google.cloud.gkebackup.v1.VolumeBackup.Builder, com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder> volumeBackupsBuilder_; + com.google.cloud.gkebackup.v1.VolumeBackup, + com.google.cloud.gkebackup.v1.VolumeBackup.Builder, + com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder> + volumeBackupsBuilder_; /** + * + * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -611,6 +667,8 @@ public java.util.List getVolumeBacku } } /** + * + * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -625,6 +683,8 @@ public int getVolumeBackupsCount() { } } /** + * + * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -639,14 +699,15 @@ public com.google.cloud.gkebackup.v1.VolumeBackup getVolumeBackups(int index) { } } /** + * + * *
      * The list of VolumeBackups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ - public Builder setVolumeBackups( - int index, com.google.cloud.gkebackup.v1.VolumeBackup value) { + public Builder setVolumeBackups(int index, com.google.cloud.gkebackup.v1.VolumeBackup value) { if (volumeBackupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -660,6 +721,8 @@ public Builder setVolumeBackups( return this; } /** + * + * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -678,6 +741,8 @@ public Builder setVolumeBackups( return this; } /** + * + * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -698,14 +763,15 @@ public Builder addVolumeBackups(com.google.cloud.gkebackup.v1.VolumeBackup value return this; } /** + * + * *
      * The list of VolumeBackups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ - public Builder addVolumeBackups( - int index, com.google.cloud.gkebackup.v1.VolumeBackup value) { + public Builder addVolumeBackups(int index, com.google.cloud.gkebackup.v1.VolumeBackup value) { if (volumeBackupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -719,6 +785,8 @@ public Builder addVolumeBackups( return this; } /** + * + * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -737,6 +805,8 @@ public Builder addVolumeBackups( return this; } /** + * + * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -755,6 +825,8 @@ public Builder addVolumeBackups( return this; } /** + * + * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -765,8 +837,7 @@ public Builder addAllVolumeBackups( java.lang.Iterable values) { if (volumeBackupsBuilder_ == null) { ensureVolumeBackupsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, volumeBackups_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumeBackups_); onChanged(); } else { volumeBackupsBuilder_.addAllMessages(values); @@ -774,6 +845,8 @@ public Builder addAllVolumeBackups( return this; } /** + * + * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -791,6 +864,8 @@ public Builder clearVolumeBackups() { return this; } /** + * + * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -808,17 +883,20 @@ public Builder removeVolumeBackups(int index) { return this; } /** + * + * *
      * The list of VolumeBackups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ - public com.google.cloud.gkebackup.v1.VolumeBackup.Builder getVolumeBackupsBuilder( - int index) { + public com.google.cloud.gkebackup.v1.VolumeBackup.Builder getVolumeBackupsBuilder(int index) { return getVolumeBackupsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -828,19 +906,22 @@ public com.google.cloud.gkebackup.v1.VolumeBackup.Builder getVolumeBackupsBuilde public com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder getVolumeBackupsOrBuilder( int index) { if (volumeBackupsBuilder_ == null) { - return volumeBackups_.get(index); } else { + return volumeBackups_.get(index); + } else { return volumeBackupsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of VolumeBackups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ - public java.util.List - getVolumeBackupsOrBuilderList() { + public java.util.List + getVolumeBackupsOrBuilderList() { if (volumeBackupsBuilder_ != null) { return volumeBackupsBuilder_.getMessageOrBuilderList(); } else { @@ -848,6 +929,8 @@ public com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder getVolumeBackupsOrBui } } /** + * + * *
      * The list of VolumeBackups matching the given criteria.
      * 
@@ -855,38 +938,47 @@ public com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder getVolumeBackupsOrBui * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ public com.google.cloud.gkebackup.v1.VolumeBackup.Builder addVolumeBackupsBuilder() { - return getVolumeBackupsFieldBuilder().addBuilder( - com.google.cloud.gkebackup.v1.VolumeBackup.getDefaultInstance()); + return getVolumeBackupsFieldBuilder() + .addBuilder(com.google.cloud.gkebackup.v1.VolumeBackup.getDefaultInstance()); } /** + * + * *
      * The list of VolumeBackups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ - public com.google.cloud.gkebackup.v1.VolumeBackup.Builder addVolumeBackupsBuilder( - int index) { - return getVolumeBackupsFieldBuilder().addBuilder( - index, com.google.cloud.gkebackup.v1.VolumeBackup.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.VolumeBackup.Builder addVolumeBackupsBuilder(int index) { + return getVolumeBackupsFieldBuilder() + .addBuilder(index, com.google.cloud.gkebackup.v1.VolumeBackup.getDefaultInstance()); } /** + * + * *
      * The list of VolumeBackups matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ - public java.util.List - getVolumeBackupsBuilderList() { + public java.util.List + getVolumeBackupsBuilderList() { return getVolumeBackupsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.VolumeBackup, com.google.cloud.gkebackup.v1.VolumeBackup.Builder, com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder> + com.google.cloud.gkebackup.v1.VolumeBackup, + com.google.cloud.gkebackup.v1.VolumeBackup.Builder, + com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder> getVolumeBackupsFieldBuilder() { if (volumeBackupsBuilder_ == null) { - volumeBackupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.VolumeBackup, com.google.cloud.gkebackup.v1.VolumeBackup.Builder, com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder>( + volumeBackupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.VolumeBackup, + com.google.cloud.gkebackup.v1.VolumeBackup.Builder, + com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder>( volumeBackups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -898,6 +990,8 @@ public com.google.cloud.gkebackup.v1.VolumeBackup.Builder addVolumeBackupsBuilde private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token] in a subsequent
@@ -907,13 +1001,13 @@ public com.google.cloud.gkebackup.v1.VolumeBackup.Builder addVolumeBackupsBuilde
      * 
* * 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; @@ -922,6 +1016,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token] in a subsequent
@@ -931,15 +1027,14 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -947,6 +1042,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token] in a subsequent
@@ -956,20 +1053,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token] in a subsequent
@@ -979,15 +1078,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token] in a subsequent
@@ -997,23 +1099,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1023,12 +1125,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListVolumeBackupsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListVolumeBackupsResponse) private static final com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse(); } @@ -1037,16 +1139,16 @@ public static com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumeBackupsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumeBackupsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVolumeBackupsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVolumeBackupsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1061,6 +1163,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponseOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponseOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponseOrBuilder.java index a6fc10d..6e5ccb6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponseOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeBackupsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListVolumeBackupsResponseOrBuilder extends +public interface ListVolumeBackupsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListVolumeBackupsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of VolumeBackups matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ - java.util.List - getVolumeBackupsList(); + java.util.List getVolumeBackupsList(); /** + * + * *
    * The list of VolumeBackups matching the given criteria.
    * 
@@ -25,6 +44,8 @@ public interface ListVolumeBackupsResponseOrBuilder extends */ com.google.cloud.gkebackup.v1.VolumeBackup getVolumeBackups(int index); /** + * + * *
    * The list of VolumeBackups matching the given criteria.
    * 
@@ -33,25 +54,30 @@ public interface ListVolumeBackupsResponseOrBuilder extends */ int getVolumeBackupsCount(); /** + * + * *
    * The list of VolumeBackups matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ - java.util.List + java.util.List getVolumeBackupsOrBuilderList(); /** + * + * *
    * The list of VolumeBackups matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1; */ - com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder getVolumeBackupsOrBuilder( - int index); + com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder getVolumeBackupsOrBuilder(int index); /** + * + * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token] in a subsequent
@@ -61,10 +87,13 @@ com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder getVolumeBackupsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token] in a subsequent
@@ -74,8 +103,8 @@ com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder getVolumeBackupsOrBuilder(
    * 
* * 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/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequest.java index 30ee354..8b4a947 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for ListVolumeRestores.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListVolumeRestoresRequest} */ -public final class ListVolumeRestoresRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListVolumeRestoresRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListVolumeRestoresRequest) ListVolumeRestoresRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListVolumeRestoresRequest.newBuilder() to construct. private ListVolumeRestoresRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListVolumeRestoresRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListVolumeRestoresRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListVolumeRestoresRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListVolumeRestoresRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private ListVolumeRestoresRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,35 +120,42 @@ private ListVolumeRestoresRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.class, com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.class, + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The Restore that contains the VolumeRestores to list.
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* - * string 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 @@ -136,30 +164,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The Restore that contains the VolumeRestores to list.
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* - * string 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 { @@ -170,6 +200,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -180,6 +212,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -190,6 +223,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
@@ -200,6 +235,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -208,14 +244,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; } } /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
@@ -226,16 +263,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 { @@ -246,11 +282,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -259,29 +298,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -292,11 +331,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -305,29 +347,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -336,6 +378,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,8 +390,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_); } @@ -377,8 +419,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_); @@ -397,23 +438,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest other = (com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest other = + (com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -441,117 +478,127 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListVolumeRestores.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListVolumeRestoresRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListVolumeRestoresRequest) com.google.cloud.gkebackup.v1.ListVolumeRestoresRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.class, com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.Builder.class); + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.class, + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.newBuilder() @@ -559,16 +606,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -586,9 +632,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresRequest_descriptor; } @java.lang.Override @@ -607,7 +653,8 @@ public com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest buildPartial() { - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest result = new com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest(this); + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest result = + new com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -621,38 +668,39 @@ public com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest 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.cloud.gkebackup.v1.ListVolumeRestoresRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest) other); } else { super.mergeFrom(other); return this; @@ -660,7 +708,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest other) { - if (other == com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -699,7 +748,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -711,19 +761,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The Restore that contains the VolumeRestores to list.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * string 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; @@ -732,21 +786,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The Restore that contains the VolumeRestores to list.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * string 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 { @@ -754,64 +811,79 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The Restore that contains the VolumeRestores to list.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Restore that contains the VolumeRestores to list.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The Restore that contains the VolumeRestores to list.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* - * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -822,6 +894,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -829,6 +902,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -839,16 +914,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The target number of results to return in a single response.
      * If not specified, a default value will be chosen by the service.
@@ -859,10 +937,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -870,6 +949,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
@@ -880,13 +961,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; @@ -895,6 +976,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
@@ -905,15 +988,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 { @@ -921,6 +1003,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
@@ -931,20 +1015,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
@@ -955,15 +1041,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value of
      * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
@@ -974,16 +1063,16 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -991,18 +1080,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1011,20 +1102,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1032,54 +1124,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Field match expression used to filter the results.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1087,18 +1186,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1107,20 +1208,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1128,61 +1230,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Field by which to sort the results.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1192,12 +1301,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListVolumeRestoresRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListVolumeRestoresRequest) private static final com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest(); } @@ -1206,16 +1315,16 @@ public static com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumeRestoresRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumeRestoresRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVolumeRestoresRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVolumeRestoresRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1230,6 +1339,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequestOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequestOrBuilder.java index 57550f4..bfa588a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequestOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListVolumeRestoresRequestOrBuilder extends +public interface ListVolumeRestoresRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListVolumeRestoresRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Restore that contains the VolumeRestores to list.
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* - * string 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 Restore that contains the VolumeRestores to list.
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* - * string 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 target number of results to return in a single response.
    * If not specified, a default value will be chosen by the service.
@@ -40,11 +67,14 @@ public interface ListVolumeRestoresRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
@@ -55,10 +85,13 @@ public interface ListVolumeRestoresRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value of
    * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
@@ -69,48 +102,58 @@ public interface ListVolumeRestoresRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Field match expression used to filter the results.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Field by which to sort the results.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponse.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponse.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponse.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponse.java index b96cfe2..0fdf44a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponse.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Response message for ListVolumeRestores.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListVolumeRestoresResponse} */ -public final class ListVolumeRestoresResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListVolumeRestoresResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ListVolumeRestoresResponse) ListVolumeRestoresResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListVolumeRestoresResponse.newBuilder() to construct. private ListVolumeRestoresResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListVolumeRestoresResponse() { volumeRestores_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListVolumeRestoresResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListVolumeRestoresResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListVolumeRestoresResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private ListVolumeRestoresResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - volumeRestores_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + volumeRestores_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + volumeRestores_.add( + input.readMessage( + com.google.cloud.gkebackup.v1.VolumeRestore.parser(), extensionRegistry)); + break; } - volumeRestores_.add( - input.readMessage(com.google.cloud.gkebackup.v1.VolumeRestore.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private ListVolumeRestoresResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { volumeRestores_ = java.util.Collections.unmodifiableList(volumeRestores_); @@ -94,22 +114,27 @@ private ListVolumeRestoresResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.class, com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.class, + com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.Builder.class); } public static final int VOLUME_RESTORES_FIELD_NUMBER = 1; private java.util.List volumeRestores_; /** + * + * *
    * The list of VolumeRestores matching the given criteria.
    * 
@@ -121,6 +146,8 @@ public java.util.List getVolumeRest return volumeRestores_; } /** + * + * *
    * The list of VolumeRestores matching the given criteria.
    * 
@@ -128,11 +155,13 @@ public java.util.List getVolumeRest * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVolumeRestoresOrBuilderList() { return volumeRestores_; } /** + * + * *
    * The list of VolumeRestores matching the given criteria.
    * 
@@ -144,6 +173,8 @@ public int getVolumeRestoresCount() { return volumeRestores_.size(); } /** + * + * *
    * The list of VolumeRestores matching the given criteria.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.gkebackup.v1.VolumeRestore getVolumeRestores(int index) return volumeRestores_.get(index); } /** + * + * *
    * The list of VolumeRestores matching the given criteria.
    * 
@@ -170,6 +203,8 @@ public com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder getVolumeRestoresOrB public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token] in a subsequent
@@ -179,6 +214,7 @@ public com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder getVolumeRestoresOrB
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -187,14 +223,15 @@ 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 may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token] in a subsequent
@@ -204,16 +241,15 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -222,6 +258,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,8 +270,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 < volumeRestores_.size(); i++) { output.writeMessage(1, volumeRestores_.get(i)); } @@ -251,8 +287,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < volumeRestores_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, volumeRestores_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, volumeRestores_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -265,17 +300,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse other = (com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse) obj; + com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse other = + (com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse) obj; - if (!getVolumeRestoresList() - .equals(other.getVolumeRestoresList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getVolumeRestoresList().equals(other.getVolumeRestoresList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -299,117 +333,127 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListVolumeRestores.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.ListVolumeRestoresResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ListVolumeRestoresResponse) com.google.cloud.gkebackup.v1.ListVolumeRestoresResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.class, com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.Builder.class); + com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.class, + com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.newBuilder() @@ -417,17 +461,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) { getVolumeRestoresFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_ListVolumeRestoresResponse_descriptor; } @java.lang.Override @@ -464,7 +508,8 @@ public com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse build() { @java.lang.Override public com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse buildPartial() { - com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse result = new com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse(this); + com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse result = + new com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse(this); int from_bitField0_ = bitField0_; if (volumeRestoresBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -484,38 +529,39 @@ public com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse 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.cloud.gkebackup.v1.ListVolumeRestoresResponse) { - return mergeFrom((com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse)other); + return mergeFrom((com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse) other); } else { super.mergeFrom(other); return this; @@ -523,7 +569,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse other) { - if (other == com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse.getDefaultInstance()) + return this; if (volumeRestoresBuilder_ == null) { if (!other.volumeRestores_.isEmpty()) { if (volumeRestores_.isEmpty()) { @@ -542,9 +589,10 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.ListVolumeRestoresRespons volumeRestoresBuilder_ = null; volumeRestores_ = other.volumeRestores_; bitField0_ = (bitField0_ & ~0x00000001); - volumeRestoresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVolumeRestoresFieldBuilder() : null; + volumeRestoresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVolumeRestoresFieldBuilder() + : null; } else { volumeRestoresBuilder_.addAllMessages(other.volumeRestores_); } @@ -573,7 +621,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -582,21 +631,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List volumeRestores_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVolumeRestoresIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - volumeRestores_ = new java.util.ArrayList(volumeRestores_); + volumeRestores_ = + new java.util.ArrayList(volumeRestores_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.VolumeRestore, com.google.cloud.gkebackup.v1.VolumeRestore.Builder, com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder> volumeRestoresBuilder_; + com.google.cloud.gkebackup.v1.VolumeRestore, + com.google.cloud.gkebackup.v1.VolumeRestore.Builder, + com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder> + volumeRestoresBuilder_; /** + * + * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -611,6 +668,8 @@ public java.util.List getVolumeRest } } /** + * + * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -625,6 +684,8 @@ public int getVolumeRestoresCount() { } } /** + * + * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -639,14 +700,15 @@ public com.google.cloud.gkebackup.v1.VolumeRestore getVolumeRestores(int index) } } /** + * + * *
      * The list of VolumeRestores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ - public Builder setVolumeRestores( - int index, com.google.cloud.gkebackup.v1.VolumeRestore value) { + public Builder setVolumeRestores(int index, com.google.cloud.gkebackup.v1.VolumeRestore value) { if (volumeRestoresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -660,6 +722,8 @@ public Builder setVolumeRestores( return this; } /** + * + * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -678,6 +742,8 @@ public Builder setVolumeRestores( return this; } /** + * + * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -698,14 +764,15 @@ public Builder addVolumeRestores(com.google.cloud.gkebackup.v1.VolumeRestore val return this; } /** + * + * *
      * The list of VolumeRestores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ - public Builder addVolumeRestores( - int index, com.google.cloud.gkebackup.v1.VolumeRestore value) { + public Builder addVolumeRestores(int index, com.google.cloud.gkebackup.v1.VolumeRestore value) { if (volumeRestoresBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -719,6 +786,8 @@ public Builder addVolumeRestores( return this; } /** + * + * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -737,6 +806,8 @@ public Builder addVolumeRestores( return this; } /** + * + * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -755,6 +826,8 @@ public Builder addVolumeRestores( return this; } /** + * + * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -765,8 +838,7 @@ public Builder addAllVolumeRestores( java.lang.Iterable values) { if (volumeRestoresBuilder_ == null) { ensureVolumeRestoresIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, volumeRestores_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumeRestores_); onChanged(); } else { volumeRestoresBuilder_.addAllMessages(values); @@ -774,6 +846,8 @@ public Builder addAllVolumeRestores( return this; } /** + * + * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -791,6 +865,8 @@ public Builder clearVolumeRestores() { return this; } /** + * + * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -808,17 +884,20 @@ public Builder removeVolumeRestores(int index) { return this; } /** + * + * *
      * The list of VolumeRestores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ - public com.google.cloud.gkebackup.v1.VolumeRestore.Builder getVolumeRestoresBuilder( - int index) { + public com.google.cloud.gkebackup.v1.VolumeRestore.Builder getVolumeRestoresBuilder(int index) { return getVolumeRestoresFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -828,19 +907,22 @@ public com.google.cloud.gkebackup.v1.VolumeRestore.Builder getVolumeRestoresBuil public com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder getVolumeRestoresOrBuilder( int index) { if (volumeRestoresBuilder_ == null) { - return volumeRestores_.get(index); } else { + return volumeRestores_.get(index); + } else { return volumeRestoresBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of VolumeRestores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ - public java.util.List - getVolumeRestoresOrBuilderList() { + public java.util.List + getVolumeRestoresOrBuilderList() { if (volumeRestoresBuilder_ != null) { return volumeRestoresBuilder_.getMessageOrBuilderList(); } else { @@ -848,6 +930,8 @@ public com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder getVolumeRestoresOrB } } /** + * + * *
      * The list of VolumeRestores matching the given criteria.
      * 
@@ -855,38 +939,47 @@ public com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder getVolumeRestoresOrB * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ public com.google.cloud.gkebackup.v1.VolumeRestore.Builder addVolumeRestoresBuilder() { - return getVolumeRestoresFieldBuilder().addBuilder( - com.google.cloud.gkebackup.v1.VolumeRestore.getDefaultInstance()); + return getVolumeRestoresFieldBuilder() + .addBuilder(com.google.cloud.gkebackup.v1.VolumeRestore.getDefaultInstance()); } /** + * + * *
      * The list of VolumeRestores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ - public com.google.cloud.gkebackup.v1.VolumeRestore.Builder addVolumeRestoresBuilder( - int index) { - return getVolumeRestoresFieldBuilder().addBuilder( - index, com.google.cloud.gkebackup.v1.VolumeRestore.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.VolumeRestore.Builder addVolumeRestoresBuilder(int index) { + return getVolumeRestoresFieldBuilder() + .addBuilder(index, com.google.cloud.gkebackup.v1.VolumeRestore.getDefaultInstance()); } /** + * + * *
      * The list of VolumeRestores matching the given criteria.
      * 
* * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ - public java.util.List - getVolumeRestoresBuilderList() { + public java.util.List + getVolumeRestoresBuilderList() { return getVolumeRestoresFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.VolumeRestore, com.google.cloud.gkebackup.v1.VolumeRestore.Builder, com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder> + com.google.cloud.gkebackup.v1.VolumeRestore, + com.google.cloud.gkebackup.v1.VolumeRestore.Builder, + com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder> getVolumeRestoresFieldBuilder() { if (volumeRestoresBuilder_ == null) { - volumeRestoresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.VolumeRestore, com.google.cloud.gkebackup.v1.VolumeRestore.Builder, com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder>( + volumeRestoresBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.VolumeRestore, + com.google.cloud.gkebackup.v1.VolumeRestore.Builder, + com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder>( volumeRestores_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -898,6 +991,8 @@ public com.google.cloud.gkebackup.v1.VolumeRestore.Builder addVolumeRestoresBuil private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token] in a subsequent
@@ -907,13 +1002,13 @@ public com.google.cloud.gkebackup.v1.VolumeRestore.Builder addVolumeRestoresBuil
      * 
* * 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; @@ -922,6 +1017,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token] in a subsequent
@@ -931,15 +1028,14 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -947,6 +1043,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token] in a subsequent
@@ -956,20 +1054,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token] in a subsequent
@@ -979,15 +1079,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token which may be sent as
      * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token] in a subsequent
@@ -997,23 +1100,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1023,12 +1126,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ListVolumeRestoresResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ListVolumeRestoresResponse) private static final com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse(); } @@ -1037,16 +1140,16 @@ public static com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumeRestoresResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumeRestoresResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVolumeRestoresResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVolumeRestoresResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1061,6 +1164,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponseOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponseOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponseOrBuilder.java index 308240e..ea0e311 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponseOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ListVolumeRestoresResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface ListVolumeRestoresResponseOrBuilder extends +public interface ListVolumeRestoresResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ListVolumeRestoresResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of VolumeRestores matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ - java.util.List - getVolumeRestoresList(); + java.util.List getVolumeRestoresList(); /** + * + * *
    * The list of VolumeRestores matching the given criteria.
    * 
@@ -25,6 +44,8 @@ public interface ListVolumeRestoresResponseOrBuilder extends */ com.google.cloud.gkebackup.v1.VolumeRestore getVolumeRestores(int index); /** + * + * *
    * The list of VolumeRestores matching the given criteria.
    * 
@@ -33,25 +54,30 @@ public interface ListVolumeRestoresResponseOrBuilder extends */ int getVolumeRestoresCount(); /** + * + * *
    * The list of VolumeRestores matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ - java.util.List + java.util.List getVolumeRestoresOrBuilderList(); /** + * + * *
    * The list of VolumeRestores matching the given criteria.
    * 
* * repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1; */ - com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder getVolumeRestoresOrBuilder( - int index); + com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder getVolumeRestoresOrBuilder(int index); /** + * + * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token] in a subsequent
@@ -61,10 +87,13 @@ com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder getVolumeRestoresOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token which may be sent as
    * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token] in a subsequent
@@ -74,8 +103,8 @@ com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder getVolumeRestoresOrBuilder(
    * 
* * 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/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/LocationName.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/LocationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/LocationName.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/LocationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedName.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedName.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedName.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedName.java index f5bfa14..76e04dc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedName.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedName.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/common.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * A reference to a namespaced resource in Kubernetes.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.NamespacedName} */ -public final class NamespacedName extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NamespacedName extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.NamespacedName) NamespacedNameOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NamespacedName.newBuilder() to construct. private NamespacedName(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NamespacedName() { namespace_ = ""; name_ = ""; @@ -26,16 +44,15 @@ private NamespacedName() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NamespacedName(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private NamespacedName( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private NamespacedName( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - namespace_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + namespace_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,39 @@ private NamespacedName( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.CommonProto + .internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_NamespacedName_fieldAccessorTable + return com.google.cloud.gkebackup.v1.CommonProto + .internal_static_google_cloud_gkebackup_v1_NamespacedName_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.NamespacedName.class, com.google.cloud.gkebackup.v1.NamespacedName.Builder.class); + com.google.cloud.gkebackup.v1.NamespacedName.class, + com.google.cloud.gkebackup.v1.NamespacedName.Builder.class); } public static final int NAMESPACE_FIELD_NUMBER = 1; private volatile java.lang.Object namespace_; /** + * + * *
    * The Namespace of the Kubernetes resource.
    * 
* * string namespace = 1; + * * @return The namespace. */ @java.lang.Override @@ -116,29 +140,29 @@ public java.lang.String getNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } } /** + * + * *
    * The Namespace of the Kubernetes resource.
    * 
* * string namespace = 1; + * * @return The bytes for namespace. */ @java.lang.Override - public com.google.protobuf.ByteString - getNamespaceBytes() { + public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { @@ -149,11 +173,14 @@ public java.lang.String getNamespace() { public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** + * + * *
    * The name of the Kubernetes resource.
    * 
* * string name = 2; + * * @return The name. */ @java.lang.Override @@ -162,29 +189,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; } } /** + * + * *
    * The name of the Kubernetes resource.
    * 
* * string name = 2; + * * @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 { @@ -193,6 +220,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_); } @@ -235,17 +262,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.NamespacedName)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.NamespacedName other = (com.google.cloud.gkebackup.v1.NamespacedName) obj; + com.google.cloud.gkebackup.v1.NamespacedName other = + (com.google.cloud.gkebackup.v1.NamespacedName) obj; - if (!getNamespace() - .equals(other.getNamespace())) return false; - if (!getName() - .equals(other.getName())) return false; + if (!getNamespace().equals(other.getNamespace())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -266,118 +292,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.NamespacedName parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.NamespacedName parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.NamespacedName parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.NamespacedName parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.NamespacedName prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 reference to a namespaced resource in Kubernetes.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.NamespacedName} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.NamespacedName) com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.CommonProto + .internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_NamespacedName_fieldAccessorTable + return com.google.cloud.gkebackup.v1.CommonProto + .internal_static_google_cloud_gkebackup_v1_NamespacedName_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.NamespacedName.class, com.google.cloud.gkebackup.v1.NamespacedName.Builder.class); + com.google.cloud.gkebackup.v1.NamespacedName.class, + com.google.cloud.gkebackup.v1.NamespacedName.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.NamespacedName.newBuilder() @@ -385,16 +420,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -406,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.CommonProto + .internal_static_google_cloud_gkebackup_v1_NamespacedName_descriptor; } @java.lang.Override @@ -427,7 +461,8 @@ public com.google.cloud.gkebackup.v1.NamespacedName build() { @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacedName buildPartial() { - com.google.cloud.gkebackup.v1.NamespacedName result = new com.google.cloud.gkebackup.v1.NamespacedName(this); + com.google.cloud.gkebackup.v1.NamespacedName result = + new com.google.cloud.gkebackup.v1.NamespacedName(this); result.namespace_ = namespace_; result.name_ = name_; onBuilt(); @@ -438,38 +473,39 @@ public com.google.cloud.gkebackup.v1.NamespacedName 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.cloud.gkebackup.v1.NamespacedName) { - return mergeFrom((com.google.cloud.gkebackup.v1.NamespacedName)other); + return mergeFrom((com.google.cloud.gkebackup.v1.NamespacedName) other); } else { super.mergeFrom(other); return this; @@ -517,18 +553,20 @@ public Builder mergeFrom( private java.lang.Object namespace_ = ""; /** + * + * *
      * The Namespace of the Kubernetes resource.
      * 
* * string namespace = 1; + * * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; @@ -537,20 +575,21 @@ public java.lang.String getNamespace() { } } /** + * + * *
      * The Namespace of the Kubernetes resource.
      * 
* * string namespace = 1; + * * @return The bytes for namespace. */ - public com.google.protobuf.ByteString - getNamespaceBytes() { + public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { @@ -558,54 +597,61 @@ public java.lang.String getNamespace() { } } /** + * + * *
      * The Namespace of the Kubernetes resource.
      * 
* * string namespace = 1; + * * @param value The namespace to set. * @return This builder for chaining. */ - public Builder setNamespace( - java.lang.String value) { + public Builder setNamespace(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + namespace_ = value; onChanged(); return this; } /** + * + * *
      * The Namespace of the Kubernetes resource.
      * 
* * string namespace = 1; + * * @return This builder for chaining. */ public Builder clearNamespace() { - + namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** + * + * *
      * The Namespace of the Kubernetes resource.
      * 
* * string namespace = 1; + * * @param value The bytes for namespace to set. * @return This builder for chaining. */ - public Builder setNamespaceBytes( - com.google.protobuf.ByteString value) { + public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namespace_ = value; onChanged(); return this; @@ -613,18 +659,20 @@ public Builder setNamespaceBytes( private java.lang.Object name_ = ""; /** + * + * *
      * The name of the Kubernetes resource.
      * 
* * string name = 2; + * * @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; @@ -633,20 +681,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the Kubernetes resource.
      * 
* * string name = 2; + * * @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 { @@ -654,61 +703,68 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the Kubernetes resource.
      * 
* * string name = 2; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the Kubernetes resource.
      * 
* * string name = 2; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the Kubernetes resource.
      * 
* * string name = 2; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -718,12 +774,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.NamespacedName) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.NamespacedName) private static final com.google.cloud.gkebackup.v1.NamespacedName DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.NamespacedName(); } @@ -732,16 +788,16 @@ public static com.google.cloud.gkebackup.v1.NamespacedName getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamespacedName parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamespacedName(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamespacedName parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamespacedName(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +812,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.NamespacedName getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNameOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNameOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNameOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNameOrBuilder.java index 7be179d..5a40267 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNameOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNameOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/common.proto package com.google.cloud.gkebackup.v1; -public interface NamespacedNameOrBuilder extends +public interface NamespacedNameOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.NamespacedName) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Namespace of the Kubernetes resource.
    * 
* * string namespace = 1; + * * @return The namespace. */ java.lang.String getNamespace(); /** + * + * *
    * The Namespace of the Kubernetes resource.
    * 
* * string namespace = 1; + * * @return The bytes for namespace. */ - com.google.protobuf.ByteString - getNamespaceBytes(); + com.google.protobuf.ByteString getNamespaceBytes(); /** + * + * *
    * The name of the Kubernetes resource.
    * 
* * string name = 2; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the Kubernetes resource.
    * 
* * string name = 2; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNames.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNames.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNames.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNames.java index 773fcf8..e92b544 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNames.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNames.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/common.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * A list of namespaced Kubernetes resources.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.NamespacedNames} */ -public final class NamespacedNames extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NamespacedNames extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.NamespacedNames) NamespacedNamesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NamespacedNames.newBuilder() to construct. private NamespacedNames(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NamespacedNames() { namespacedNames_ = 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 NamespacedNames(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private NamespacedNames( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,25 @@ private NamespacedNames( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - namespacedNames_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + namespacedNames_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + namespacedNames_.add( + input.readMessage( + com.google.cloud.gkebackup.v1.NamespacedName.parser(), extensionRegistry)); + break; } - namespacedNames_.add( - input.readMessage(com.google.cloud.gkebackup.v1.NamespacedName.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +97,7 @@ private NamespacedNames( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { namespacedNames_ = java.util.Collections.unmodifiableList(namespacedNames_); @@ -87,22 +106,27 @@ private NamespacedNames( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.CommonProto + .internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_NamespacedNames_fieldAccessorTable + return com.google.cloud.gkebackup.v1.CommonProto + .internal_static_google_cloud_gkebackup_v1_NamespacedNames_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.NamespacedNames.class, com.google.cloud.gkebackup.v1.NamespacedNames.Builder.class); + com.google.cloud.gkebackup.v1.NamespacedNames.class, + com.google.cloud.gkebackup.v1.NamespacedNames.Builder.class); } public static final int NAMESPACED_NAMES_FIELD_NUMBER = 1; private java.util.List namespacedNames_; /** + * + * *
    * A list of namespaced Kubernetes resources.
    * 
@@ -114,6 +138,8 @@ public java.util.List getNamespace return namespacedNames_; } /** + * + * *
    * A list of namespaced Kubernetes resources.
    * 
@@ -121,11 +147,13 @@ public java.util.List getNamespace * repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNamespacedNamesOrBuilderList() { return namespacedNames_; } /** + * + * *
    * A list of namespaced Kubernetes resources.
    * 
@@ -137,6 +165,8 @@ public int getNamespacedNamesCount() { return namespacedNames_.size(); } /** + * + * *
    * A list of namespaced Kubernetes resources.
    * 
@@ -148,6 +178,8 @@ public com.google.cloud.gkebackup.v1.NamespacedName getNamespacedNames(int index return namespacedNames_.get(index); } /** + * + * *
    * A list of namespaced Kubernetes resources.
    * 
@@ -161,6 +193,7 @@ public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getNamespacedNamesO } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +205,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < namespacedNames_.size(); i++) { output.writeMessage(1, namespacedNames_.get(i)); } @@ -187,8 +219,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < namespacedNames_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, namespacedNames_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, namespacedNames_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,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.cloud.gkebackup.v1.NamespacedNames)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.NamespacedNames other = (com.google.cloud.gkebackup.v1.NamespacedNames) obj; + com.google.cloud.gkebackup.v1.NamespacedNames other = + (com.google.cloud.gkebackup.v1.NamespacedNames) obj; - if (!getNamespacedNamesList() - .equals(other.getNamespacedNamesList())) return false; + if (!getNamespacedNamesList().equals(other.getNamespacedNamesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,118 +258,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.NamespacedNames parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.NamespacedNames parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.NamespacedNames parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.NamespacedNames parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.NamespacedNames prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 list of namespaced Kubernetes resources.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.NamespacedNames} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.NamespacedNames) com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.CommonProto + .internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_NamespacedNames_fieldAccessorTable + return com.google.cloud.gkebackup.v1.CommonProto + .internal_static_google_cloud_gkebackup_v1_NamespacedNames_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.NamespacedNames.class, com.google.cloud.gkebackup.v1.NamespacedNames.Builder.class); + com.google.cloud.gkebackup.v1.NamespacedNames.class, + com.google.cloud.gkebackup.v1.NamespacedNames.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.NamespacedNames.newBuilder() @@ -346,17 +386,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) { getNamespacedNamesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.CommonProto + .internal_static_google_cloud_gkebackup_v1_NamespacedNames_descriptor; } @java.lang.Override @@ -391,7 +431,8 @@ public com.google.cloud.gkebackup.v1.NamespacedNames build() { @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacedNames buildPartial() { - com.google.cloud.gkebackup.v1.NamespacedNames result = new com.google.cloud.gkebackup.v1.NamespacedNames(this); + com.google.cloud.gkebackup.v1.NamespacedNames result = + new com.google.cloud.gkebackup.v1.NamespacedNames(this); int from_bitField0_ = bitField0_; if (namespacedNamesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +451,39 @@ public com.google.cloud.gkebackup.v1.NamespacedNames 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.cloud.gkebackup.v1.NamespacedNames) { - return mergeFrom((com.google.cloud.gkebackup.v1.NamespacedNames)other); + return mergeFrom((com.google.cloud.gkebackup.v1.NamespacedNames) other); } else { super.mergeFrom(other); return this; @@ -468,9 +510,10 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.NamespacedNames other) { namespacedNamesBuilder_ = null; namespacedNames_ = other.namespacedNames_; bitField0_ = (bitField0_ & ~0x00000001); - namespacedNamesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNamespacedNamesFieldBuilder() : null; + namespacedNamesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNamespacedNamesFieldBuilder() + : null; } else { namespacedNamesBuilder_.addAllMessages(other.namespacedNames_); } @@ -504,21 +547,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List namespacedNames_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNamespacedNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - namespacedNames_ = new java.util.ArrayList(namespacedNames_); + namespacedNames_ = + new java.util.ArrayList(namespacedNames_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedName, com.google.cloud.gkebackup.v1.NamespacedName.Builder, com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> namespacedNamesBuilder_; + com.google.cloud.gkebackup.v1.NamespacedName, + com.google.cloud.gkebackup.v1.NamespacedName.Builder, + com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> + namespacedNamesBuilder_; /** + * + * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -533,6 +584,8 @@ public java.util.List getNamespace } } /** + * + * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -547,6 +600,8 @@ public int getNamespacedNamesCount() { } } /** + * + * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -561,6 +616,8 @@ public com.google.cloud.gkebackup.v1.NamespacedName getNamespacedNames(int index } } /** + * + * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -582,6 +639,8 @@ public Builder setNamespacedNames( return this; } /** + * + * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -600,6 +659,8 @@ public Builder setNamespacedNames( return this; } /** + * + * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -620,6 +681,8 @@ public Builder addNamespacedNames(com.google.cloud.gkebackup.v1.NamespacedName v return this; } /** + * + * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -641,6 +704,8 @@ public Builder addNamespacedNames( return this; } /** + * + * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -659,6 +724,8 @@ public Builder addNamespacedNames( return this; } /** + * + * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -677,6 +744,8 @@ public Builder addNamespacedNames( return this; } /** + * + * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -687,8 +756,7 @@ public Builder addAllNamespacedNames( java.lang.Iterable values) { if (namespacedNamesBuilder_ == null) { ensureNamespacedNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, namespacedNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, namespacedNames_); onChanged(); } else { namespacedNamesBuilder_.addAllMessages(values); @@ -696,6 +764,8 @@ public Builder addAllNamespacedNames( return this; } /** + * + * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -713,6 +783,8 @@ public Builder clearNamespacedNames() { return this; } /** + * + * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -730,6 +802,8 @@ public Builder removeNamespacedNames(int index) { return this; } /** + * + * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -741,6 +815,8 @@ public com.google.cloud.gkebackup.v1.NamespacedName.Builder getNamespacedNamesBu return getNamespacedNamesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -750,19 +826,22 @@ public com.google.cloud.gkebackup.v1.NamespacedName.Builder getNamespacedNamesBu public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getNamespacedNamesOrBuilder( int index) { if (namespacedNamesBuilder_ == null) { - return namespacedNames_.get(index); } else { + return namespacedNames_.get(index); + } else { return namespacedNamesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of namespaced Kubernetes resources.
      * 
* * repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1; */ - public java.util.List - getNamespacedNamesOrBuilderList() { + public java.util.List + getNamespacedNamesOrBuilderList() { if (namespacedNamesBuilder_ != null) { return namespacedNamesBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +849,8 @@ public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getNamespacedNamesO } } /** + * + * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -777,10 +858,12 @@ public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getNamespacedNamesO * repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1; */ public com.google.cloud.gkebackup.v1.NamespacedName.Builder addNamespacedNamesBuilder() { - return getNamespacedNamesFieldBuilder().addBuilder( - com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance()); + return getNamespacedNamesFieldBuilder() + .addBuilder(com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance()); } /** + * + * *
      * A list of namespaced Kubernetes resources.
      * 
@@ -789,26 +872,34 @@ public com.google.cloud.gkebackup.v1.NamespacedName.Builder addNamespacedNamesBu */ public com.google.cloud.gkebackup.v1.NamespacedName.Builder addNamespacedNamesBuilder( int index) { - return getNamespacedNamesFieldBuilder().addBuilder( - index, com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance()); + return getNamespacedNamesFieldBuilder() + .addBuilder(index, com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance()); } /** + * + * *
      * A list of namespaced Kubernetes resources.
      * 
* * repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1; */ - public java.util.List - getNamespacedNamesBuilderList() { + public java.util.List + getNamespacedNamesBuilderList() { return getNamespacedNamesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedName, com.google.cloud.gkebackup.v1.NamespacedName.Builder, com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> + com.google.cloud.gkebackup.v1.NamespacedName, + com.google.cloud.gkebackup.v1.NamespacedName.Builder, + com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> getNamespacedNamesFieldBuilder() { if (namespacedNamesBuilder_ == null) { - namespacedNamesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedName, com.google.cloud.gkebackup.v1.NamespacedName.Builder, com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder>( + namespacedNamesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.NamespacedName, + com.google.cloud.gkebackup.v1.NamespacedName.Builder, + com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder>( namespacedNames_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -817,9 +908,9 @@ public com.google.cloud.gkebackup.v1.NamespacedName.Builder addNamespacedNamesBu } return namespacedNamesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +920,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.NamespacedNames) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.NamespacedNames) private static final com.google.cloud.gkebackup.v1.NamespacedNames DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.NamespacedNames(); } @@ -843,16 +934,16 @@ public static com.google.cloud.gkebackup.v1.NamespacedNames getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamespacedNames parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamespacedNames(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamespacedNames parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamespacedNames(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +958,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.NamespacedNames getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNamesOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNamesOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNamesOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNamesOrBuilder.java index 66fde02..84e4e3d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNamesOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacedNamesOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/common.proto package com.google.cloud.gkebackup.v1; -public interface NamespacedNamesOrBuilder extends +public interface NamespacedNamesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.NamespacedNames) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of namespaced Kubernetes resources.
    * 
* * repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1; */ - java.util.List - getNamespacedNamesList(); + java.util.List getNamespacedNamesList(); /** + * + * *
    * A list of namespaced Kubernetes resources.
    * 
@@ -25,6 +44,8 @@ public interface NamespacedNamesOrBuilder extends */ com.google.cloud.gkebackup.v1.NamespacedName getNamespacedNames(int index); /** + * + * *
    * A list of namespaced Kubernetes resources.
    * 
@@ -33,21 +54,24 @@ public interface NamespacedNamesOrBuilder extends */ int getNamespacedNamesCount(); /** + * + * *
    * A list of namespaced Kubernetes resources.
    * 
* * repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1; */ - java.util.List + java.util.List getNamespacedNamesOrBuilderList(); /** + * + * *
    * A list of namespaced Kubernetes resources.
    * 
* * repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1; */ - com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getNamespacedNamesOrBuilder( - int index); + com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getNamespacedNamesOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Namespaces.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Namespaces.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Namespaces.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Namespaces.java index 171b99e..c2d6387 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Namespaces.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Namespaces.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/common.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * A list of Kubernetes Namespaces
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.Namespaces} */ -public final class Namespaces extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Namespaces extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.Namespaces) NamespacesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Namespaces.newBuilder() to construct. private Namespaces(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Namespaces() { namespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Namespaces(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Namespaces( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,23 @@ private Namespaces( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - namespaces_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + namespaces_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + namespaces_.add(s); + break; } - namespaces_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +95,7 @@ private Namespaces( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { namespaces_ = namespaces_.getUnmodifiableView(); @@ -87,50 +104,61 @@ private Namespaces( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.CommonProto + .internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_Namespaces_fieldAccessorTable + return com.google.cloud.gkebackup.v1.CommonProto + .internal_static_google_cloud_gkebackup_v1_Namespaces_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.Namespaces.class, com.google.cloud.gkebackup.v1.Namespaces.Builder.class); + com.google.cloud.gkebackup.v1.Namespaces.class, + com.google.cloud.gkebackup.v1.Namespaces.Builder.class); } public static final int NAMESPACES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList namespaces_; /** + * + * *
    * A list of Kubernetes Namespaces
    * 
* * repeated string namespaces = 1; + * * @return A list containing the namespaces. */ - public com.google.protobuf.ProtocolStringList - getNamespacesList() { + public com.google.protobuf.ProtocolStringList getNamespacesList() { return namespaces_; } /** + * + * *
    * A list of Kubernetes Namespaces
    * 
* * repeated string namespaces = 1; + * * @return The count of namespaces. */ public int getNamespacesCount() { return namespaces_.size(); } /** + * + * *
    * A list of Kubernetes Namespaces
    * 
* * repeated string namespaces = 1; + * * @param index The index of the element to return. * @return The namespaces at the given index. */ @@ -138,20 +166,23 @@ public java.lang.String getNamespaces(int index) { return namespaces_.get(index); } /** + * + * *
    * A list of Kubernetes Namespaces
    * 
* * repeated string namespaces = 1; + * * @param index The index of the value to return. * @return The bytes of the namespaces at the given index. */ - public com.google.protobuf.ByteString - getNamespacesBytes(int index) { + public com.google.protobuf.ByteString getNamespacesBytes(int index) { return namespaces_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,8 +194,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < namespaces_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespaces_.getRaw(i)); } @@ -193,15 +223,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.cloud.gkebackup.v1.Namespaces)) { return super.equals(obj); } com.google.cloud.gkebackup.v1.Namespaces other = (com.google.cloud.gkebackup.v1.Namespaces) obj; - if (!getNamespacesList() - .equals(other.getNamespacesList())) return false; + if (!getNamespacesList().equals(other.getNamespacesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -222,118 +251,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.Namespaces parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.Namespaces parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.Namespaces parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.Namespaces parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.Namespaces parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.Namespaces parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.Namespaces parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.Namespaces parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.Namespaces parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.Namespaces parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.Namespaces parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.Namespaces parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.Namespaces parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.Namespaces parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.Namespaces prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 list of Kubernetes Namespaces
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.Namespaces} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.Namespaces) com.google.cloud.gkebackup.v1.NamespacesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.CommonProto + .internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_Namespaces_fieldAccessorTable + return com.google.cloud.gkebackup.v1.CommonProto + .internal_static_google_cloud_gkebackup_v1_Namespaces_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.Namespaces.class, com.google.cloud.gkebackup.v1.Namespaces.Builder.class); + com.google.cloud.gkebackup.v1.Namespaces.class, + com.google.cloud.gkebackup.v1.Namespaces.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.Namespaces.newBuilder() @@ -341,16 +379,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -360,9 +397,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.CommonProto.internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.CommonProto + .internal_static_google_cloud_gkebackup_v1_Namespaces_descriptor; } @java.lang.Override @@ -381,7 +418,8 @@ public com.google.cloud.gkebackup.v1.Namespaces build() { @java.lang.Override public com.google.cloud.gkebackup.v1.Namespaces buildPartial() { - com.google.cloud.gkebackup.v1.Namespaces result = new com.google.cloud.gkebackup.v1.Namespaces(this); + com.google.cloud.gkebackup.v1.Namespaces result = + new com.google.cloud.gkebackup.v1.Namespaces(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { namespaces_ = namespaces_.getUnmodifiableView(); @@ -396,38 +434,39 @@ public com.google.cloud.gkebackup.v1.Namespaces 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.cloud.gkebackup.v1.Namespaces) { - return mergeFrom((com.google.cloud.gkebackup.v1.Namespaces)other); + return mergeFrom((com.google.cloud.gkebackup.v1.Namespaces) other); } else { super.mergeFrom(other); return this; @@ -474,44 +513,55 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList namespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList namespaces_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureNamespacesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { namespaces_ = new com.google.protobuf.LazyStringArrayList(namespaces_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * A list of Kubernetes Namespaces
      * 
* * repeated string namespaces = 1; + * * @return A list containing the namespaces. */ - public com.google.protobuf.ProtocolStringList - getNamespacesList() { + public com.google.protobuf.ProtocolStringList getNamespacesList() { return namespaces_.getUnmodifiableView(); } /** + * + * *
      * A list of Kubernetes Namespaces
      * 
* * repeated string namespaces = 1; + * * @return The count of namespaces. */ public int getNamespacesCount() { return namespaces_.size(); } /** + * + * *
      * A list of Kubernetes Namespaces
      * 
* * repeated string namespaces = 1; + * * @param index The index of the element to return. * @return The namespaces at the given index. */ @@ -519,80 +569,90 @@ public java.lang.String getNamespaces(int index) { return namespaces_.get(index); } /** + * + * *
      * A list of Kubernetes Namespaces
      * 
* * repeated string namespaces = 1; + * * @param index The index of the value to return. * @return The bytes of the namespaces at the given index. */ - public com.google.protobuf.ByteString - getNamespacesBytes(int index) { + public com.google.protobuf.ByteString getNamespacesBytes(int index) { return namespaces_.getByteString(index); } /** + * + * *
      * A list of Kubernetes Namespaces
      * 
* * repeated string namespaces = 1; + * * @param index The index to set the value at. * @param value The namespaces to set. * @return This builder for chaining. */ - public Builder setNamespaces( - int index, java.lang.String value) { + public Builder setNamespaces(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNamespacesIsMutable(); + throw new NullPointerException(); + } + ensureNamespacesIsMutable(); namespaces_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of Kubernetes Namespaces
      * 
* * repeated string namespaces = 1; + * * @param value The namespaces to add. * @return This builder for chaining. */ - public Builder addNamespaces( - java.lang.String value) { + public Builder addNamespaces(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNamespacesIsMutable(); + throw new NullPointerException(); + } + ensureNamespacesIsMutable(); namespaces_.add(value); onChanged(); return this; } /** + * + * *
      * A list of Kubernetes Namespaces
      * 
* * repeated string namespaces = 1; + * * @param values The namespaces to add. * @return This builder for chaining. */ - public Builder addAllNamespaces( - java.lang.Iterable values) { + public Builder addAllNamespaces(java.lang.Iterable values) { ensureNamespacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, namespaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, namespaces_); onChanged(); return this; } /** + * + * *
      * A list of Kubernetes Namespaces
      * 
* * repeated string namespaces = 1; + * * @return This builder for chaining. */ public Builder clearNamespaces() { @@ -602,28 +662,30 @@ public Builder clearNamespaces() { return this; } /** + * + * *
      * A list of Kubernetes Namespaces
      * 
* * repeated string namespaces = 1; + * * @param value The bytes of the namespaces to add. * @return This builder for chaining. */ - public Builder addNamespacesBytes( - com.google.protobuf.ByteString value) { + public Builder addNamespacesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureNamespacesIsMutable(); namespaces_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -633,12 +695,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.Namespaces) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.Namespaces) private static final com.google.cloud.gkebackup.v1.Namespaces DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.Namespaces(); } @@ -647,16 +709,16 @@ public static com.google.cloud.gkebackup.v1.Namespaces getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Namespaces parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Namespaces(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Namespaces parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Namespaces(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -671,6 +733,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.Namespaces getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacesOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacesOrBuilder.java similarity index 58% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacesOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacesOrBuilder.java index ef91139..ae7a870 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacesOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/NamespacesOrBuilder.java @@ -1,50 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/common.proto package com.google.cloud.gkebackup.v1; -public interface NamespacesOrBuilder extends +public interface NamespacesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.Namespaces) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of Kubernetes Namespaces
    * 
* * repeated string namespaces = 1; + * * @return A list containing the namespaces. */ - java.util.List - getNamespacesList(); + java.util.List getNamespacesList(); /** + * + * *
    * A list of Kubernetes Namespaces
    * 
* * repeated string namespaces = 1; + * * @return The count of namespaces. */ int getNamespacesCount(); /** + * + * *
    * A list of Kubernetes Namespaces
    * 
* * repeated string namespaces = 1; + * * @param index The index of the element to return. * @return The namespaces at the given index. */ java.lang.String getNamespaces(int index); /** + * + * *
    * A list of Kubernetes Namespaces
    * 
* * repeated string namespaces = 1; + * * @param index The index of the value to return. * @return The bytes of the namespaces at the given index. */ - com.google.protobuf.ByteString - getNamespacesBytes(int index); + com.google.protobuf.ByteString getNamespacesBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadata.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadata.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadata.java index aaa595f..33af447 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadata.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,16 +46,15 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,68 +73,76 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + target_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: { + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - requestedCancellation_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + statusMessage_ = s; + break; + } + case 48: + { + requestedCancellation_ = input.readBool(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + apiVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,34 +150,40 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.OperationMetadata.class, com.google.cloud.gkebackup.v1.OperationMetadata.Builder.class); + com.google.cloud.gkebackup.v1.OperationMetadata.class, + com.google.cloud.gkebackup.v1.OperationMetadata.Builder.class); } 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 @@ -160,11 +191,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * 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 @@ -172,11 +207,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() { @@ -186,11 +224,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 @@ -198,11 +240,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * 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 @@ -210,11 +256,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() { @@ -224,11 +273,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -237,29 +289,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -270,11 +322,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -283,29 +338,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -316,11 +371,14 @@ public java.lang.String getVerb() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -329,29 +387,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -362,6 +420,8 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -370,6 +430,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -380,11 +441,14 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -393,29 +457,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -424,6 +488,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -435,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -468,12 +532,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -485,8 +547,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -499,33 +560,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.OperationMetadata other = (com.google.cloud.gkebackup.v1.OperationMetadata) obj; + com.google.cloud.gkebackup.v1.OperationMetadata other = + (com.google.cloud.gkebackup.v1.OperationMetadata) 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 (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -552,8 +607,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().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) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -561,118 +615,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.OperationMetadata) com.google.cloud.gkebackup.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.OperationMetadata.class, com.google.cloud.gkebackup.v1.OperationMetadata.Builder.class); + com.google.cloud.gkebackup.v1.OperationMetadata.class, + com.google.cloud.gkebackup.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.OperationMetadata.newBuilder() @@ -680,16 +743,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -719,9 +781,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -740,7 +802,8 @@ public com.google.cloud.gkebackup.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.gkebackup.v1.OperationMetadata buildPartial() { - com.google.cloud.gkebackup.v1.OperationMetadata result = new com.google.cloud.gkebackup.v1.OperationMetadata(this); + com.google.cloud.gkebackup.v1.OperationMetadata result = + new com.google.cloud.gkebackup.v1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -764,38 +827,39 @@ public com.google.cloud.gkebackup.v1.OperationMetadata 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.cloud.gkebackup.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.gkebackup.v1.OperationMetadata)other); + return mergeFrom((com.google.cloud.gkebackup.v1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -803,7 +867,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.OperationMetadata other) { - if (other == com.google.cloud.gkebackup.v1.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -860,39 +925,58 @@ public Builder mergeFrom( 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 createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * 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) { @@ -908,14 +992,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(); onChanged(); @@ -926,17 +1013,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -948,11 +1039,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() { if (createTimeBuilder_ == null) { @@ -966,48 +1061,64 @@ 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() { - + onChanged(); 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_; @@ -1015,24 +1126,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 endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * 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() { @@ -1043,11 +1165,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) { @@ -1063,14 +1188,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(); onChanged(); @@ -1081,17 +1208,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 (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1103,11 +1233,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() { if (endTimeBuilder_ == null) { @@ -1121,48 +1254,59 @@ 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() { - + onChanged(); 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_; @@ -1170,18 +1314,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1190,20 +1336,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1211,54 +1358,61 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1266,18 +1420,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1286,20 +1442,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1307,54 +1464,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1362,18 +1526,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1382,20 +1548,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1403,61 +1570,70 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { + public Builder setStatusMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1466,6 +1642,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1473,6 +1650,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1481,16 +1660,19 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1499,10 +1681,11 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1510,18 +1693,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1530,20 +1715,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1551,61 +1737,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1615,12 +1808,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.OperationMetadata) private static final com.google.cloud.gkebackup.v1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.OperationMetadata(); } @@ -1629,16 +1822,16 @@ public static com.google.cloud.gkebackup.v1.OperationMetadata getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1653,6 +1846,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadataOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadataOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadataOrBuilder.java index f59dd07..15b4296 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.OperationMetadata) 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. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Restore.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Restore.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Restore.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Restore.java index d69201c..8ae6942 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Restore.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Restore.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/restore.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Represents both a request to Restore some portion of a Backup into
  * a target GKE cluster and a record of the restore operation itself.
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.gkebackup.v1.Restore}
  */
-public final class Restore extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Restore extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.Restore)
     RestoreOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Restore.newBuilder() to construct.
   private Restore(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Restore() {
     name_ = "";
     uid_ = "";
@@ -34,16 +52,15 @@ private Restore() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Restore();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Restore(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -63,146 +80,163 @@ private Restore(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            uid_ = s;
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
-            }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+              uid_ = s;
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 34:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            description_ = s;
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
+              description_ = s;
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            backup_ = s;
-            break;
-          }
-          case 58: {
-            java.lang.String s = input.readStringRequireUtf8();
+              backup_ = s;
+              break;
+            }
+          case 58:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            cluster_ = s;
-            break;
-          }
-          case 66: {
-            com.google.cloud.gkebackup.v1.RestoreConfig.Builder subBuilder = null;
-            if (restoreConfig_ != null) {
-              subBuilder = restoreConfig_.toBuilder();
+              cluster_ = s;
+              break;
             }
-            restoreConfig_ = input.readMessage(com.google.cloud.gkebackup.v1.RestoreConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(restoreConfig_);
-              restoreConfig_ = subBuilder.buildPartial();
+          case 66:
+            {
+              com.google.cloud.gkebackup.v1.RestoreConfig.Builder subBuilder = null;
+              if (restoreConfig_ != null) {
+                subBuilder = restoreConfig_.toBuilder();
+              }
+              restoreConfig_ =
+                  input.readMessage(
+                      com.google.cloud.gkebackup.v1.RestoreConfig.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(restoreConfig_);
+                restoreConfig_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 74: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+          case 74:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 80: {
-            int rawValue = input.readEnum();
+          case 80:
+            {
+              int rawValue = input.readEnum();
 
-            state_ = rawValue;
-            break;
-          }
-          case 90: {
-            java.lang.String s = input.readStringRequireUtf8();
+              state_ = rawValue;
+              break;
+            }
+          case 90:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            stateReason_ = s;
-            break;
-          }
-          case 98: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (completeTime_ != null) {
-              subBuilder = completeTime_.toBuilder();
+              stateReason_ = s;
+              break;
             }
-            completeTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(completeTime_);
-              completeTime_ = subBuilder.buildPartial();
+          case 98:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (completeTime_ != null) {
+                subBuilder = completeTime_.toBuilder();
+              }
+              completeTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(completeTime_);
+                completeTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 104:
+            {
+              resourcesRestoredCount_ = input.readInt32();
+              break;
+            }
+          case 112:
+            {
+              resourcesExcludedCount_ = input.readInt32();
+              break;
+            }
+          case 120:
+            {
+              resourcesFailedCount_ = input.readInt32();
+              break;
+            }
+          case 128:
+            {
+              volumesRestoredCount_ = input.readInt32();
+              break;
+            }
+          case 138:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 104: {
-
-            resourcesRestoredCount_ = input.readInt32();
-            break;
-          }
-          case 112: {
-
-            resourcesExcludedCount_ = input.readInt32();
-            break;
-          }
-          case 120: {
-
-            resourcesFailedCount_ = input.readInt32();
-            break;
-          }
-          case 128: {
-
-            volumesRestoredCount_ = input.readInt32();
-            break;
-          }
-          case 138: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            etag_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              etag_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -210,48 +244,52 @@ private Restore(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_Restore_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkebackup.v1.RestoreProto
+        .internal_static_google_cloud_gkebackup_v1_Restore_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 9:
         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.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable
+    return com.google.cloud.gkebackup.v1.RestoreProto
+        .internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkebackup.v1.Restore.class, com.google.cloud.gkebackup.v1.Restore.Builder.class);
+            com.google.cloud.gkebackup.v1.Restore.class,
+            com.google.cloud.gkebackup.v1.Restore.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Possible values for state of the Restore.
    * 
* * Protobuf enum {@code google.cloud.gkebackup.v1.Restore.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The Restore resource is in the process of being created.
      * 
@@ -260,6 +298,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The Restore resource has been created and the associated RestoreJob
      * Kubernetes resource has been injected into target cluster.
@@ -269,6 +309,8 @@ public enum State
      */
     CREATING(1),
     /**
+     *
+     *
      * 
      * The gkebackup agent in the cluster has begun executing the restore
      * operation.
@@ -278,6 +320,8 @@ public enum State
      */
     IN_PROGRESS(2),
     /**
+     *
+     *
      * 
      * The restore operation has completed successfully. Restored workloads may
      * not yet be operational.
@@ -287,6 +331,8 @@ public enum State
      */
     SUCCEEDED(3),
     /**
+     *
+     *
      * 
      * The restore operation has failed.
      * 
@@ -295,6 +341,8 @@ public enum State */ FAILED(4), /** + * + * *
      * This Restore resource is in the process of being deleted.
      * 
@@ -306,6 +354,8 @@ public enum State ; /** + * + * *
      * The Restore resource is in the process of being created.
      * 
@@ -314,6 +364,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The Restore resource has been created and the associated RestoreJob
      * Kubernetes resource has been injected into target cluster.
@@ -323,6 +375,8 @@ public enum State
      */
     public static final int CREATING_VALUE = 1;
     /**
+     *
+     *
      * 
      * The gkebackup agent in the cluster has begun executing the restore
      * operation.
@@ -332,6 +386,8 @@ public enum State
      */
     public static final int IN_PROGRESS_VALUE = 2;
     /**
+     *
+     *
      * 
      * The restore operation has completed successfully. Restored workloads may
      * not yet be operational.
@@ -341,6 +397,8 @@ public enum State
      */
     public static final int SUCCEEDED_VALUE = 3;
     /**
+     *
+     *
      * 
      * The restore operation has failed.
      * 
@@ -349,6 +407,8 @@ public enum State */ public static final int FAILED_VALUE = 4; /** + * + * *
      * This Restore resource is in the process of being deleted.
      * 
@@ -357,7 +417,6 @@ public enum State */ public static final int DELETING_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -382,52 +441,55 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATING; - case 2: return IN_PROGRESS; - case 3: return SUCCEEDED; - case 4: return FAILED; - case 5: return DELETING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return IN_PROGRESS; + case 3: + return SUCCEEDED; + case 4: + return FAILED; + case 5: + return DELETING; + 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< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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 State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.gkebackup.v1.Restore.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -447,12 +509,15 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The full name of the Restore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -461,30 +526,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 full name of the Restore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* * 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 { @@ -495,12 +560,15 @@ public java.lang.String getName() { public static final int UID_FIELD_NUMBER = 2; private volatile java.lang.Object uid_; /** + * + * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -509,30 +577,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -543,11 +611,15 @@ public java.lang.String getUid() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The timestamp when this Restore resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -555,11 +627,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The timestamp when this Restore resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -567,11 +643,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The timestamp when this Restore resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -581,12 +660,16 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The timestamp when this Restore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -594,12 +677,16 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The timestamp when this Restore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -607,12 +694,15 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The timestamp when this Restore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -622,11 +712,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** + * + * *
    * User specified descriptive string for this Restore.
    * 
* * string description = 5; + * * @return The description. */ @java.lang.Override @@ -635,29 +728,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * User specified descriptive string for this Restore.
    * 
* * string description = 5; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -668,6 +761,8 @@ public java.lang.String getDescription() { public static final int BACKUP_FIELD_NUMBER = 6; private volatile java.lang.Object backup_; /** + * + * *
    * Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore
    * will restore. Note that this Backup must be a sub-resource of the
@@ -675,7 +770,10 @@ public java.lang.String getDescription() {
    * Format: projects/*/locations/*/backupPlans/*/backups/*.
    * 
* - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The backup. */ @java.lang.Override @@ -684,14 +782,15 @@ public java.lang.String getBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backup_ = s; return s; } } /** + * + * *
    * Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore
    * will restore. Note that this Backup must be a sub-resource of the
@@ -699,17 +798,18 @@ public java.lang.String getBackup() {
    * Format: projects/*/locations/*/backupPlans/*/backups/*.
    * 
* - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for backup. */ @java.lang.Override - public com.google.protobuf.ByteString - getBackupBytes() { + public com.google.protobuf.ByteString getBackupBytes() { java.lang.Object ref = backup_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); backup_ = b; return b; } else { @@ -720,6 +820,8 @@ public java.lang.String getBackup() { public static final int CLUSTER_FIELD_NUMBER = 7; private volatile java.lang.Object cluster_; /** + * + * *
    * Output only. The target cluster into which this Restore will restore data.
    * Valid formats:
@@ -728,7 +830,10 @@ public java.lang.String getBackup() {
    * Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
    * 
* - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The cluster. */ @java.lang.Override @@ -737,14 +842,15 @@ public java.lang.String getCluster() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; } } /** + * + * *
    * Output only. The target cluster into which this Restore will restore data.
    * Valid formats:
@@ -753,17 +859,18 @@ public java.lang.String getCluster() {
    * Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
    * 
* - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for cluster. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterBytes() { + public com.google.protobuf.ByteString getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cluster_ = b; return b; } else { @@ -774,12 +881,17 @@ public java.lang.String getCluster() { public static final int RESTORE_CONFIG_FIELD_NUMBER = 8; private com.google.cloud.gkebackup.v1.RestoreConfig restoreConfig_; /** + * + * *
    * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
    * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the restoreConfig field is set. */ @java.lang.Override @@ -787,25 +899,36 @@ public boolean hasRestoreConfig() { return restoreConfig_ != null; } /** + * + * *
    * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
    * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The restoreConfig. */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfig getRestoreConfig() { - return restoreConfig_ == null ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() : restoreConfig_; + return restoreConfig_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() + : restoreConfig_; } /** + * + * *
    * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
    * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBuilder() { @@ -813,24 +936,23 @@ public com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBu } public static final int LABELS_FIELD_NUMBER = 9; + 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.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + 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_; } @@ -839,28 +961,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 9; */ - @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(); } /** + * + * *
    * A set of custom labels supplied by user.
    * 
@@ -868,11 +992,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 9; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * A set of custom labels supplied by user.
    * 
@@ -880,16 +1005,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, 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; } /** + * + * *
    * A set of custom labels supplied by user.
    * 
@@ -897,12 +1022,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 9; */ @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(); } @@ -912,38 +1036,54 @@ public java.lang.String getLabelsOrThrow( public static final int STATE_FIELD_NUMBER = 10; private int state_; /** + * + * *
    * Output only. The current state of the Restore.
    * 
* - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current state of the Restore.
    * 
* - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.gkebackup.v1.Restore.State getState() { + @java.lang.Override + public com.google.cloud.gkebackup.v1.Restore.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.Restore.State result = com.google.cloud.gkebackup.v1.Restore.State.valueOf(state_); + com.google.cloud.gkebackup.v1.Restore.State result = + com.google.cloud.gkebackup.v1.Restore.State.valueOf(state_); return result == null ? com.google.cloud.gkebackup.v1.Restore.State.UNRECOGNIZED : result; } public static final int STATE_REASON_FIELD_NUMBER = 11; private volatile java.lang.Object stateReason_; /** + * + * *
    * Output only. Human-readable description of why the Restore is in its current state.
    * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stateReason. */ @java.lang.Override @@ -952,29 +1092,29 @@ public java.lang.String getStateReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateReason_ = s; return s; } } /** + * + * *
    * Output only. Human-readable description of why the Restore is in its current state.
    * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stateReason. */ @java.lang.Override - public com.google.protobuf.ByteString - getStateReasonBytes() { + public com.google.protobuf.ByteString getStateReasonBytes() { java.lang.Object ref = stateReason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateReason_ = b; return b; } else { @@ -985,11 +1125,16 @@ public java.lang.String getStateReason() { public static final int COMPLETE_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp completeTime_; /** + * + * *
    * Output only. Timestamp of when the restore operation completed.
    * 
* - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the completeTime field is set. */ @java.lang.Override @@ -997,23 +1142,34 @@ public boolean hasCompleteTime() { return completeTime_ != null; } /** + * + * *
    * Output only. Timestamp of when the restore operation completed.
    * 
* - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The completeTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCompleteTime() { - return completeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; } /** + * + * *
    * Output only. Timestamp of when the restore operation completed.
    * 
* - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { @@ -1023,11 +1179,14 @@ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { public static final int RESOURCES_RESTORED_COUNT_FIELD_NUMBER = 13; private int resourcesRestoredCount_; /** + * + * *
    * Output only. Number of resources restored during the restore execution.
    * 
* * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The resourcesRestoredCount. */ @java.lang.Override @@ -1038,11 +1197,14 @@ public int getResourcesRestoredCount() { public static final int RESOURCES_EXCLUDED_COUNT_FIELD_NUMBER = 14; private int resourcesExcludedCount_; /** + * + * *
    * Output only. Number of resources excluded during the restore execution.
    * 
* * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The resourcesExcludedCount. */ @java.lang.Override @@ -1053,12 +1215,15 @@ public int getResourcesExcludedCount() { public static final int RESOURCES_FAILED_COUNT_FIELD_NUMBER = 15; private int resourcesFailedCount_; /** + * + * *
    * Output only. Number of resources that failed to be restored during the restore
    * execution.
    * 
* * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The resourcesFailedCount. */ @java.lang.Override @@ -1069,11 +1234,14 @@ public int getResourcesFailedCount() { public static final int VOLUMES_RESTORED_COUNT_FIELD_NUMBER = 16; private int volumesRestoredCount_; /** + * + * *
    * Output only. Number of volumes restored during the restore execution.
    * 
* * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The volumesRestoredCount. */ @java.lang.Override @@ -1084,6 +1252,8 @@ public int getVolumesRestoredCount() { public static final int ETAG_FIELD_NUMBER = 17; private volatile java.lang.Object etag_; /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a restore from overwriting each other.
@@ -1096,6 +1266,7 @@ public int getVolumesRestoredCount() {
    * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ @java.lang.Override @@ -1104,14 +1275,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; } } /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a restore from overwriting each other.
@@ -1124,16 +1296,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1142,6 +1313,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1153,8 +1325,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_); } @@ -1179,12 +1350,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (restoreConfig_ != null) { output.writeMessage(8, getRestoreConfig()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 9); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); if (state_ != com.google.cloud.gkebackup.v1.Restore.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(10, state_); } @@ -1225,12 +1392,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -1242,45 +1407,38 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, cluster_); } if (restoreConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getRestoreConfig()); - } - 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(9, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRestoreConfig()); + } + 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(9, labels__); } if (state_ != com.google.cloud.gkebackup.v1.Restore.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, stateReason_); } if (completeTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getCompleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getCompleteTime()); } if (resourcesRestoredCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(13, resourcesRestoredCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, resourcesRestoredCount_); } if (resourcesExcludedCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(14, resourcesExcludedCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, resourcesExcludedCount_); } if (resourcesFailedCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(15, resourcesFailedCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(15, resourcesFailedCount_); } if (volumesRestoredCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(16, volumesRestoredCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(16, volumesRestoredCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, etag_); @@ -1293,58 +1451,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.Restore)) { return super.equals(obj); } com.google.cloud.gkebackup.v1.Restore other = (com.google.cloud.gkebackup.v1.Restore) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUid() - .equals(other.getUid())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) 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 (!getDescription() - .equals(other.getDescription())) return false; - if (!getBackup() - .equals(other.getBackup())) return false; - if (!getCluster() - .equals(other.getCluster())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getDescription().equals(other.getDescription())) return false; + if (!getBackup().equals(other.getBackup())) return false; + if (!getCluster().equals(other.getCluster())) return false; if (hasRestoreConfig() != other.hasRestoreConfig()) return false; if (hasRestoreConfig()) { - if (!getRestoreConfig() - .equals(other.getRestoreConfig())) return false; + if (!getRestoreConfig().equals(other.getRestoreConfig())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (state_ != other.state_) return false; - if (!getStateReason() - .equals(other.getStateReason())) return false; + if (!getStateReason().equals(other.getStateReason())) return false; if (hasCompleteTime() != other.hasCompleteTime()) return false; if (hasCompleteTime()) { - if (!getCompleteTime() - .equals(other.getCompleteTime())) return false; - } - if (getResourcesRestoredCount() - != other.getResourcesRestoredCount()) return false; - if (getResourcesExcludedCount() - != other.getResourcesExcludedCount()) return false; - if (getResourcesFailedCount() - != other.getResourcesFailedCount()) return false; - if (getVolumesRestoredCount() - != other.getVolumesRestoredCount()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getCompleteTime().equals(other.getCompleteTime())) return false; + } + if (getResourcesRestoredCount() != other.getResourcesRestoredCount()) return false; + if (getResourcesExcludedCount() != other.getResourcesExcludedCount()) return false; + if (getResourcesFailedCount() != other.getResourcesFailedCount()) return false; + if (getVolumesRestoredCount() != other.getVolumesRestoredCount()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1405,97 +1547,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.Restore parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.Restore parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.Restore parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.Restore parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.gkebackup.v1.Restore parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.Restore parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.Restore parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.Restore parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.Restore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.Restore parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.Restore 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.cloud.gkebackup.v1.Restore parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.Restore parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.Restore parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.Restore prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 both a request to Restore some portion of a Backup into
    * a target GKE cluster and a record of the restore operation itself.
@@ -1504,43 +1652,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.Restore}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.Restore)
       com.google.cloud.gkebackup.v1.RestoreOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_Restore_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkebackup.v1.RestoreProto
+          .internal_static_google_cloud_gkebackup_v1_Restore_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 9:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 9:
           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.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.RestoreProto
+          .internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.Restore.class, com.google.cloud.gkebackup.v1.Restore.Builder.class);
+              com.google.cloud.gkebackup.v1.Restore.class,
+              com.google.cloud.gkebackup.v1.Restore.Builder.class);
     }
 
     // Construct using com.google.cloud.gkebackup.v1.Restore.newBuilder()
@@ -1548,16 +1696,15 @@ 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) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1614,9 +1761,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_Restore_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkebackup.v1.RestoreProto
+          .internal_static_google_cloud_gkebackup_v1_Restore_descriptor;
     }
 
     @java.lang.Override
@@ -1635,7 +1782,8 @@ public com.google.cloud.gkebackup.v1.Restore build() {
 
     @java.lang.Override
     public com.google.cloud.gkebackup.v1.Restore buildPartial() {
-      com.google.cloud.gkebackup.v1.Restore result = new com.google.cloud.gkebackup.v1.Restore(this);
+      com.google.cloud.gkebackup.v1.Restore result =
+          new com.google.cloud.gkebackup.v1.Restore(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.uid_ = uid_;
@@ -1679,38 +1827,39 @@ public com.google.cloud.gkebackup.v1.Restore 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.cloud.gkebackup.v1.Restore) {
-        return mergeFrom((com.google.cloud.gkebackup.v1.Restore)other);
+        return mergeFrom((com.google.cloud.gkebackup.v1.Restore) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1748,8 +1897,7 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.Restore other) {
       if (other.hasRestoreConfig()) {
         mergeRestoreConfig(other.getRestoreConfig());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       if (other.state_ != 0) {
         setStateValue(other.getStateValue());
       }
@@ -1804,23 +1952,26 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The full name of the Restore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* * 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; @@ -1829,21 +1980,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The full name of the Restore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* * 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 { @@ -1851,57 +2003,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The full name of the Restore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The full name of the Restore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The full name of the Restore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*
      * 
* * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1909,19 +2068,21 @@ public Builder setNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -1930,21 +2091,22 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -1952,57 +2114,64 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { + public Builder setUid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { + public Builder setUidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); return this; @@ -2010,39 +2179,58 @@ public Builder setUidBytes( 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 timestamp when this Restore resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The timestamp when this Restore resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The timestamp when this Restore resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2058,14 +2246,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this Restore resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2076,17 +2267,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The timestamp when this Restore resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2098,11 +2293,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this Restore resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2116,48 +2315,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The timestamp when this Restore resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp when this Restore resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The timestamp when this Restore resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2165,42 +2380,61 @@ 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 timestamp when this Restore resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The timestamp when this Restore resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this Restore resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2216,15 +2450,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this Restore resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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(); onChanged(); @@ -2235,18 +2472,22 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The timestamp when this Restore resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2258,12 +2499,16 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this Restore resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2277,51 +2522,67 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The timestamp when this Restore resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp when this Restore resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this Restore resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp 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> 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_; @@ -2329,18 +2590,20 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object description_ = ""; /** + * + * *
      * User specified descriptive string for this Restore.
      * 
* * string description = 5; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2349,20 +2612,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User specified descriptive string for this Restore.
      * 
* * string description = 5; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -2370,54 +2634,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User specified descriptive string for this Restore.
      * 
* * string description = 5; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * User specified descriptive string for this Restore.
      * 
* * string description = 5; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * User specified descriptive string for this Restore.
      * 
* * string description = 5; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2425,6 +2696,8 @@ public Builder setDescriptionBytes( private java.lang.Object backup_ = ""; /** + * + * *
      * Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore
      * will restore. Note that this Backup must be a sub-resource of the
@@ -2432,14 +2705,16 @@ public Builder setDescriptionBytes(
      * Format: projects/*/locations/*/backupPlans/*/backups/*.
      * 
* - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The backup. */ public java.lang.String getBackup() { java.lang.Object ref = backup_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backup_ = s; return s; @@ -2448,6 +2723,8 @@ public java.lang.String getBackup() { } } /** + * + * *
      * Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore
      * will restore. Note that this Backup must be a sub-resource of the
@@ -2455,16 +2732,17 @@ public java.lang.String getBackup() {
      * Format: projects/*/locations/*/backupPlans/*/backups/*.
      * 
* - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for backup. */ - public com.google.protobuf.ByteString - getBackupBytes() { + public com.google.protobuf.ByteString getBackupBytes() { java.lang.Object ref = backup_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); backup_ = b; return b; } else { @@ -2472,6 +2750,8 @@ public java.lang.String getBackup() { } } /** + * + * *
      * Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore
      * will restore. Note that this Backup must be a sub-resource of the
@@ -2479,21 +2759,25 @@ public java.lang.String getBackup() {
      * Format: projects/*/locations/*/backupPlans/*/backups/*.
      * 
* - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The backup to set. * @return This builder for chaining. */ - public Builder setBackup( - java.lang.String value) { + public Builder setBackup(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + backup_ = value; onChanged(); return this; } /** + * + * *
      * Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore
      * will restore. Note that this Backup must be a sub-resource of the
@@ -2501,16 +2785,21 @@ public Builder setBackup(
      * Format: projects/*/locations/*/backupPlans/*/backups/*.
      * 
* - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearBackup() { - + backup_ = getDefaultInstance().getBackup(); onChanged(); return this; } /** + * + * *
      * Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore
      * will restore. Note that this Backup must be a sub-resource of the
@@ -2518,17 +2807,19 @@ public Builder clearBackup() {
      * Format: projects/*/locations/*/backupPlans/*/backups/*.
      * 
* - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for backup to set. * @return This builder for chaining. */ - public Builder setBackupBytes( - com.google.protobuf.ByteString value) { + public Builder setBackupBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backup_ = value; onChanged(); return this; @@ -2536,6 +2827,8 @@ public Builder setBackupBytes( private java.lang.Object cluster_ = ""; /** + * + * *
      * Output only. The target cluster into which this Restore will restore data.
      * Valid formats:
@@ -2544,14 +2837,16 @@ public Builder setBackupBytes(
      * Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
      * 
* - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The cluster. */ public java.lang.String getCluster() { java.lang.Object ref = cluster_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; @@ -2560,6 +2855,8 @@ public java.lang.String getCluster() { } } /** + * + * *
      * Output only. The target cluster into which this Restore will restore data.
      * Valid formats:
@@ -2568,16 +2865,17 @@ public java.lang.String getCluster() {
      * Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
      * 
* - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for cluster. */ - public com.google.protobuf.ByteString - getClusterBytes() { + public com.google.protobuf.ByteString getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cluster_ = b; return b; } else { @@ -2585,6 +2883,8 @@ public java.lang.String getCluster() { } } /** + * + * *
      * Output only. The target cluster into which this Restore will restore data.
      * Valid formats:
@@ -2593,21 +2893,25 @@ public java.lang.String getCluster() {
      * Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
      * 
* - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The cluster to set. * @return This builder for chaining. */ - public Builder setCluster( - java.lang.String value) { + public Builder setCluster(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cluster_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The target cluster into which this Restore will restore data.
      * Valid formats:
@@ -2616,16 +2920,21 @@ public Builder setCluster(
      * Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
      * 
* - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearCluster() { - + cluster_ = getDefaultInstance().getCluster(); onChanged(); return this; } /** + * + * *
      * Output only. The target cluster into which this Restore will restore data.
      * Valid formats:
@@ -2634,17 +2943,19 @@ public Builder clearCluster() {
      * Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
      * 
* - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for cluster to set. * @return This builder for chaining. */ - public Builder setClusterBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cluster_ = value; onChanged(); return this; @@ -2652,42 +2963,61 @@ public Builder setClusterBytes( private com.google.cloud.gkebackup.v1.RestoreConfig restoreConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig, com.google.cloud.gkebackup.v1.RestoreConfig.Builder, com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> restoreConfigBuilder_; + com.google.cloud.gkebackup.v1.RestoreConfig, + com.google.cloud.gkebackup.v1.RestoreConfig.Builder, + com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> + restoreConfigBuilder_; /** + * + * *
      * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
      * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the restoreConfig field is set. */ public boolean hasRestoreConfig() { return restoreConfigBuilder_ != null || restoreConfig_ != null; } /** + * + * *
      * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
      * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The restoreConfig. */ public com.google.cloud.gkebackup.v1.RestoreConfig getRestoreConfig() { if (restoreConfigBuilder_ == null) { - return restoreConfig_ == null ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() : restoreConfig_; + return restoreConfig_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() + : restoreConfig_; } else { return restoreConfigBuilder_.getMessage(); } } /** + * + * *
      * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
      * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig value) { if (restoreConfigBuilder_ == null) { @@ -2703,12 +3033,16 @@ public Builder setRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig valu return this; } /** + * + * *
      * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
      * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setRestoreConfig( com.google.cloud.gkebackup.v1.RestoreConfig.Builder builderForValue) { @@ -2722,18 +3056,24 @@ public Builder setRestoreConfig( return this; } /** + * + * *
      * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
      * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig value) { if (restoreConfigBuilder_ == null) { if (restoreConfig_ != null) { restoreConfig_ = - com.google.cloud.gkebackup.v1.RestoreConfig.newBuilder(restoreConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.gkebackup.v1.RestoreConfig.newBuilder(restoreConfig_) + .mergeFrom(value) + .buildPartial(); } else { restoreConfig_ = value; } @@ -2745,12 +3085,16 @@ public Builder mergeRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig va return this; } /** + * + * *
      * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
      * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearRestoreConfig() { if (restoreConfigBuilder_ == null) { @@ -2764,72 +3108,87 @@ public Builder clearRestoreConfig() { return this; } /** + * + * *
      * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
      * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkebackup.v1.RestoreConfig.Builder getRestoreConfigBuilder() { - + onChanged(); return getRestoreConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
      * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBuilder() { if (restoreConfigBuilder_ != null) { return restoreConfigBuilder_.getMessageOrBuilder(); } else { - return restoreConfig_ == null ? - com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() : restoreConfig_; + return restoreConfig_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() + : restoreConfig_; } } /** + * + * *
      * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
      * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig, com.google.cloud.gkebackup.v1.RestoreConfig.Builder, com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> + com.google.cloud.gkebackup.v1.RestoreConfig, + com.google.cloud.gkebackup.v1.RestoreConfig.Builder, + com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> getRestoreConfigFieldBuilder() { if (restoreConfigBuilder_ == null) { - restoreConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig, com.google.cloud.gkebackup.v1.RestoreConfig.Builder, com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder>( - getRestoreConfig(), - getParentForChildren(), - isClean()); + restoreConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig, + com.google.cloud.gkebackup.v1.RestoreConfig.Builder, + com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder>( + getRestoreConfig(), getParentForChildren(), isClean()); restoreConfig_ = null; } return restoreConfigBuilder_; } - 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -2841,28 +3200,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 9; */ - @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(); } /** + * + * *
      * A set of custom labels supplied by user.
      * 
@@ -2870,11 +3231,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 9; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * A set of custom labels supplied by user.
      * 
@@ -2882,16 +3244,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, 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; } /** + * + * *
      * A set of custom labels supplied by user.
      * 
@@ -2899,12 +3262,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 9; */ @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(); } @@ -2912,114 +3274,133 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 9; */ - - 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() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 9; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 9; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private int state_ = 0; /** + * + * *
      * Output only. The current state of the Restore.
      * 
* - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current state of the Restore.
      * 
* - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The current state of the Restore.
      * 
* - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.gkebackup.v1.Restore.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.Restore.State result = com.google.cloud.gkebackup.v1.Restore.State.valueOf(state_); + com.google.cloud.gkebackup.v1.Restore.State result = + com.google.cloud.gkebackup.v1.Restore.State.valueOf(state_); return result == null ? com.google.cloud.gkebackup.v1.Restore.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The current state of the Restore.
      * 
* - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -3027,21 +3408,26 @@ public Builder setState(com.google.cloud.gkebackup.v1.Restore.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The current state of the Restore.
      * 
* - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -3049,18 +3435,20 @@ public Builder clearState() { private java.lang.Object stateReason_ = ""; /** + * + * *
      * Output only. Human-readable description of why the Restore is in its current state.
      * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stateReason. */ public java.lang.String getStateReason() { java.lang.Object ref = stateReason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateReason_ = s; return s; @@ -3069,20 +3457,21 @@ public java.lang.String getStateReason() { } } /** + * + * *
      * Output only. Human-readable description of why the Restore is in its current state.
      * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stateReason. */ - public com.google.protobuf.ByteString - getStateReasonBytes() { + public com.google.protobuf.ByteString getStateReasonBytes() { java.lang.Object ref = stateReason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateReason_ = b; return b; } else { @@ -3090,54 +3479,61 @@ public java.lang.String getStateReason() { } } /** + * + * *
      * Output only. Human-readable description of why the Restore is in its current state.
      * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The stateReason to set. * @return This builder for chaining. */ - public Builder setStateReason( - java.lang.String value) { + public Builder setStateReason(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stateReason_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable description of why the Restore is in its current state.
      * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStateReason() { - + stateReason_ = getDefaultInstance().getStateReason(); onChanged(); return this; } /** + * + * *
      * Output only. Human-readable description of why the Restore is in its current state.
      * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for stateReason to set. * @return This builder for chaining. */ - public Builder setStateReasonBytes( - com.google.protobuf.ByteString value) { + public Builder setStateReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stateReason_ = value; onChanged(); return this; @@ -3145,39 +3541,58 @@ public Builder setStateReasonBytes( private com.google.protobuf.Timestamp completeTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completeTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + completeTimeBuilder_; /** + * + * *
      * Output only. Timestamp of when the restore operation completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the completeTime field is set. */ public boolean hasCompleteTime() { return completeTimeBuilder_ != null || completeTime_ != null; } /** + * + * *
      * Output only. Timestamp of when the restore operation completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The completeTime. */ public com.google.protobuf.Timestamp getCompleteTime() { if (completeTimeBuilder_ == null) { - return completeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; } else { return completeTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Timestamp of when the restore operation completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCompleteTime(com.google.protobuf.Timestamp value) { if (completeTimeBuilder_ == null) { @@ -3193,14 +3608,17 @@ public Builder setCompleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp of when the restore operation completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCompleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (completeTimeBuilder_ == null) { completeTime_ = builderForValue.build(); onChanged(); @@ -3211,17 +3629,23 @@ public Builder setCompleteTime( return this; } /** + * + * *
      * Output only. Timestamp of when the restore operation completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { if (completeTimeBuilder_ == null) { if (completeTime_ != null) { completeTime_ = - com.google.protobuf.Timestamp.newBuilder(completeTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(completeTime_) + .mergeFrom(value) + .buildPartial(); } else { completeTime_ = value; } @@ -3233,11 +3657,15 @@ public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp of when the restore operation completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCompleteTime() { if (completeTimeBuilder_ == null) { @@ -3251,60 +3679,80 @@ public Builder clearCompleteTime() { return this; } /** + * + * *
      * Output only. Timestamp of when the restore operation completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { - + onChanged(); return getCompleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Timestamp of when the restore operation completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { if (completeTimeBuilder_ != null) { return completeTimeBuilder_.getMessageOrBuilder(); } else { - return completeTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; } } /** + * + * *
      * Output only. Timestamp of when the restore operation completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_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> getCompleteTimeFieldBuilder() { if (completeTimeBuilder_ == null) { - completeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCompleteTime(), - getParentForChildren(), - isClean()); + completeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCompleteTime(), getParentForChildren(), isClean()); completeTime_ = null; } return completeTimeBuilder_; } - private int resourcesRestoredCount_ ; + private int resourcesRestoredCount_; /** + * + * *
      * Output only. Number of resources restored during the restore execution.
      * 
* - * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The resourcesRestoredCount. */ @java.lang.Override @@ -3312,42 +3760,54 @@ public int getResourcesRestoredCount() { return resourcesRestoredCount_; } /** + * + * *
      * Output only. Number of resources restored during the restore execution.
      * 
* - * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The resourcesRestoredCount to set. * @return This builder for chaining. */ public Builder setResourcesRestoredCount(int value) { - + resourcesRestoredCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Number of resources restored during the restore execution.
      * 
* - * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearResourcesRestoredCount() { - + resourcesRestoredCount_ = 0; onChanged(); return this; } - private int resourcesExcludedCount_ ; + private int resourcesExcludedCount_; /** + * + * *
      * Output only. Number of resources excluded during the restore execution.
      * 
* - * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The resourcesExcludedCount. */ @java.lang.Override @@ -3355,43 +3815,54 @@ public int getResourcesExcludedCount() { return resourcesExcludedCount_; } /** + * + * *
      * Output only. Number of resources excluded during the restore execution.
      * 
* - * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The resourcesExcludedCount to set. * @return This builder for chaining. */ public Builder setResourcesExcludedCount(int value) { - + resourcesExcludedCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Number of resources excluded during the restore execution.
      * 
* - * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearResourcesExcludedCount() { - + resourcesExcludedCount_ = 0; onChanged(); return this; } - private int resourcesFailedCount_ ; + private int resourcesFailedCount_; /** + * + * *
      * Output only. Number of resources that failed to be restored during the restore
      * execution.
      * 
* * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The resourcesFailedCount. */ @java.lang.Override @@ -3399,44 +3870,53 @@ public int getResourcesFailedCount() { return resourcesFailedCount_; } /** + * + * *
      * Output only. Number of resources that failed to be restored during the restore
      * execution.
      * 
* * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The resourcesFailedCount to set. * @return This builder for chaining. */ public Builder setResourcesFailedCount(int value) { - + resourcesFailedCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Number of resources that failed to be restored during the restore
      * execution.
      * 
* * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearResourcesFailedCount() { - + resourcesFailedCount_ = 0; onChanged(); return this; } - private int volumesRestoredCount_ ; + private int volumesRestoredCount_; /** + * + * *
      * Output only. Number of volumes restored during the restore execution.
      * 
* * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The volumesRestoredCount. */ @java.lang.Override @@ -3444,30 +3924,36 @@ public int getVolumesRestoredCount() { return volumesRestoredCount_; } /** + * + * *
      * Output only. Number of volumes restored during the restore execution.
      * 
* * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The volumesRestoredCount to set. * @return This builder for chaining. */ public Builder setVolumesRestoredCount(int value) { - + volumesRestoredCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Number of volumes restored during the restore execution.
      * 
* * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVolumesRestoredCount() { - + volumesRestoredCount_ = 0; onChanged(); return this; @@ -3475,6 +3961,8 @@ public Builder clearVolumesRestoredCount() { private java.lang.Object etag_ = ""; /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a restore from overwriting each other.
@@ -3487,13 +3975,13 @@ public Builder clearVolumesRestoredCount() {
      * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -3502,6 +3990,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a restore from overwriting each other.
@@ -3514,15 +4004,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -3530,6 +4019,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a restore from overwriting each other.
@@ -3542,20 +4033,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a restore from overwriting each other.
@@ -3568,15 +4061,18 @@ public Builder setEtag(
      * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a restore from overwriting each other.
@@ -3589,23 +4085,23 @@ public Builder clearEtag() {
      * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3615,12 +4111,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.Restore) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.Restore) private static final com.google.cloud.gkebackup.v1.Restore DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.Restore(); } @@ -3629,16 +4125,16 @@ public static com.google.cloud.gkebackup.v1.Restore getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Restore parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Restore(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Restore parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Restore(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3653,6 +4149,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.Restore getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfig.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfig.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfig.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfig.java index 1f81517..5a124f4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfig.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/restore.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Configuration of a restore.
  * Next id: 9
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig}
  */
-public final class RestoreConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RestoreConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.RestoreConfig)
     RestoreConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RestoreConfig.newBuilder() to construct.
   private RestoreConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RestoreConfig() {
     volumeDataRestorePolicy_ = 0;
     clusterResourceConflictPolicy_ = 0;
@@ -29,16 +47,15 @@ private RestoreConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RestoreConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RestoreConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,86 +75,113 @@ private RestoreConfig(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            volumeDataRestorePolicy_ = rawValue;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
-
-            clusterResourceConflictPolicy_ = rawValue;
-            break;
-          }
-          case 24: {
-            int rawValue = input.readEnum();
+              volumeDataRestorePolicy_ = rawValue;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            namespacedResourceRestoreMode_ = rawValue;
-            break;
-          }
-          case 34: {
-            com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder subBuilder = null;
-            if (clusterResourceRestoreScope_ != null) {
-              subBuilder = clusterResourceRestoreScope_.toBuilder();
+              clusterResourceConflictPolicy_ = rawValue;
+              break;
             }
-            clusterResourceRestoreScope_ = input.readMessage(com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(clusterResourceRestoreScope_);
-              clusterResourceRestoreScope_ = subBuilder.buildPartial();
+          case 24:
+            {
+              int rawValue = input.readEnum();
+
+              namespacedResourceRestoreMode_ = rawValue;
+              break;
             }
+          case 34:
+            {
+              com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder
+                  subBuilder = null;
+              if (clusterResourceRestoreScope_ != null) {
+                subBuilder = clusterResourceRestoreScope_.toBuilder();
+              }
+              clusterResourceRestoreScope_ =
+                  input.readMessage(
+                      com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(clusterResourceRestoreScope_);
+                clusterResourceRestoreScope_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 40: {
-            namespacedResourceRestoreScope_ = input.readBool();
-            namespacedResourceRestoreScopeCase_ = 5;
-            break;
-          }
-          case 50: {
-            com.google.cloud.gkebackup.v1.Namespaces.Builder subBuilder = null;
-            if (namespacedResourceRestoreScopeCase_ == 6) {
-              subBuilder = ((com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_).toBuilder();
+              break;
             }
-            namespacedResourceRestoreScope_ =
-                input.readMessage(com.google.cloud.gkebackup.v1.Namespaces.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_);
-              namespacedResourceRestoreScope_ = subBuilder.buildPartial();
+          case 40:
+            {
+              namespacedResourceRestoreScope_ = input.readBool();
+              namespacedResourceRestoreScopeCase_ = 5;
+              break;
             }
-            namespacedResourceRestoreScopeCase_ = 6;
-            break;
-          }
-          case 58: {
-            com.google.cloud.gkebackup.v1.NamespacedNames.Builder subBuilder = null;
-            if (namespacedResourceRestoreScopeCase_ == 7) {
-              subBuilder = ((com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_).toBuilder();
+          case 50:
+            {
+              com.google.cloud.gkebackup.v1.Namespaces.Builder subBuilder = null;
+              if (namespacedResourceRestoreScopeCase_ == 6) {
+                subBuilder =
+                    ((com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_)
+                        .toBuilder();
+              }
+              namespacedResourceRestoreScope_ =
+                  input.readMessage(
+                      com.google.cloud.gkebackup.v1.Namespaces.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_);
+                namespacedResourceRestoreScope_ = subBuilder.buildPartial();
+              }
+              namespacedResourceRestoreScopeCase_ = 6;
+              break;
             }
-            namespacedResourceRestoreScope_ =
-                input.readMessage(com.google.cloud.gkebackup.v1.NamespacedNames.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_);
-              namespacedResourceRestoreScope_ = subBuilder.buildPartial();
+          case 58:
+            {
+              com.google.cloud.gkebackup.v1.NamespacedNames.Builder subBuilder = null;
+              if (namespacedResourceRestoreScopeCase_ == 7) {
+                subBuilder =
+                    ((com.google.cloud.gkebackup.v1.NamespacedNames)
+                            namespacedResourceRestoreScope_)
+                        .toBuilder();
+              }
+              namespacedResourceRestoreScope_ =
+                  input.readMessage(
+                      com.google.cloud.gkebackup.v1.NamespacedNames.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.gkebackup.v1.NamespacedNames)
+                        namespacedResourceRestoreScope_);
+                namespacedResourceRestoreScope_ = subBuilder.buildPartial();
+              }
+              namespacedResourceRestoreScopeCase_ = 7;
+              break;
             }
-            namespacedResourceRestoreScopeCase_ = 7;
-            break;
-          }
-          case 66: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              substitutionRules_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 66:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                substitutionRules_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              substitutionRules_.add(
+                  input.readMessage(
+                      com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.parser(),
+                      extensionRegistry));
+              break;
             }
-            substitutionRules_.add(
-                input.readMessage(com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -145,8 +189,7 @@ private RestoreConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         substitutionRules_ = java.util.Collections.unmodifiableList(substitutionRules_);
@@ -155,29 +198,35 @@ private RestoreConfig(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkebackup.v1.RestoreProto
+        .internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_fieldAccessorTable
+    return com.google.cloud.gkebackup.v1.RestoreProto
+        .internal_static_google_cloud_gkebackup_v1_RestoreConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkebackup.v1.RestoreConfig.class, com.google.cloud.gkebackup.v1.RestoreConfig.Builder.class);
+            com.google.cloud.gkebackup.v1.RestoreConfig.class,
+            com.google.cloud.gkebackup.v1.RestoreConfig.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Defines how volume data should be restored
    * 
* * Protobuf enum {@code google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy} */ - public enum VolumeDataRestorePolicy - implements com.google.protobuf.ProtocolMessageEnum { + public enum VolumeDataRestorePolicy implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified (illegal).
      * 
@@ -186,6 +235,8 @@ public enum VolumeDataRestorePolicy */ VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED(0), /** + * + * *
      * For each PVC to be restored, will create a new underlying volume (and PV)
      * from the corresponding VolumeBackup contained within the Backup.
@@ -195,6 +246,8 @@ public enum VolumeDataRestorePolicy
      */
     RESTORE_VOLUME_DATA_FROM_BACKUP(1),
     /**
+     *
+     *
      * 
      * For each PVC to be restored, attempt to reuse the original PV contained
      * in the Backup (with its original underlying volume).  Note that option
@@ -205,6 +258,8 @@ public enum VolumeDataRestorePolicy
      */
     REUSE_VOLUME_HANDLE_FROM_BACKUP(2),
     /**
+     *
+     *
      * 
      * For each PVC to be restored, PVCs will be created without any particular
      * action to restore data.  In this case, the normal Kubernetes provisioning
@@ -219,6 +274,8 @@ public enum VolumeDataRestorePolicy
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified (illegal).
      * 
@@ -227,6 +284,8 @@ public enum VolumeDataRestorePolicy */ public static final int VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED_VALUE = 0; /** + * + * *
      * For each PVC to be restored, will create a new underlying volume (and PV)
      * from the corresponding VolumeBackup contained within the Backup.
@@ -236,6 +295,8 @@ public enum VolumeDataRestorePolicy
      */
     public static final int RESTORE_VOLUME_DATA_FROM_BACKUP_VALUE = 1;
     /**
+     *
+     *
      * 
      * For each PVC to be restored, attempt to reuse the original PV contained
      * in the Backup (with its original underlying volume).  Note that option
@@ -246,6 +307,8 @@ public enum VolumeDataRestorePolicy
      */
     public static final int REUSE_VOLUME_HANDLE_FROM_BACKUP_VALUE = 2;
     /**
+     *
+     *
      * 
      * For each PVC to be restored, PVCs will be created without any particular
      * action to restore data.  In this case, the normal Kubernetes provisioning
@@ -257,7 +320,6 @@ public enum VolumeDataRestorePolicy
      */
     public static final int NO_VOLUME_DATA_RESTORATION_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -282,11 +344,16 @@ public static VolumeDataRestorePolicy valueOf(int value) {
      */
     public static VolumeDataRestorePolicy forNumber(int value) {
       switch (value) {
-        case 0: return VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED;
-        case 1: return RESTORE_VOLUME_DATA_FROM_BACKUP;
-        case 2: return REUSE_VOLUME_HANDLE_FROM_BACKUP;
-        case 3: return NO_VOLUME_DATA_RESTORATION;
-        default: return null;
+        case 0:
+          return VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED;
+        case 1:
+          return RESTORE_VOLUME_DATA_FROM_BACKUP;
+        case 2:
+          return REUSE_VOLUME_HANDLE_FROM_BACKUP;
+        case 3:
+          return NO_VOLUME_DATA_RESTORATION;
+        default:
+          return null;
       }
     }
 
@@ -294,28 +361,28 @@ public static VolumeDataRestorePolicy forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        VolumeDataRestorePolicy> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public VolumeDataRestorePolicy findValueByNumber(int number) {
-              return VolumeDataRestorePolicy.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 VolumeDataRestorePolicy findValueByNumber(int number) {
+                return VolumeDataRestorePolicy.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.gkebackup.v1.RestoreConfig.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -324,8 +391,7 @@ public VolumeDataRestorePolicy findValueByNumber(int number) {
     public static VolumeDataRestorePolicy 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;
@@ -343,6 +409,8 @@ private VolumeDataRestorePolicy(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Defines the behavior for handling the situation where cluster-scoped
    * resources being restored already exist in the target cluster.
@@ -350,9 +418,10 @@ private VolumeDataRestorePolicy(int value) {
    *
    * Protobuf enum {@code google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy}
    */
-  public enum ClusterResourceConflictPolicy
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum ClusterResourceConflictPolicy implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified. Only allowed if no cluster-scoped resources will be
      * restored.
@@ -362,6 +431,8 @@ public enum ClusterResourceConflictPolicy
      */
     CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * Do not attempt to restore the conflicting resource.
      * 
@@ -370,6 +441,8 @@ public enum ClusterResourceConflictPolicy */ USE_EXISTING_VERSION(1), /** + * + * *
      * Delete the existing version before re-creating it from the Backup.
      * Note that this is a dangerous option which could cause unintentional
@@ -384,6 +457,8 @@ public enum ClusterResourceConflictPolicy
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified. Only allowed if no cluster-scoped resources will be
      * restored.
@@ -393,6 +468,8 @@ public enum ClusterResourceConflictPolicy
      */
     public static final int CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Do not attempt to restore the conflicting resource.
      * 
@@ -401,6 +478,8 @@ public enum ClusterResourceConflictPolicy */ public static final int USE_EXISTING_VERSION_VALUE = 1; /** + * + * *
      * Delete the existing version before re-creating it from the Backup.
      * Note that this is a dangerous option which could cause unintentional
@@ -412,7 +491,6 @@ public enum ClusterResourceConflictPolicy
      */
     public static final int USE_BACKUP_VERSION_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -437,10 +515,14 @@ public static ClusterResourceConflictPolicy valueOf(int value) {
      */
     public static ClusterResourceConflictPolicy forNumber(int value) {
       switch (value) {
-        case 0: return CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED;
-        case 1: return USE_EXISTING_VERSION;
-        case 2: return USE_BACKUP_VERSION;
-        default: return null;
+        case 0:
+          return CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED;
+        case 1:
+          return USE_EXISTING_VERSION;
+        case 2:
+          return USE_BACKUP_VERSION;
+        default:
+          return null;
       }
     }
 
@@ -448,28 +530,28 @@ public static ClusterResourceConflictPolicy forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        ClusterResourceConflictPolicy> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public ClusterResourceConflictPolicy findValueByNumber(int number) {
-              return ClusterResourceConflictPolicy.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 ClusterResourceConflictPolicy findValueByNumber(int number) {
+                return ClusterResourceConflictPolicy.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.gkebackup.v1.RestoreConfig.getDescriptor().getEnumTypes().get(1);
     }
 
@@ -478,8 +560,7 @@ public ClusterResourceConflictPolicy findValueByNumber(int number) {
     public static ClusterResourceConflictPolicy 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;
@@ -497,6 +578,8 @@ private ClusterResourceConflictPolicy(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Defines the behavior for handling the situation where sets of namespaced
    * resources being restored already exist in the target cluster.
@@ -504,9 +587,10 @@ private ClusterResourceConflictPolicy(int value) {
    *
    * Protobuf enum {@code google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode}
    */
-  public enum NamespacedResourceRestoreMode
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum NamespacedResourceRestoreMode implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified (invalid).
      * 
@@ -515,6 +599,8 @@ public enum NamespacedResourceRestoreMode */ NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED(0), /** + * + * *
      * When conflicting top-level resources (either Namespaces or
      * ProtectedApplications, depending upon the scope) are encountered, this
@@ -529,6 +615,8 @@ public enum NamespacedResourceRestoreMode
      */
     DELETE_AND_RESTORE(1),
     /**
+     *
+     *
      * 
      * If conflicting top-level resources (either Namespaces or
      * ProtectedApplications, depending upon the scope) are encountered at the
@@ -544,6 +632,8 @@ public enum NamespacedResourceRestoreMode
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified (invalid).
      * 
@@ -552,6 +642,8 @@ public enum NamespacedResourceRestoreMode */ public static final int NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * When conflicting top-level resources (either Namespaces or
      * ProtectedApplications, depending upon the scope) are encountered, this
@@ -566,6 +658,8 @@ public enum NamespacedResourceRestoreMode
      */
     public static final int DELETE_AND_RESTORE_VALUE = 1;
     /**
+     *
+     *
      * 
      * If conflicting top-level resources (either Namespaces or
      * ProtectedApplications, depending upon the scope) are encountered at the
@@ -578,7 +672,6 @@ public enum NamespacedResourceRestoreMode
      */
     public static final int FAIL_ON_CONFLICT_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -603,10 +696,14 @@ public static NamespacedResourceRestoreMode valueOf(int value) {
      */
     public static NamespacedResourceRestoreMode forNumber(int value) {
       switch (value) {
-        case 0: return NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED;
-        case 1: return DELETE_AND_RESTORE;
-        case 2: return FAIL_ON_CONFLICT;
-        default: return null;
+        case 0:
+          return NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED;
+        case 1:
+          return DELETE_AND_RESTORE;
+        case 2:
+          return FAIL_ON_CONFLICT;
+        default:
+          return null;
       }
     }
 
@@ -614,28 +711,28 @@ public static NamespacedResourceRestoreMode forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        NamespacedResourceRestoreMode> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public NamespacedResourceRestoreMode findValueByNumber(int number) {
-              return NamespacedResourceRestoreMode.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 NamespacedResourceRestoreMode findValueByNumber(int number) {
+                return NamespacedResourceRestoreMode.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.gkebackup.v1.RestoreConfig.getDescriptor().getEnumTypes().get(2);
     }
 
@@ -644,8 +741,7 @@ public NamespacedResourceRestoreMode findValueByNumber(int number) {
     public static NamespacedResourceRestoreMode 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;
@@ -662,11 +758,14 @@ private NamespacedResourceRestoreMode(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode)
   }
 
-  public interface GroupKindOrBuilder extends
+  public interface GroupKindOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.RestoreConfig.GroupKind)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * API group string of a Kubernetes resource, e.g.
      * "apiextensions.k8s.io", "storage.k8s.io", etc.
@@ -674,10 +773,13 @@ public interface GroupKindOrBuilder extends
      * 
* * string resource_group = 1; + * * @return The resourceGroup. */ java.lang.String getResourceGroup(); /** + * + * *
      * API group string of a Kubernetes resource, e.g.
      * "apiextensions.k8s.io", "storage.k8s.io", etc.
@@ -685,34 +787,41 @@ public interface GroupKindOrBuilder extends
      * 
* * string resource_group = 1; + * * @return The bytes for resourceGroup. */ - com.google.protobuf.ByteString - getResourceGroupBytes(); + com.google.protobuf.ByteString getResourceGroupBytes(); /** + * + * *
      * Kind of a Kubernetes resource, e.g.
      * "CustomResourceDefinition", "StorageClass", etc.
      * 
* * string resource_kind = 2; + * * @return The resourceKind. */ java.lang.String getResourceKind(); /** + * + * *
      * Kind of a Kubernetes resource, e.g.
      * "CustomResourceDefinition", "StorageClass", etc.
      * 
* * string resource_kind = 2; + * * @return The bytes for resourceKind. */ - com.google.protobuf.ByteString - getResourceKindBytes(); + com.google.protobuf.ByteString getResourceKindBytes(); } /** + * + * *
    * This is a direct map to the Kubernetes GroupKind type
    * [GroupKind](https://godoc.org/k8s.io/apimachinery/pkg/runtime/schema#GroupKind)
@@ -721,15 +830,16 @@ public interface GroupKindOrBuilder extends
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig.GroupKind}
    */
-  public static final class GroupKind extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class GroupKind extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.RestoreConfig.GroupKind)
       GroupKindOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use GroupKind.newBuilder() to construct.
     private GroupKind(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private GroupKind() {
       resourceGroup_ = "";
       resourceKind_ = "";
@@ -737,16 +847,15 @@ private GroupKind() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new GroupKind();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private GroupKind(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -765,25 +874,27 @@ private GroupKind(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              resourceGroup_ = s;
-              break;
-            }
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
+                resourceGroup_ = s;
+                break;
+              }
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              resourceKind_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                resourceKind_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -791,29 +902,33 @@ private GroupKind(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkebackup.v1.RestoreProto
+          .internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.RestoreProto
+          .internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.class, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder.class);
+              com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.class,
+              com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder.class);
     }
 
     public static final int RESOURCE_GROUP_FIELD_NUMBER = 1;
     private volatile java.lang.Object resourceGroup_;
     /**
+     *
+     *
      * 
      * API group string of a Kubernetes resource, e.g.
      * "apiextensions.k8s.io", "storage.k8s.io", etc.
@@ -821,6 +936,7 @@ private GroupKind(
      * 
* * string resource_group = 1; + * * @return The resourceGroup. */ @java.lang.Override @@ -829,14 +945,15 @@ public java.lang.String getResourceGroup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceGroup_ = s; return s; } } /** + * + * *
      * API group string of a Kubernetes resource, e.g.
      * "apiextensions.k8s.io", "storage.k8s.io", etc.
@@ -844,16 +961,15 @@ public java.lang.String getResourceGroup() {
      * 
* * string resource_group = 1; + * * @return The bytes for resourceGroup. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceGroupBytes() { + public com.google.protobuf.ByteString getResourceGroupBytes() { java.lang.Object ref = resourceGroup_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceGroup_ = b; return b; } else { @@ -864,12 +980,15 @@ public java.lang.String getResourceGroup() { public static final int RESOURCE_KIND_FIELD_NUMBER = 2; private volatile java.lang.Object resourceKind_; /** + * + * *
      * Kind of a Kubernetes resource, e.g.
      * "CustomResourceDefinition", "StorageClass", etc.
      * 
* * string resource_kind = 2; + * * @return The resourceKind. */ @java.lang.Override @@ -878,30 +997,30 @@ public java.lang.String getResourceKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceKind_ = s; return s; } } /** + * + * *
      * Kind of a Kubernetes resource, e.g.
      * "CustomResourceDefinition", "StorageClass", etc.
      * 
* * string resource_kind = 2; + * * @return The bytes for resourceKind. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceKindBytes() { + public com.google.protobuf.ByteString getResourceKindBytes() { java.lang.Object ref = resourceKind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceKind_ = b; return b; } else { @@ -910,6 +1029,7 @@ public java.lang.String getResourceKind() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -921,8 +1041,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(resourceGroup_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceGroup_); } @@ -952,17 +1071,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind other = (com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind) obj; + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind other = + (com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind) obj; - if (!getResourceGroup() - .equals(other.getResourceGroup())) return false; - if (!getResourceKind() - .equals(other.getResourceKind())) return false; + if (!getResourceGroup().equals(other.getResourceGroup())) return false; + if (!getResourceKind().equals(other.getResourceKind())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -984,87 +1102,94 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind prototype) { + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1074,6 +1199,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * This is a direct map to the Kubernetes GroupKind type
      * [GroupKind](https://godoc.org/k8s.io/apimachinery/pkg/runtime/schema#GroupKind)
@@ -1082,21 +1209,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig.GroupKind}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.RestoreConfig.GroupKind)
         com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.gkebackup.v1.RestoreProto
+            .internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_fieldAccessorTable
+        return com.google.cloud.gkebackup.v1.RestoreProto
+            .internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.class, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder.class);
+                com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.class,
+                com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder.class);
       }
 
       // Construct using com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.newBuilder()
@@ -1104,16 +1234,15 @@ 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) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1125,9 +1254,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.gkebackup.v1.RestoreProto
+            .internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor;
       }
 
       @java.lang.Override
@@ -1146,7 +1275,8 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind build() {
 
       @java.lang.Override
       public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind buildPartial() {
-        com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind result = new com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind(this);
+        com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind result =
+            new com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind(this);
         result.resourceGroup_ = resourceGroup_;
         result.resourceKind_ = resourceKind_;
         onBuilt();
@@ -1157,38 +1287,41 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind 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) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind) {
-          return mergeFrom((com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind)other);
+          return mergeFrom((com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -1196,7 +1329,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind other) {
-        if (other == com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()) return this;
+        if (other == com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance())
+          return this;
         if (!other.getResourceGroup().isEmpty()) {
           resourceGroup_ = other.resourceGroup_;
           onChanged();
@@ -1224,7 +1358,8 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1236,6 +1371,8 @@ public Builder mergeFrom(
 
       private java.lang.Object resourceGroup_ = "";
       /**
+       *
+       *
        * 
        * API group string of a Kubernetes resource, e.g.
        * "apiextensions.k8s.io", "storage.k8s.io", etc.
@@ -1243,13 +1380,13 @@ public Builder mergeFrom(
        * 
* * string resource_group = 1; + * * @return The resourceGroup. */ public java.lang.String getResourceGroup() { java.lang.Object ref = resourceGroup_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceGroup_ = s; return s; @@ -1258,6 +1395,8 @@ public java.lang.String getResourceGroup() { } } /** + * + * *
        * API group string of a Kubernetes resource, e.g.
        * "apiextensions.k8s.io", "storage.k8s.io", etc.
@@ -1265,15 +1404,14 @@ public java.lang.String getResourceGroup() {
        * 
* * string resource_group = 1; + * * @return The bytes for resourceGroup. */ - public com.google.protobuf.ByteString - getResourceGroupBytes() { + public com.google.protobuf.ByteString getResourceGroupBytes() { java.lang.Object ref = resourceGroup_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceGroup_ = b; return b; } else { @@ -1281,6 +1419,8 @@ public java.lang.String getResourceGroup() { } } /** + * + * *
        * API group string of a Kubernetes resource, e.g.
        * "apiextensions.k8s.io", "storage.k8s.io", etc.
@@ -1288,20 +1428,22 @@ public java.lang.String getResourceGroup() {
        * 
* * string resource_group = 1; + * * @param value The resourceGroup to set. * @return This builder for chaining. */ - public Builder setResourceGroup( - java.lang.String value) { + public Builder setResourceGroup(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceGroup_ = value; onChanged(); return this; } /** + * + * *
        * API group string of a Kubernetes resource, e.g.
        * "apiextensions.k8s.io", "storage.k8s.io", etc.
@@ -1309,15 +1451,18 @@ public Builder setResourceGroup(
        * 
* * string resource_group = 1; + * * @return This builder for chaining. */ public Builder clearResourceGroup() { - + resourceGroup_ = getDefaultInstance().getResourceGroup(); onChanged(); return this; } /** + * + * *
        * API group string of a Kubernetes resource, e.g.
        * "apiextensions.k8s.io", "storage.k8s.io", etc.
@@ -1325,16 +1470,16 @@ public Builder clearResourceGroup() {
        * 
* * string resource_group = 1; + * * @param value The bytes for resourceGroup to set. * @return This builder for chaining. */ - public Builder setResourceGroupBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceGroupBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceGroup_ = value; onChanged(); return this; @@ -1342,19 +1487,21 @@ public Builder setResourceGroupBytes( private java.lang.Object resourceKind_ = ""; /** + * + * *
        * Kind of a Kubernetes resource, e.g.
        * "CustomResourceDefinition", "StorageClass", etc.
        * 
* * string resource_kind = 2; + * * @return The resourceKind. */ public java.lang.String getResourceKind() { java.lang.Object ref = resourceKind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceKind_ = s; return s; @@ -1363,21 +1510,22 @@ public java.lang.String getResourceKind() { } } /** + * + * *
        * Kind of a Kubernetes resource, e.g.
        * "CustomResourceDefinition", "StorageClass", etc.
        * 
* * string resource_kind = 2; + * * @return The bytes for resourceKind. */ - public com.google.protobuf.ByteString - getResourceKindBytes() { + public com.google.protobuf.ByteString getResourceKindBytes() { java.lang.Object ref = resourceKind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceKind_ = b; return b; } else { @@ -1385,61 +1533,69 @@ public java.lang.String getResourceKind() { } } /** + * + * *
        * Kind of a Kubernetes resource, e.g.
        * "CustomResourceDefinition", "StorageClass", etc.
        * 
* * string resource_kind = 2; + * * @param value The resourceKind to set. * @return This builder for chaining. */ - public Builder setResourceKind( - java.lang.String value) { + public Builder setResourceKind(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceKind_ = value; onChanged(); return this; } /** + * + * *
        * Kind of a Kubernetes resource, e.g.
        * "CustomResourceDefinition", "StorageClass", etc.
        * 
* * string resource_kind = 2; + * * @return This builder for chaining. */ public Builder clearResourceKind() { - + resourceKind_ = getDefaultInstance().getResourceKind(); onChanged(); return this; } /** + * + * *
        * Kind of a Kubernetes resource, e.g.
        * "CustomResourceDefinition", "StorageClass", etc.
        * 
* * string resource_kind = 2; + * * @param value The bytes for resourceKind to set. * @return This builder for chaining. */ - public Builder setResourceKindBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceKindBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceKind_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1452,12 +1608,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.RestoreConfig.GroupKind) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.RestoreConfig.GroupKind) private static final com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind(); } @@ -1466,16 +1622,16 @@ public static com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupKind parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupKind(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupKind parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupKind(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1490,14 +1646,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ClusterResourceRestoreScopeOrBuilder extends + public interface ClusterResourceRestoreScopeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A list of "types" of cluster-scoped resources to be restored from the
      * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -1505,11 +1663,14 @@ public interface ClusterResourceRestoreScopeOrBuilder extends
      * handled separately and is not governed by this field.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ - java.util.List + java.util.List getSelectedGroupKindsList(); /** + * + * *
      * A list of "types" of cluster-scoped resources to be restored from the
      * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -1517,10 +1678,13 @@ public interface ClusterResourceRestoreScopeOrBuilder extends
      * handled separately and is not governed by this field.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getSelectedGroupKinds(int index); /** + * + * *
      * A list of "types" of cluster-scoped resources to be restored from the
      * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -1528,10 +1692,13 @@ public interface ClusterResourceRestoreScopeOrBuilder extends
      * handled separately and is not governed by this field.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ int getSelectedGroupKindsCount(); /** + * + * *
      * A list of "types" of cluster-scoped resources to be restored from the
      * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -1539,11 +1706,14 @@ public interface ClusterResourceRestoreScopeOrBuilder extends
      * handled separately and is not governed by this field.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ - java.util.List + java.util.List getSelectedGroupKindsOrBuilderList(); /** + * + * *
      * A list of "types" of cluster-scoped resources to be restored from the
      * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -1551,43 +1721,47 @@ public interface ClusterResourceRestoreScopeOrBuilder extends
      * handled separately and is not governed by this field.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getSelectedGroupKindsOrBuilder( int index); } /** + * + * *
    * Identifies the cluster-scoped resources to restore from the Backup.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope} */ - public static final class ClusterResourceRestoreScope extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ClusterResourceRestoreScope + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) ClusterResourceRestoreScopeOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClusterResourceRestoreScope.newBuilder() to construct. private ClusterResourceRestoreScope(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ClusterResourceRestoreScope() { selectedGroupKinds_ = 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 ClusterResourceRestoreScope(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ClusterResourceRestoreScope( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1607,22 +1781,27 @@ private ClusterResourceRestoreScope( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - selectedGroupKinds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + selectedGroupKinds_ = + new java.util.ArrayList< + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind>(); + mutable_bitField0_ |= 0x00000001; + } + selectedGroupKinds_.add( + input.readMessage( + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.parser(), + extensionRegistry)); + break; } - selectedGroupKinds_.add( - input.readMessage(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1630,8 +1809,7 @@ private ClusterResourceRestoreScope( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { selectedGroupKinds_ = java.util.Collections.unmodifiableList(selectedGroupKinds_); @@ -1640,22 +1818,29 @@ private ClusterResourceRestoreScope( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_fieldAccessorTable + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.class, com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder.class); + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.class, + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder + .class); } public static final int SELECTED_GROUP_KINDS_FIELD_NUMBER = 1; - private java.util.List selectedGroupKinds_; + private java.util.List + selectedGroupKinds_; /** + * + * *
      * A list of "types" of cluster-scoped resources to be restored from the
      * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -1663,13 +1848,17 @@ private ClusterResourceRestoreScope(
      * handled separately and is not governed by this field.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ @java.lang.Override - public java.util.List getSelectedGroupKindsList() { + public java.util.List + getSelectedGroupKindsList() { return selectedGroupKinds_; } /** + * + * *
      * A list of "types" of cluster-scoped resources to be restored from the
      * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -1677,14 +1866,17 @@ public java.util.List get
      * handled separately and is not governed by this field.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getSelectedGroupKindsOrBuilderList() { return selectedGroupKinds_; } /** + * + * *
      * A list of "types" of cluster-scoped resources to be restored from the
      * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -1692,13 +1884,16 @@ public java.util.List get
      * handled separately and is not governed by this field.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ @java.lang.Override public int getSelectedGroupKindsCount() { return selectedGroupKinds_.size(); } /** + * + * *
      * A list of "types" of cluster-scoped resources to be restored from the
      * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -1706,13 +1901,16 @@ public int getSelectedGroupKindsCount() {
      * handled separately and is not governed by this field.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getSelectedGroupKinds(int index) { return selectedGroupKinds_.get(index); } /** + * + * *
      * A list of "types" of cluster-scoped resources to be restored from the
      * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -1720,15 +1918,17 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getSelectedGroupKin
      * handled separately and is not governed by this field.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getSelectedGroupKindsOrBuilder( - int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder + getSelectedGroupKindsOrBuilder(int index) { return selectedGroupKinds_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1740,8 +1940,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 < selectedGroupKinds_.size(); i++) { output.writeMessage(1, selectedGroupKinds_.get(i)); } @@ -1755,8 +1954,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < selectedGroupKinds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, selectedGroupKinds_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, selectedGroupKinds_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1766,15 +1965,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope)) { + if (!(obj + instanceof com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope other = (com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) obj; + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope other = + (com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) obj; - if (!getSelectedGroupKindsList() - .equals(other.getSelectedGroupKindsList())) return false; + if (!getSelectedGroupKindsList().equals(other.getSelectedGroupKindsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1796,87 +1996,95 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope prototype) { + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1886,45 +2094,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Identifies the cluster-scoped resources to restore from the Backup.
      * 
* * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_fieldAccessorTable + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.class, com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder.class); + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.class, + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder + .class); } - // Construct using com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.newBuilder() + // Construct using + // com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.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) { getSelectedGroupKindsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1938,19 +2153,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor; } @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope getDefaultInstanceForType() { - return com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.getDefaultInstance(); + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + getDefaultInstanceForType() { + return com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope build() { - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope result = buildPartial(); + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1958,8 +2176,10 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope b } @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope buildPartial() { - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope result = new com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope(this); + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + buildPartial() { + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope result = + new com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope(this); int from_bitField0_ = bitField0_; if (selectedGroupKindsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1978,46 +2198,54 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope b public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) { - return mergeFrom((com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope)other); + if (other + instanceof com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) { + return mergeFrom( + (com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope other) { - if (other == com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope other) { + if (other + == com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + .getDefaultInstance()) return this; if (selectedGroupKindsBuilder_ == null) { if (!other.selectedGroupKinds_.isEmpty()) { if (selectedGroupKinds_.isEmpty()) { @@ -2036,9 +2264,10 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.RestoreConfig.ClusterReso selectedGroupKindsBuilder_ = null; selectedGroupKinds_ = other.selectedGroupKinds_; bitField0_ = (bitField0_ & ~0x00000001); - selectedGroupKindsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSelectedGroupKindsFieldBuilder() : null; + selectedGroupKindsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSelectedGroupKindsFieldBuilder() + : null; } else { selectedGroupKindsBuilder_.addAllMessages(other.selectedGroupKinds_); } @@ -2059,11 +2288,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parsedMessage = null; + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2072,21 +2304,30 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List selectedGroupKinds_ = - java.util.Collections.emptyList(); + private java.util.List + selectedGroupKinds_ = java.util.Collections.emptyList(); + private void ensureSelectedGroupKindsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - selectedGroupKinds_ = new java.util.ArrayList(selectedGroupKinds_); + selectedGroupKinds_ = + new java.util.ArrayList( + selectedGroupKinds_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> selectedGroupKindsBuilder_; + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> + selectedGroupKindsBuilder_; /** + * + * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2094,9 +2335,11 @@ private void ensureSelectedGroupKindsIsMutable() {
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ - public java.util.List getSelectedGroupKindsList() { + public java.util.List + getSelectedGroupKindsList() { if (selectedGroupKindsBuilder_ == null) { return java.util.Collections.unmodifiableList(selectedGroupKinds_); } else { @@ -2104,6 +2347,8 @@ public java.util.List get } } /** + * + * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2111,7 +2356,8 @@ public java.util.List get
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ public int getSelectedGroupKindsCount() { if (selectedGroupKindsBuilder_ == null) { @@ -2121,6 +2367,8 @@ public int getSelectedGroupKindsCount() { } } /** + * + * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2128,9 +2376,11 @@ public int getSelectedGroupKindsCount() {
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getSelectedGroupKinds(int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getSelectedGroupKinds( + int index) { if (selectedGroupKindsBuilder_ == null) { return selectedGroupKinds_.get(index); } else { @@ -2138,6 +2388,8 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getSelectedGroupKin } } /** + * + * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2145,7 +2397,8 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getSelectedGroupKin
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ public Builder setSelectedGroupKinds( int index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { @@ -2162,6 +2415,8 @@ public Builder setSelectedGroupKinds( return this; } /** + * + * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2169,10 +2424,12 @@ public Builder setSelectedGroupKinds(
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ public Builder setSelectedGroupKinds( - int index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { + int index, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { if (selectedGroupKindsBuilder_ == null) { ensureSelectedGroupKindsIsMutable(); selectedGroupKinds_.set(index, builderForValue.build()); @@ -2183,6 +2440,8 @@ public Builder setSelectedGroupKinds( return this; } /** + * + * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2190,9 +2449,11 @@ public Builder setSelectedGroupKinds(
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ - public Builder addSelectedGroupKinds(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { + public Builder addSelectedGroupKinds( + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { if (selectedGroupKindsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2206,6 +2467,8 @@ public Builder addSelectedGroupKinds(com.google.cloud.gkebackup.v1.RestoreConfig return this; } /** + * + * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2213,7 +2476,8 @@ public Builder addSelectedGroupKinds(com.google.cloud.gkebackup.v1.RestoreConfig
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ public Builder addSelectedGroupKinds( int index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { @@ -2230,6 +2494,8 @@ public Builder addSelectedGroupKinds( return this; } /** + * + * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2237,7 +2503,8 @@ public Builder addSelectedGroupKinds(
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ public Builder addSelectedGroupKinds( com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { @@ -2251,6 +2518,8 @@ public Builder addSelectedGroupKinds( return this; } /** + * + * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2258,10 +2527,12 @@ public Builder addSelectedGroupKinds(
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ public Builder addSelectedGroupKinds( - int index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { + int index, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { if (selectedGroupKindsBuilder_ == null) { ensureSelectedGroupKindsIsMutable(); selectedGroupKinds_.add(index, builderForValue.build()); @@ -2272,6 +2543,8 @@ public Builder addSelectedGroupKinds( return this; } /** + * + * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2279,14 +2552,15 @@ public Builder addSelectedGroupKinds(
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ public Builder addAllSelectedGroupKinds( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (selectedGroupKindsBuilder_ == null) { ensureSelectedGroupKindsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, selectedGroupKinds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, selectedGroupKinds_); onChanged(); } else { selectedGroupKindsBuilder_.addAllMessages(values); @@ -2294,6 +2568,8 @@ public Builder addAllSelectedGroupKinds( return this; } /** + * + * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2301,7 +2577,8 @@ public Builder addAllSelectedGroupKinds(
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ public Builder clearSelectedGroupKinds() { if (selectedGroupKindsBuilder_ == null) { @@ -2314,6 +2591,8 @@ public Builder clearSelectedGroupKinds() { return this; } /** + * + * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2321,7 +2600,8 @@ public Builder clearSelectedGroupKinds() {
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ public Builder removeSelectedGroupKinds(int index) { if (selectedGroupKindsBuilder_ == null) { @@ -2334,6 +2614,8 @@ public Builder removeSelectedGroupKinds(int index) { return this; } /** + * + * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2341,13 +2623,16 @@ public Builder removeSelectedGroupKinds(int index) {
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder getSelectedGroupKindsBuilder( - int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder + getSelectedGroupKindsBuilder(int index) { return getSelectedGroupKindsFieldBuilder().getBuilder(index); } /** + * + * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2355,16 +2640,20 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder getSelected
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getSelectedGroupKindsOrBuilder( - int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder + getSelectedGroupKindsOrBuilder(int index) { if (selectedGroupKindsBuilder_ == null) { - return selectedGroupKinds_.get(index); } else { + return selectedGroupKinds_.get(index); + } else { return selectedGroupKindsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2372,10 +2661,12 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getSelecte
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ - public java.util.List - getSelectedGroupKindsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> + getSelectedGroupKindsOrBuilderList() { if (selectedGroupKindsBuilder_ != null) { return selectedGroupKindsBuilder_.getMessageOrBuilderList(); } else { @@ -2383,6 +2674,8 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getSelecte } } /** + * + * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2390,13 +2683,17 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getSelecte
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder addSelectedGroupKindsBuilder() { - return getSelectedGroupKindsFieldBuilder().addBuilder( - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder + addSelectedGroupKindsBuilder() { + return getSelectedGroupKindsFieldBuilder() + .addBuilder(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()); } /** + * + * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2404,14 +2701,18 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder addSelected
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder addSelectedGroupKindsBuilder( - int index) { - return getSelectedGroupKindsFieldBuilder().addBuilder( - index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder + addSelectedGroupKindsBuilder(int index) { + return getSelectedGroupKindsFieldBuilder() + .addBuilder( + index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()); } /** + * + * *
        * A list of "types" of cluster-scoped resources to be restored from the
        * Backup.  An empty list means that NO cluster-scoped resources will be
@@ -2419,18 +2720,25 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder addSelected
        * handled separately and is not governed by this field.
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1; + * */ - public java.util.List - getSelectedGroupKindsBuilderList() { + public java.util.List + getSelectedGroupKindsBuilderList() { return getSelectedGroupKindsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> getSelectedGroupKindsFieldBuilder() { if (selectedGroupKindsBuilder_ == null) { - selectedGroupKindsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder>( + selectedGroupKindsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder>( selectedGroupKinds_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2439,6 +2747,7 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder addSelected } return selectedGroupKindsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2451,30 +2760,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope) - private static final com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope DEFAULT_INSTANCE; + private static final com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope(); + DEFAULT_INSTANCE = + new com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope(); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope getDefaultInstance() { + public static com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterResourceRestoreScope parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterResourceRestoreScope(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterResourceRestoreScope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClusterResourceRestoreScope(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2486,17 +2798,20 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope getDefaultInstanceForType() { + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface SubstitutionRuleOrBuilder extends + public interface SubstitutionRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * (Filtering parameter) Any resource subject to substitution must be
      * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -2508,11 +2823,13 @@ public interface SubstitutionRuleOrBuilder extends
      * 
* * repeated string target_namespaces = 1; + * * @return A list containing the targetNamespaces. */ - java.util.List - getTargetNamespacesList(); + java.util.List getTargetNamespacesList(); /** + * + * *
      * (Filtering parameter) Any resource subject to substitution must be
      * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -2524,10 +2841,13 @@ public interface SubstitutionRuleOrBuilder extends
      * 
* * repeated string target_namespaces = 1; + * * @return The count of targetNamespaces. */ int getTargetNamespacesCount(); /** + * + * *
      * (Filtering parameter) Any resource subject to substitution must be
      * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -2539,11 +2859,14 @@ public interface SubstitutionRuleOrBuilder extends
      * 
* * repeated string target_namespaces = 1; + * * @param index The index of the element to return. * @return The targetNamespaces at the given index. */ java.lang.String getTargetNamespaces(int index); /** + * + * *
      * (Filtering parameter) Any resource subject to substitution must be
      * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -2555,13 +2878,15 @@ public interface SubstitutionRuleOrBuilder extends
      * 
* * repeated string target_namespaces = 1; + * * @param index The index of the value to return. * @return The bytes of the targetNamespaces at the given index. */ - com.google.protobuf.ByteString - getTargetNamespacesBytes(int index); + com.google.protobuf.ByteString getTargetNamespacesBytes(int index); /** + * + * *
      * (Filtering parameter) Any resource subject to substitution must belong to
      * one of the listed "types".
@@ -2570,11 +2895,13 @@ public interface SubstitutionRuleOrBuilder extends
      * candidates for substitution).
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ - java.util.List - getTargetGroupKindsList(); + java.util.List getTargetGroupKindsList(); /** + * + * *
      * (Filtering parameter) Any resource subject to substitution must belong to
      * one of the listed "types".
@@ -2583,10 +2910,13 @@ public interface SubstitutionRuleOrBuilder extends
      * candidates for substitution).
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getTargetGroupKinds(int index); /** + * + * *
      * (Filtering parameter) Any resource subject to substitution must belong to
      * one of the listed "types".
@@ -2595,10 +2925,13 @@ public interface SubstitutionRuleOrBuilder extends
      * candidates for substitution).
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ int getTargetGroupKindsCount(); /** + * + * *
      * (Filtering parameter) Any resource subject to substitution must belong to
      * one of the listed "types".
@@ -2607,11 +2940,14 @@ public interface SubstitutionRuleOrBuilder extends
      * candidates for substitution).
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ - java.util.List + java.util.List getTargetGroupKindsOrBuilderList(); /** + * + * *
      * (Filtering parameter) Any resource subject to substitution must belong to
      * one of the listed "types".
@@ -2620,12 +2956,15 @@ public interface SubstitutionRuleOrBuilder extends
      * candidates for substitution).
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetGroupKindsOrBuilder( int index); /** + * + * *
      * Required. This is a [JSONPath]
      * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
@@ -2637,10 +2976,13 @@ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetGroupKin
      * 
* * string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetJsonPath. */ java.lang.String getTargetJsonPath(); /** + * + * *
      * Required. This is a [JSONPath]
      * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
@@ -2652,12 +2994,14 @@ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetGroupKin
      * 
* * string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetJsonPath. */ - com.google.protobuf.ByteString - getTargetJsonPathBytes(); + com.google.protobuf.ByteString getTargetJsonPathBytes(); /** + * + * *
      * (Filtering parameter) This is a [regular expression]
      * (https://en.wikipedia.org/wiki/Regular_expression)
@@ -2671,10 +3015,13 @@ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetGroupKin
      * 
* * string original_value_pattern = 4; + * * @return The originalValuePattern. */ java.lang.String getOriginalValuePattern(); /** + * + * *
      * (Filtering parameter) This is a [regular expression]
      * (https://en.wikipedia.org/wiki/Regular_expression)
@@ -2688,12 +3035,14 @@ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetGroupKin
      * 
* * string original_value_pattern = 4; + * * @return The bytes for originalValuePattern. */ - com.google.protobuf.ByteString - getOriginalValuePatternBytes(); + com.google.protobuf.ByteString getOriginalValuePatternBytes(); /** + * + * *
      * This is the new value to set for any fields that pass the filtering and
      * selection criteria. To remove a value from a Kubernetes resource, either
@@ -2701,10 +3050,13 @@ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetGroupKin
      * 
* * string new_value = 5; + * * @return The newValue. */ java.lang.String getNewValue(); /** + * + * *
      * This is the new value to set for any fields that pass the filtering and
      * selection criteria. To remove a value from a Kubernetes resource, either
@@ -2712,12 +3064,14 @@ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetGroupKin
      * 
* * string new_value = 5; + * * @return The bytes for newValue. */ - com.google.protobuf.ByteString - getNewValueBytes(); + com.google.protobuf.ByteString getNewValueBytes(); } /** + * + * *
    * A transformation rule to be applied against Kubernetes resources as they
    * are selected for restoration from a Backup. A rule contains both filtering
@@ -2726,15 +3080,16 @@ com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetGroupKin
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule}
    */
-  public static final class SubstitutionRule extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class SubstitutionRule extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule)
       SubstitutionRuleOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use SubstitutionRule.newBuilder() to construct.
     private SubstitutionRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private SubstitutionRule() {
       targetNamespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY;
       targetGroupKinds_ = java.util.Collections.emptyList();
@@ -2745,16 +3100,15 @@ private SubstitutionRule() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new SubstitutionRule();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private SubstitutionRule(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -2774,49 +3128,58 @@ private SubstitutionRule(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                targetNamespaces_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  targetNamespaces_ = new com.google.protobuf.LazyStringArrayList();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                targetNamespaces_.add(s);
+                break;
               }
-              targetNamespaces_.add(s);
-              break;
-            }
-            case 18: {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                targetGroupKinds_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
+            case 18:
+              {
+                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                  targetGroupKinds_ =
+                      new java.util.ArrayList<
+                          com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind>();
+                  mutable_bitField0_ |= 0x00000002;
+                }
+                targetGroupKinds_.add(
+                    input.readMessage(
+                        com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.parser(),
+                        extensionRegistry));
+                break;
               }
-              targetGroupKinds_.add(
-                  input.readMessage(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.parser(), extensionRegistry));
-              break;
-            }
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              targetJsonPath_ = s;
-              break;
-            }
-            case 34: {
-              java.lang.String s = input.readStringRequireUtf8();
+                targetJsonPath_ = s;
+                break;
+              }
+            case 34:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              originalValuePattern_ = s;
-              break;
-            }
-            case 42: {
-              java.lang.String s = input.readStringRequireUtf8();
+                originalValuePattern_ = s;
+                break;
+              }
+            case 42:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              newValue_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                newValue_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2824,8 +3187,7 @@ private SubstitutionRule(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           targetNamespaces_ = targetNamespaces_.getUnmodifiableView();
@@ -2837,22 +3199,27 @@ private SubstitutionRule(
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkebackup.v1.RestoreProto
+          .internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.RestoreProto
+          .internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.class, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder.class);
+              com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.class,
+              com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder.class);
     }
 
     public static final int TARGET_NAMESPACES_FIELD_NUMBER = 1;
     private com.google.protobuf.LazyStringList targetNamespaces_;
     /**
+     *
+     *
      * 
      * (Filtering parameter) Any resource subject to substitution must be
      * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -2864,13 +3231,15 @@ private SubstitutionRule(
      * 
* * repeated string target_namespaces = 1; + * * @return A list containing the targetNamespaces. */ - public com.google.protobuf.ProtocolStringList - getTargetNamespacesList() { + public com.google.protobuf.ProtocolStringList getTargetNamespacesList() { return targetNamespaces_; } /** + * + * *
      * (Filtering parameter) Any resource subject to substitution must be
      * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -2882,12 +3251,15 @@ private SubstitutionRule(
      * 
* * repeated string target_namespaces = 1; + * * @return The count of targetNamespaces. */ public int getTargetNamespacesCount() { return targetNamespaces_.size(); } /** + * + * *
      * (Filtering parameter) Any resource subject to substitution must be
      * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -2899,6 +3271,7 @@ public int getTargetNamespacesCount() {
      * 
* * repeated string target_namespaces = 1; + * * @param index The index of the element to return. * @return The targetNamespaces at the given index. */ @@ -2906,6 +3279,8 @@ public java.lang.String getTargetNamespaces(int index) { return targetNamespaces_.get(index); } /** + * + * *
      * (Filtering parameter) Any resource subject to substitution must be
      * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -2917,17 +3292,19 @@ public java.lang.String getTargetNamespaces(int index) {
      * 
* * repeated string target_namespaces = 1; + * * @param index The index of the value to return. * @return The bytes of the targetNamespaces at the given index. */ - public com.google.protobuf.ByteString - getTargetNamespacesBytes(int index) { + public com.google.protobuf.ByteString getTargetNamespacesBytes(int index) { return targetNamespaces_.getByteString(index); } public static final int TARGET_GROUP_KINDS_FIELD_NUMBER = 2; private java.util.List targetGroupKinds_; /** + * + * *
      * (Filtering parameter) Any resource subject to substitution must belong to
      * one of the listed "types".
@@ -2936,13 +3313,17 @@ public java.lang.String getTargetNamespaces(int index) {
      * candidates for substitution).
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ @java.lang.Override - public java.util.List getTargetGroupKindsList() { + public java.util.List + getTargetGroupKindsList() { return targetGroupKinds_; } /** + * + * *
      * (Filtering parameter) Any resource subject to substitution must belong to
      * one of the listed "types".
@@ -2951,14 +3332,17 @@ public java.util.List get
      * candidates for substitution).
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ @java.lang.Override - public java.util.List + public java.util.List getTargetGroupKindsOrBuilderList() { return targetGroupKinds_; } /** + * + * *
      * (Filtering parameter) Any resource subject to substitution must belong to
      * one of the listed "types".
@@ -2967,13 +3351,16 @@ public java.util.List get
      * candidates for substitution).
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ @java.lang.Override public int getTargetGroupKindsCount() { return targetGroupKinds_.size(); } /** + * + * *
      * (Filtering parameter) Any resource subject to substitution must belong to
      * one of the listed "types".
@@ -2982,13 +3369,16 @@ public int getTargetGroupKindsCount() {
      * candidates for substitution).
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getTargetGroupKinds(int index) { return targetGroupKinds_.get(index); } /** + * + * *
      * (Filtering parameter) Any resource subject to substitution must belong to
      * one of the listed "types".
@@ -2997,17 +3387,20 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getTargetGroupKinds
      * candidates for substitution).
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetGroupKindsOrBuilder( - int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder + getTargetGroupKindsOrBuilder(int index) { return targetGroupKinds_.get(index); } public static final int TARGET_JSON_PATH_FIELD_NUMBER = 3; private volatile java.lang.Object targetJsonPath_; /** + * + * *
      * Required. This is a [JSONPath]
      * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
@@ -3019,6 +3412,7 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetG
      * 
* * string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetJsonPath. */ @java.lang.Override @@ -3027,14 +3421,15 @@ public java.lang.String getTargetJsonPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetJsonPath_ = s; return s; } } /** + * + * *
      * Required. This is a [JSONPath]
      * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
@@ -3046,16 +3441,15 @@ public java.lang.String getTargetJsonPath() {
      * 
* * string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetJsonPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetJsonPathBytes() { + public com.google.protobuf.ByteString getTargetJsonPathBytes() { java.lang.Object ref = targetJsonPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetJsonPath_ = b; return b; } else { @@ -3066,6 +3460,8 @@ public java.lang.String getTargetJsonPath() { public static final int ORIGINAL_VALUE_PATTERN_FIELD_NUMBER = 4; private volatile java.lang.Object originalValuePattern_; /** + * + * *
      * (Filtering parameter) This is a [regular expression]
      * (https://en.wikipedia.org/wiki/Regular_expression)
@@ -3079,6 +3475,7 @@ public java.lang.String getTargetJsonPath() {
      * 
* * string original_value_pattern = 4; + * * @return The originalValuePattern. */ @java.lang.Override @@ -3087,14 +3484,15 @@ public java.lang.String getOriginalValuePattern() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalValuePattern_ = s; return s; } } /** + * + * *
      * (Filtering parameter) This is a [regular expression]
      * (https://en.wikipedia.org/wiki/Regular_expression)
@@ -3108,16 +3506,15 @@ public java.lang.String getOriginalValuePattern() {
      * 
* * string original_value_pattern = 4; + * * @return The bytes for originalValuePattern. */ @java.lang.Override - public com.google.protobuf.ByteString - getOriginalValuePatternBytes() { + public com.google.protobuf.ByteString getOriginalValuePatternBytes() { java.lang.Object ref = originalValuePattern_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); originalValuePattern_ = b; return b; } else { @@ -3128,6 +3525,8 @@ public java.lang.String getOriginalValuePattern() { public static final int NEW_VALUE_FIELD_NUMBER = 5; private volatile java.lang.Object newValue_; /** + * + * *
      * This is the new value to set for any fields that pass the filtering and
      * selection criteria. To remove a value from a Kubernetes resource, either
@@ -3135,6 +3534,7 @@ public java.lang.String getOriginalValuePattern() {
      * 
* * string new_value = 5; + * * @return The newValue. */ @java.lang.Override @@ -3143,14 +3543,15 @@ public java.lang.String getNewValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); newValue_ = s; return s; } } /** + * + * *
      * This is the new value to set for any fields that pass the filtering and
      * selection criteria. To remove a value from a Kubernetes resource, either
@@ -3158,16 +3559,15 @@ public java.lang.String getNewValue() {
      * 
* * string new_value = 5; + * * @return The bytes for newValue. */ @java.lang.Override - public com.google.protobuf.ByteString - getNewValueBytes() { + public com.google.protobuf.ByteString getNewValueBytes() { java.lang.Object ref = newValue_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); newValue_ = b; return b; } else { @@ -3176,6 +3576,7 @@ public java.lang.String getNewValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3187,8 +3588,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 < targetNamespaces_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetNamespaces_.getRaw(i)); } @@ -3222,8 +3622,8 @@ public int getSerializedSize() { size += 1 * getTargetNamespacesList().size(); } for (int i = 0; i < targetGroupKinds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, targetGroupKinds_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, targetGroupKinds_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetJsonPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetJsonPath_); @@ -3242,23 +3642,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule other = (com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule) obj; - - if (!getTargetNamespacesList() - .equals(other.getTargetNamespacesList())) return false; - if (!getTargetGroupKindsList() - .equals(other.getTargetGroupKindsList())) return false; - if (!getTargetJsonPath() - .equals(other.getTargetJsonPath())) return false; - if (!getOriginalValuePattern() - .equals(other.getOriginalValuePattern())) return false; - if (!getNewValue() - .equals(other.getNewValue())) return false; + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule other = + (com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule) obj; + + if (!getTargetNamespacesList().equals(other.getTargetNamespacesList())) return false; + if (!getTargetGroupKindsList().equals(other.getTargetGroupKindsList())) return false; + if (!getTargetJsonPath().equals(other.getTargetJsonPath())) return false; + if (!getOriginalValuePattern().equals(other.getOriginalValuePattern())) return false; + if (!getNewValue().equals(other.getNewValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3290,87 +3686,94 @@ public int hashCode() { } public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule prototype) { + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3380,6 +3783,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A transformation rule to be applied against Kubernetes resources as they
      * are selected for restoration from a Backup. A rule contains both filtering
@@ -3388,21 +3793,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule)
         com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.gkebackup.v1.RestoreProto
+            .internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_fieldAccessorTable
+        return com.google.cloud.gkebackup.v1.RestoreProto
+            .internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.class, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder.class);
+                com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.class,
+                com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder.class);
       }
 
       // Construct using com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.newBuilder()
@@ -3410,17 +3818,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) {
           getTargetGroupKindsFieldBuilder();
         }
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -3442,13 +3850,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.gkebackup.v1.RestoreProto
+            .internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getDefaultInstanceForType() {
+      public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule
+          getDefaultInstanceForType() {
         return com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.getDefaultInstance();
       }
 
@@ -3463,7 +3872,8 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule build() {
 
       @java.lang.Override
       public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule buildPartial() {
-        com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule result = new com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule(this);
+        com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule result =
+            new com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule(this);
         int from_bitField0_ = bitField0_;
         if (((bitField0_ & 0x00000001) != 0)) {
           targetNamespaces_ = targetNamespaces_.getUnmodifiableView();
@@ -3490,38 +3900,41 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule 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) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule) {
-          return mergeFrom((com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule)other);
+          return mergeFrom((com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -3529,7 +3942,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule other) {
-        if (other == com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.getDefaultInstance()) return this;
+        if (other
+            == com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.getDefaultInstance())
+          return this;
         if (!other.targetNamespaces_.isEmpty()) {
           if (targetNamespaces_.isEmpty()) {
             targetNamespaces_ = other.targetNamespaces_;
@@ -3558,9 +3973,10 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.RestoreConfig.Substitutio
               targetGroupKindsBuilder_ = null;
               targetGroupKinds_ = other.targetGroupKinds_;
               bitField0_ = (bitField0_ & ~0x00000002);
-              targetGroupKindsBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getTargetGroupKindsFieldBuilder() : null;
+              targetGroupKindsBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getTargetGroupKindsFieldBuilder()
+                      : null;
             } else {
               targetGroupKindsBuilder_.addAllMessages(other.targetGroupKinds_);
             }
@@ -3597,7 +4013,9 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -3606,16 +4024,21 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
-      private com.google.protobuf.LazyStringList targetNamespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      private com.google.protobuf.LazyStringList targetNamespaces_ =
+          com.google.protobuf.LazyStringArrayList.EMPTY;
+
       private void ensureTargetNamespacesIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
           targetNamespaces_ = new com.google.protobuf.LazyStringArrayList(targetNamespaces_);
           bitField0_ |= 0x00000001;
-         }
+        }
       }
       /**
+       *
+       *
        * 
        * (Filtering parameter) Any resource subject to substitution must be
        * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -3627,13 +4050,15 @@ private void ensureTargetNamespacesIsMutable() {
        * 
* * repeated string target_namespaces = 1; + * * @return A list containing the targetNamespaces. */ - public com.google.protobuf.ProtocolStringList - getTargetNamespacesList() { + public com.google.protobuf.ProtocolStringList getTargetNamespacesList() { return targetNamespaces_.getUnmodifiableView(); } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must be
        * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -3645,12 +4070,15 @@ private void ensureTargetNamespacesIsMutable() {
        * 
* * repeated string target_namespaces = 1; + * * @return The count of targetNamespaces. */ public int getTargetNamespacesCount() { return targetNamespaces_.size(); } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must be
        * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -3662,6 +4090,7 @@ public int getTargetNamespacesCount() {
        * 
* * repeated string target_namespaces = 1; + * * @param index The index of the element to return. * @return The targetNamespaces at the given index. */ @@ -3669,6 +4098,8 @@ public java.lang.String getTargetNamespaces(int index) { return targetNamespaces_.get(index); } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must be
        * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -3680,14 +4111,16 @@ public java.lang.String getTargetNamespaces(int index) {
        * 
* * repeated string target_namespaces = 1; + * * @param index The index of the value to return. * @return The bytes of the targetNamespaces at the given index. */ - public com.google.protobuf.ByteString - getTargetNamespacesBytes(int index) { + public com.google.protobuf.ByteString getTargetNamespacesBytes(int index) { return targetNamespaces_.getByteString(index); } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must be
        * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -3699,21 +4132,23 @@ public java.lang.String getTargetNamespaces(int index) {
        * 
* * repeated string target_namespaces = 1; + * * @param index The index to set the value at. * @param value The targetNamespaces to set. * @return This builder for chaining. */ - public Builder setTargetNamespaces( - int index, java.lang.String value) { + public Builder setTargetNamespaces(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTargetNamespacesIsMutable(); + throw new NullPointerException(); + } + ensureTargetNamespacesIsMutable(); targetNamespaces_.set(index, value); onChanged(); return this; } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must be
        * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -3725,20 +4160,22 @@ public Builder setTargetNamespaces(
        * 
* * repeated string target_namespaces = 1; + * * @param value The targetNamespaces to add. * @return This builder for chaining. */ - public Builder addTargetNamespaces( - java.lang.String value) { + public Builder addTargetNamespaces(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTargetNamespacesIsMutable(); + throw new NullPointerException(); + } + ensureTargetNamespacesIsMutable(); targetNamespaces_.add(value); onChanged(); return this; } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must be
        * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -3750,18 +4187,19 @@ public Builder addTargetNamespaces(
        * 
* * repeated string target_namespaces = 1; + * * @param values The targetNamespaces to add. * @return This builder for chaining. */ - public Builder addAllTargetNamespaces( - java.lang.Iterable values) { + public Builder addAllTargetNamespaces(java.lang.Iterable values) { ensureTargetNamespacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, targetNamespaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetNamespaces_); onChanged(); return this; } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must be
        * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -3773,6 +4211,7 @@ public Builder addAllTargetNamespaces(
        * 
* * repeated string target_namespaces = 1; + * * @return This builder for chaining. */ public Builder clearTargetNamespaces() { @@ -3782,6 +4221,8 @@ public Builder clearTargetNamespaces() { return this; } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must be
        * contained within one of the listed Kubernetes Namespace in the Backup.
@@ -3793,34 +4234,42 @@ public Builder clearTargetNamespaces() {
        * 
* * repeated string target_namespaces = 1; + * * @param value The bytes of the targetNamespaces to add. * @return This builder for chaining. */ - public Builder addTargetNamespacesBytes( - com.google.protobuf.ByteString value) { + public Builder addTargetNamespacesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTargetNamespacesIsMutable(); targetNamespaces_.add(value); onChanged(); return this; } - private java.util.List targetGroupKinds_ = - java.util.Collections.emptyList(); + private java.util.List + targetGroupKinds_ = java.util.Collections.emptyList(); + private void ensureTargetGroupKindsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - targetGroupKinds_ = new java.util.ArrayList(targetGroupKinds_); + targetGroupKinds_ = + new java.util.ArrayList( + targetGroupKinds_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> targetGroupKindsBuilder_; + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> + targetGroupKindsBuilder_; /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -3829,9 +4278,11 @@ private void ensureTargetGroupKindsIsMutable() {
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ - public java.util.List getTargetGroupKindsList() { + public java.util.List + getTargetGroupKindsList() { if (targetGroupKindsBuilder_ == null) { return java.util.Collections.unmodifiableList(targetGroupKinds_); } else { @@ -3839,6 +4290,8 @@ public java.util.List get } } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -3847,7 +4300,8 @@ public java.util.List get
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ public int getTargetGroupKindsCount() { if (targetGroupKindsBuilder_ == null) { @@ -3857,6 +4311,8 @@ public int getTargetGroupKindsCount() { } } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -3865,7 +4321,8 @@ public int getTargetGroupKindsCount() {
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getTargetGroupKinds(int index) { if (targetGroupKindsBuilder_ == null) { @@ -3875,6 +4332,8 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getTargetGroupKinds } } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -3883,7 +4342,8 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getTargetGroupKinds
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ public Builder setTargetGroupKinds( int index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { @@ -3900,6 +4360,8 @@ public Builder setTargetGroupKinds( return this; } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -3908,10 +4370,12 @@ public Builder setTargetGroupKinds(
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ public Builder setTargetGroupKinds( - int index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { + int index, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { if (targetGroupKindsBuilder_ == null) { ensureTargetGroupKindsIsMutable(); targetGroupKinds_.set(index, builderForValue.build()); @@ -3922,6 +4386,8 @@ public Builder setTargetGroupKinds( return this; } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -3930,9 +4396,11 @@ public Builder setTargetGroupKinds(
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ - public Builder addTargetGroupKinds(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { + public Builder addTargetGroupKinds( + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { if (targetGroupKindsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3946,6 +4414,8 @@ public Builder addTargetGroupKinds(com.google.cloud.gkebackup.v1.RestoreConfig.G return this; } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -3954,7 +4424,8 @@ public Builder addTargetGroupKinds(com.google.cloud.gkebackup.v1.RestoreConfig.G
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ public Builder addTargetGroupKinds( int index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { @@ -3971,6 +4442,8 @@ public Builder addTargetGroupKinds( return this; } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -3979,7 +4452,8 @@ public Builder addTargetGroupKinds(
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ public Builder addTargetGroupKinds( com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { @@ -3993,6 +4467,8 @@ public Builder addTargetGroupKinds( return this; } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4001,10 +4477,12 @@ public Builder addTargetGroupKinds(
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ public Builder addTargetGroupKinds( - int index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { + int index, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { if (targetGroupKindsBuilder_ == null) { ensureTargetGroupKindsIsMutable(); targetGroupKinds_.add(index, builderForValue.build()); @@ -4015,6 +4493,8 @@ public Builder addTargetGroupKinds( return this; } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4023,14 +4503,15 @@ public Builder addTargetGroupKinds(
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ public Builder addAllTargetGroupKinds( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (targetGroupKindsBuilder_ == null) { ensureTargetGroupKindsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, targetGroupKinds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetGroupKinds_); onChanged(); } else { targetGroupKindsBuilder_.addAllMessages(values); @@ -4038,6 +4519,8 @@ public Builder addAllTargetGroupKinds( return this; } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4046,7 +4529,8 @@ public Builder addAllTargetGroupKinds(
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ public Builder clearTargetGroupKinds() { if (targetGroupKindsBuilder_ == null) { @@ -4059,6 +4543,8 @@ public Builder clearTargetGroupKinds() { return this; } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4067,7 +4553,8 @@ public Builder clearTargetGroupKinds() {
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ public Builder removeTargetGroupKinds(int index) { if (targetGroupKindsBuilder_ == null) { @@ -4080,6 +4567,8 @@ public Builder removeTargetGroupKinds(int index) { return this; } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4088,13 +4577,16 @@ public Builder removeTargetGroupKinds(int index) {
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder getTargetGroupKindsBuilder( - int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder + getTargetGroupKindsBuilder(int index) { return getTargetGroupKindsFieldBuilder().getBuilder(index); } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4103,16 +4595,20 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder getTargetGr
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetGroupKindsOrBuilder( - int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder + getTargetGroupKindsOrBuilder(int index) { if (targetGroupKindsBuilder_ == null) { - return targetGroupKinds_.get(index); } else { + return targetGroupKinds_.get(index); + } else { return targetGroupKindsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4121,10 +4617,12 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetG
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ - public java.util.List - getTargetGroupKindsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> + getTargetGroupKindsOrBuilderList() { if (targetGroupKindsBuilder_ != null) { return targetGroupKindsBuilder_.getMessageOrBuilderList(); } else { @@ -4132,6 +4630,8 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetG } } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4140,13 +4640,17 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getTargetG
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder addTargetGroupKindsBuilder() { - return getTargetGroupKindsFieldBuilder().addBuilder( - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder + addTargetGroupKindsBuilder() { + return getTargetGroupKindsFieldBuilder() + .addBuilder(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()); } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4155,14 +4659,18 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder addTargetGr
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder addTargetGroupKindsBuilder( - int index) { - return getTargetGroupKindsFieldBuilder().addBuilder( - index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder + addTargetGroupKindsBuilder(int index) { + return getTargetGroupKindsFieldBuilder() + .addBuilder( + index, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()); } /** + * + * *
        * (Filtering parameter) Any resource subject to substitution must belong to
        * one of the listed "types".
@@ -4171,18 +4679,25 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder addTargetGr
        * candidates for substitution).
        * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2; + * */ - public java.util.List - getTargetGroupKindsBuilderList() { + public java.util.List + getTargetGroupKindsBuilderList() { return getTargetGroupKindsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> getTargetGroupKindsFieldBuilder() { if (targetGroupKindsBuilder_ == null) { - targetGroupKindsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder>( + targetGroupKindsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder>( targetGroupKinds_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -4194,6 +4709,8 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder addTargetGr private java.lang.Object targetJsonPath_ = ""; /** + * + * *
        * Required. This is a [JSONPath]
        * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
@@ -4205,13 +4722,13 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder addTargetGr
        * 
* * string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetJsonPath. */ public java.lang.String getTargetJsonPath() { java.lang.Object ref = targetJsonPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetJsonPath_ = s; return s; @@ -4220,6 +4737,8 @@ public java.lang.String getTargetJsonPath() { } } /** + * + * *
        * Required. This is a [JSONPath]
        * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
@@ -4231,15 +4750,14 @@ public java.lang.String getTargetJsonPath() {
        * 
* * string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetJsonPath. */ - public com.google.protobuf.ByteString - getTargetJsonPathBytes() { + public com.google.protobuf.ByteString getTargetJsonPathBytes() { java.lang.Object ref = targetJsonPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetJsonPath_ = b; return b; } else { @@ -4247,6 +4765,8 @@ public java.lang.String getTargetJsonPath() { } } /** + * + * *
        * Required. This is a [JSONPath]
        * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
@@ -4258,20 +4778,22 @@ public java.lang.String getTargetJsonPath() {
        * 
* * string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The targetJsonPath to set. * @return This builder for chaining. */ - public Builder setTargetJsonPath( - java.lang.String value) { + public Builder setTargetJsonPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetJsonPath_ = value; onChanged(); return this; } /** + * + * *
        * Required. This is a [JSONPath]
        * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
@@ -4283,15 +4805,18 @@ public Builder setTargetJsonPath(
        * 
* * string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTargetJsonPath() { - + targetJsonPath_ = getDefaultInstance().getTargetJsonPath(); onChanged(); return this; } /** + * + * *
        * Required. This is a [JSONPath]
        * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
@@ -4303,16 +4828,16 @@ public Builder clearTargetJsonPath() {
        * 
* * string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for targetJsonPath to set. * @return This builder for chaining. */ - public Builder setTargetJsonPathBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetJsonPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetJsonPath_ = value; onChanged(); return this; @@ -4320,6 +4845,8 @@ public Builder setTargetJsonPathBytes( private java.lang.Object originalValuePattern_ = ""; /** + * + * *
        * (Filtering parameter) This is a [regular expression]
        * (https://en.wikipedia.org/wiki/Regular_expression)
@@ -4333,13 +4860,13 @@ public Builder setTargetJsonPathBytes(
        * 
* * string original_value_pattern = 4; + * * @return The originalValuePattern. */ public java.lang.String getOriginalValuePattern() { java.lang.Object ref = originalValuePattern_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalValuePattern_ = s; return s; @@ -4348,6 +4875,8 @@ public java.lang.String getOriginalValuePattern() { } } /** + * + * *
        * (Filtering parameter) This is a [regular expression]
        * (https://en.wikipedia.org/wiki/Regular_expression)
@@ -4361,15 +4890,14 @@ public java.lang.String getOriginalValuePattern() {
        * 
* * string original_value_pattern = 4; + * * @return The bytes for originalValuePattern. */ - public com.google.protobuf.ByteString - getOriginalValuePatternBytes() { + public com.google.protobuf.ByteString getOriginalValuePatternBytes() { java.lang.Object ref = originalValuePattern_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); originalValuePattern_ = b; return b; } else { @@ -4377,6 +4905,8 @@ public java.lang.String getOriginalValuePattern() { } } /** + * + * *
        * (Filtering parameter) This is a [regular expression]
        * (https://en.wikipedia.org/wiki/Regular_expression)
@@ -4390,20 +4920,22 @@ public java.lang.String getOriginalValuePattern() {
        * 
* * string original_value_pattern = 4; + * * @param value The originalValuePattern to set. * @return This builder for chaining. */ - public Builder setOriginalValuePattern( - java.lang.String value) { + public Builder setOriginalValuePattern(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + originalValuePattern_ = value; onChanged(); return this; } /** + * + * *
        * (Filtering parameter) This is a [regular expression]
        * (https://en.wikipedia.org/wiki/Regular_expression)
@@ -4417,15 +4949,18 @@ public Builder setOriginalValuePattern(
        * 
* * string original_value_pattern = 4; + * * @return This builder for chaining. */ public Builder clearOriginalValuePattern() { - + originalValuePattern_ = getDefaultInstance().getOriginalValuePattern(); onChanged(); return this; } /** + * + * *
        * (Filtering parameter) This is a [regular expression]
        * (https://en.wikipedia.org/wiki/Regular_expression)
@@ -4439,16 +4974,16 @@ public Builder clearOriginalValuePattern() {
        * 
* * string original_value_pattern = 4; + * * @param value The bytes for originalValuePattern to set. * @return This builder for chaining. */ - public Builder setOriginalValuePatternBytes( - com.google.protobuf.ByteString value) { + public Builder setOriginalValuePatternBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + originalValuePattern_ = value; onChanged(); return this; @@ -4456,6 +4991,8 @@ public Builder setOriginalValuePatternBytes( private java.lang.Object newValue_ = ""; /** + * + * *
        * This is the new value to set for any fields that pass the filtering and
        * selection criteria. To remove a value from a Kubernetes resource, either
@@ -4463,13 +5000,13 @@ public Builder setOriginalValuePatternBytes(
        * 
* * string new_value = 5; + * * @return The newValue. */ public java.lang.String getNewValue() { java.lang.Object ref = newValue_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); newValue_ = s; return s; @@ -4478,6 +5015,8 @@ public java.lang.String getNewValue() { } } /** + * + * *
        * This is the new value to set for any fields that pass the filtering and
        * selection criteria. To remove a value from a Kubernetes resource, either
@@ -4485,15 +5024,14 @@ public java.lang.String getNewValue() {
        * 
* * string new_value = 5; + * * @return The bytes for newValue. */ - public com.google.protobuf.ByteString - getNewValueBytes() { + public com.google.protobuf.ByteString getNewValueBytes() { java.lang.Object ref = newValue_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); newValue_ = b; return b; } else { @@ -4501,6 +5039,8 @@ public java.lang.String getNewValue() { } } /** + * + * *
        * This is the new value to set for any fields that pass the filtering and
        * selection criteria. To remove a value from a Kubernetes resource, either
@@ -4508,20 +5048,22 @@ public java.lang.String getNewValue() {
        * 
* * string new_value = 5; + * * @param value The newValue to set. * @return This builder for chaining. */ - public Builder setNewValue( - java.lang.String value) { + public Builder setNewValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + newValue_ = value; onChanged(); return this; } /** + * + * *
        * This is the new value to set for any fields that pass the filtering and
        * selection criteria. To remove a value from a Kubernetes resource, either
@@ -4529,15 +5071,18 @@ public Builder setNewValue(
        * 
* * string new_value = 5; + * * @return This builder for chaining. */ public Builder clearNewValue() { - + newValue_ = getDefaultInstance().getNewValue(); onChanged(); return this; } /** + * + * *
        * This is the new value to set for any fields that pass the filtering and
        * selection criteria. To remove a value from a Kubernetes resource, either
@@ -4545,20 +5090,21 @@ public Builder clearNewValue() {
        * 
* * string new_value = 5; + * * @param value The bytes for newValue to set. * @return This builder for chaining. */ - public Builder setNewValueBytes( - com.google.protobuf.ByteString value) { + public Builder setNewValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + newValue_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4571,30 +5117,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule) - private static final com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule DEFAULT_INSTANCE; + private static final com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule(); } - public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getDefaultInstance() { + public static com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubstitutionRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubstitutionRule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubstitutionRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubstitutionRule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4606,22 +5154,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getDefaultInstanceForType() { + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int namespacedResourceRestoreScopeCase_ = 0; private java.lang.Object namespacedResourceRestoreScope_; + public enum NamespacedResourceRestoreScopeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ALL_NAMESPACES(5), SELECTED_NAMESPACES(6), SELECTED_APPLICATIONS(7), NAMESPACEDRESOURCERESTORESCOPE_NOT_SET(0); private final int value; + private NamespacedResourceRestoreScopeCase(int value) { this.value = value; } @@ -4637,58 +5188,81 @@ public static NamespacedResourceRestoreScopeCase valueOf(int value) { public static NamespacedResourceRestoreScopeCase forNumber(int value) { switch (value) { - case 5: return ALL_NAMESPACES; - case 6: return SELECTED_NAMESPACES; - case 7: return SELECTED_APPLICATIONS; - case 0: return NAMESPACEDRESOURCERESTORESCOPE_NOT_SET; - default: return null; + case 5: + return ALL_NAMESPACES; + case 6: + return SELECTED_NAMESPACES; + case 7: + return SELECTED_APPLICATIONS; + case 0: + return NAMESPACEDRESOURCERESTORESCOPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public NamespacedResourceRestoreScopeCase - getNamespacedResourceRestoreScopeCase() { - return NamespacedResourceRestoreScopeCase.forNumber( - namespacedResourceRestoreScopeCase_); + public NamespacedResourceRestoreScopeCase getNamespacedResourceRestoreScopeCase() { + return NamespacedResourceRestoreScopeCase.forNumber(namespacedResourceRestoreScopeCase_); } public static final int VOLUME_DATA_RESTORE_POLICY_FIELD_NUMBER = 1; private int volumeDataRestorePolicy_; /** + * + * *
    * Specifies the mechanism to be used to restore volume data.
    * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
    * NO_VOLUME_DATA_RESTORATION).
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; + * + * * @return The enum numeric value on the wire for volumeDataRestorePolicy. */ - @java.lang.Override public int getVolumeDataRestorePolicyValue() { + @java.lang.Override + public int getVolumeDataRestorePolicyValue() { return volumeDataRestorePolicy_; } /** + * + * *
    * Specifies the mechanism to be used to restore volume data.
    * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
    * NO_VOLUME_DATA_RESTORATION).
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; + * + * * @return The volumeDataRestorePolicy. */ - @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy getVolumeDataRestorePolicy() { + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy + getVolumeDataRestorePolicy() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy result = com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.valueOf(volumeDataRestorePolicy_); - return result == null ? com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.UNRECOGNIZED : result; + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy result = + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.valueOf( + volumeDataRestorePolicy_); + return result == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.UNRECOGNIZED + : result; } public static final int CLUSTER_RESOURCE_CONFLICT_POLICY_FIELD_NUMBER = 2; private int clusterResourceConflictPolicy_; /** + * + * *
    * Defines the behavior for handling the situation where cluster-scoped
    * resources being restored already exist in the target cluster. This MUST be
@@ -4696,13 +5270,19 @@ public int getNumber() {
    * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope] is not empty.
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; + * + * * @return The enum numeric value on the wire for clusterResourceConflictPolicy. */ - @java.lang.Override public int getClusterResourceConflictPolicyValue() { + @java.lang.Override + public int getClusterResourceConflictPolicyValue() { return clusterResourceConflictPolicy_; } /** + * + * *
    * Defines the behavior for handling the situation where cluster-scoped
    * resources being restored already exist in the target cluster. This MUST be
@@ -4710,55 +5290,87 @@ public int getNumber() {
    * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope] is not empty.
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; + * + * * @return The clusterResourceConflictPolicy. */ - @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy getClusterResourceConflictPolicy() { + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy + getClusterResourceConflictPolicy() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy result = com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.valueOf(clusterResourceConflictPolicy_); - return result == null ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.UNRECOGNIZED : result; + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy result = + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.valueOf( + clusterResourceConflictPolicy_); + return result == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.UNRECOGNIZED + : result; } public static final int NAMESPACED_RESOURCE_RESTORE_MODE_FIELD_NUMBER = 3; private int namespacedResourceRestoreMode_; /** + * + * *
    * Defines the behavior for handling the situation where sets of namespaced
    * resources being restored already exist in the target cluster. This MUST be
    * set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; + * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; + * + * * @return The enum numeric value on the wire for namespacedResourceRestoreMode. */ - @java.lang.Override public int getNamespacedResourceRestoreModeValue() { + @java.lang.Override + public int getNamespacedResourceRestoreModeValue() { return namespacedResourceRestoreMode_; } /** + * + * *
    * Defines the behavior for handling the situation where sets of namespaced
    * resources being restored already exist in the target cluster. This MUST be
    * set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; + * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; + * + * * @return The namespacedResourceRestoreMode. */ - @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode getNamespacedResourceRestoreMode() { + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode + getNamespacedResourceRestoreMode() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode result = com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.valueOf(namespacedResourceRestoreMode_); - return result == null ? com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.UNRECOGNIZED : result; + com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode result = + com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.valueOf( + namespacedResourceRestoreMode_); + return result == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.UNRECOGNIZED + : result; } public static final int CLUSTER_RESOURCE_RESTORE_SCOPE_FIELD_NUMBER = 4; - private com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope clusterResourceRestoreScope_; + private com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + clusterResourceRestoreScope_; /** + * + * *
    * Identifies the cluster-scoped resources to restore from the Backup.
    * Not specifying it means NO cluster resource will be restored.
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * * @return Whether the clusterResourceRestoreScope field is set. */ @java.lang.Override @@ -4766,39 +5378,56 @@ public boolean hasClusterResourceRestoreScope() { return clusterResourceRestoreScope_ != null; } /** + * + * *
    * Identifies the cluster-scoped resources to restore from the Backup.
    * Not specifying it means NO cluster resource will be restored.
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * * @return The clusterResourceRestoreScope. */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope getClusterResourceRestoreScope() { - return clusterResourceRestoreScope_ == null ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.getDefaultInstance() : clusterResourceRestoreScope_; + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + getClusterResourceRestoreScope() { + return clusterResourceRestoreScope_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + .getDefaultInstance() + : clusterResourceRestoreScope_; } /** + * + * *
    * Identifies the cluster-scoped resources to restore from the Backup.
    * Not specifying it means NO cluster resource will be restored.
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder getClusterResourceRestoreScopeOrBuilder() { + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder + getClusterResourceRestoreScopeOrBuilder() { return getClusterResourceRestoreScope(); } public static final int ALL_NAMESPACES_FIELD_NUMBER = 5; /** + * + * *
    * Restore all namespaced resources in the Backup if set to "True".
    * Specifying this field to "False" is an error.
    * 
* * bool all_namespaces = 5; + * * @return Whether the allNamespaces field is set. */ @java.lang.Override @@ -4806,12 +5435,15 @@ public boolean hasAllNamespaces() { return namespacedResourceRestoreScopeCase_ == 5; } /** + * + * *
    * Restore all namespaced resources in the Backup if set to "True".
    * Specifying this field to "False" is an error.
    * 
* * bool all_namespaces = 5; + * * @return The allNamespaces. */ @java.lang.Override @@ -4824,12 +5456,15 @@ public boolean getAllNamespaces() { public static final int SELECTED_NAMESPACES_FIELD_NUMBER = 6; /** + * + * *
    * A list of selected Namespaces to restore from the Backup. The listed
    * Namespaces and all resources contained in them will be restored.
    * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; + * * @return Whether the selectedNamespaces field is set. */ @java.lang.Override @@ -4837,22 +5472,27 @@ public boolean hasSelectedNamespaces() { return namespacedResourceRestoreScopeCase_ == 6; } /** + * + * *
    * A list of selected Namespaces to restore from the Backup. The listed
    * Namespaces and all resources contained in them will be restored.
    * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; + * * @return The selectedNamespaces. */ @java.lang.Override public com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces() { if (namespacedResourceRestoreScopeCase_ == 6) { - return (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_; + return (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_; } return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); } /** + * + * *
    * A list of selected Namespaces to restore from the Backup. The listed
    * Namespaces and all resources contained in them will be restored.
@@ -4863,13 +5503,15 @@ public com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces() {
   @java.lang.Override
   public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOrBuilder() {
     if (namespacedResourceRestoreScopeCase_ == 6) {
-       return (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_;
+      return (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_;
     }
     return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance();
   }
 
   public static final int SELECTED_APPLICATIONS_FIELD_NUMBER = 7;
   /**
+   *
+   *
    * 
    * A list of selected ProtectedApplications to restore. The listed
    * ProtectedApplications and all the resources to which they refer will be
@@ -4877,6 +5519,7 @@ public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOr
    * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; + * * @return Whether the selectedApplications field is set. */ @java.lang.Override @@ -4884,6 +5527,8 @@ public boolean hasSelectedApplications() { return namespacedResourceRestoreScopeCase_ == 7; } /** + * + * *
    * A list of selected ProtectedApplications to restore. The listed
    * ProtectedApplications and all the resources to which they refer will be
@@ -4891,16 +5536,19 @@ public boolean hasSelectedApplications() {
    * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; + * * @return The selectedApplications. */ @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications() { if (namespacedResourceRestoreScopeCase_ == 7) { - return (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_; + return (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_; } return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); } /** + * + * *
    * A list of selected ProtectedApplications to restore. The listed
    * ProtectedApplications and all the resources to which they refer will be
@@ -4912,14 +5560,17 @@ public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications() {
   @java.lang.Override
   public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder() {
     if (namespacedResourceRestoreScopeCase_ == 7) {
-       return (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_;
+      return (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_;
     }
     return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance();
   }
 
   public static final int SUBSTITUTION_RULES_FIELD_NUMBER = 8;
-  private java.util.List substitutionRules_;
+  private java.util.List
+      substitutionRules_;
   /**
+   *
+   *
    * 
    * A list of transformation rules to be applied against Kubernetes resources
    * as they are selected for restoration from a Backup. Rules are executed in
@@ -4928,13 +5579,18 @@ public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplica
    * substitution will occur.
    * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ @java.lang.Override - public java.util.List getSubstitutionRulesList() { + public java.util.List + getSubstitutionRulesList() { return substitutionRules_; } /** + * + * *
    * A list of transformation rules to be applied against Kubernetes resources
    * as they are selected for restoration from a Backup. Rules are executed in
@@ -4943,14 +5599,19 @@ public java.util.List
    *
-   * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8;
+   * 
+   * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8;
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder>
       getSubstitutionRulesOrBuilderList() {
     return substitutionRules_;
   }
   /**
+   *
+   *
    * 
    * A list of transformation rules to be applied against Kubernetes resources
    * as they are selected for restoration from a Backup. Rules are executed in
@@ -4959,13 +5620,17 @@ public java.util.List
    *
-   * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8;
+   * 
+   * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8;
+   * 
    */
   @java.lang.Override
   public int getSubstitutionRulesCount() {
     return substitutionRules_.size();
   }
   /**
+   *
+   *
    * 
    * A list of transformation rules to be applied against Kubernetes resources
    * as they are selected for restoration from a Backup. Rules are executed in
@@ -4974,13 +5639,18 @@ public int getSubstitutionRulesCount() {
    * substitution will occur.
    * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getSubstitutionRules(int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getSubstitutionRules( + int index) { return substitutionRules_.get(index); } /** + * + * *
    * A list of transformation rules to be applied against Kubernetes resources
    * as they are selected for restoration from a Backup. Rules are executed in
@@ -4989,15 +5659,18 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getSubstitut
    * substitution will occur.
    * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder getSubstitutionRulesOrBuilder( - int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder + getSubstitutionRulesOrBuilder(int index) { return substitutionRules_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5009,29 +5682,38 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (volumeDataRestorePolicy_ != com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (volumeDataRestorePolicy_ + != com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy + .VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED + .getNumber()) { output.writeEnum(1, volumeDataRestorePolicy_); } - if (clusterResourceConflictPolicy_ != com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED.getNumber()) { + if (clusterResourceConflictPolicy_ + != com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy + .CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED + .getNumber()) { output.writeEnum(2, clusterResourceConflictPolicy_); } - if (namespacedResourceRestoreMode_ != com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.getNumber()) { + if (namespacedResourceRestoreMode_ + != com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode + .NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, namespacedResourceRestoreMode_); } if (clusterResourceRestoreScope_ != null) { output.writeMessage(4, getClusterResourceRestoreScope()); } if (namespacedResourceRestoreScopeCase_ == 5) { - output.writeBool( - 5, (boolean)((java.lang.Boolean) namespacedResourceRestoreScope_)); + output.writeBool(5, (boolean) ((java.lang.Boolean) namespacedResourceRestoreScope_)); } if (namespacedResourceRestoreScopeCase_ == 6) { - output.writeMessage(6, (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_); + output.writeMessage( + 6, (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_); } if (namespacedResourceRestoreScopeCase_ == 7) { - output.writeMessage(7, (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_); + output.writeMessage( + 7, (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_); } for (int i = 0; i < substitutionRules_.size(); i++) { output.writeMessage(8, substitutionRules_.get(i)); @@ -5045,38 +5727,49 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (volumeDataRestorePolicy_ != com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, volumeDataRestorePolicy_); - } - if (clusterResourceConflictPolicy_ != com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, clusterResourceConflictPolicy_); - } - if (namespacedResourceRestoreMode_ != com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, namespacedResourceRestoreMode_); + if (volumeDataRestorePolicy_ + != com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy + .VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, volumeDataRestorePolicy_); + } + if (clusterResourceConflictPolicy_ + != com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy + .CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(2, clusterResourceConflictPolicy_); + } + if (namespacedResourceRestoreMode_ + != com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode + .NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(3, namespacedResourceRestoreMode_); } if (clusterResourceRestoreScope_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getClusterResourceRestoreScope()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getClusterResourceRestoreScope()); } if (namespacedResourceRestoreScopeCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 5, (boolean)((java.lang.Boolean) namespacedResourceRestoreScope_)); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 5, (boolean) ((java.lang.Boolean) namespacedResourceRestoreScope_)); } if (namespacedResourceRestoreScopeCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_); } if (namespacedResourceRestoreScopeCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_); } for (int i = 0; i < substitutionRules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, substitutionRules_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, substitutionRules_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5086,36 +5779,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.RestoreConfig)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.RestoreConfig other = (com.google.cloud.gkebackup.v1.RestoreConfig) obj; + com.google.cloud.gkebackup.v1.RestoreConfig other = + (com.google.cloud.gkebackup.v1.RestoreConfig) obj; if (volumeDataRestorePolicy_ != other.volumeDataRestorePolicy_) return false; if (clusterResourceConflictPolicy_ != other.clusterResourceConflictPolicy_) return false; if (namespacedResourceRestoreMode_ != other.namespacedResourceRestoreMode_) return false; if (hasClusterResourceRestoreScope() != other.hasClusterResourceRestoreScope()) return false; if (hasClusterResourceRestoreScope()) { - if (!getClusterResourceRestoreScope() - .equals(other.getClusterResourceRestoreScope())) return false; + if (!getClusterResourceRestoreScope().equals(other.getClusterResourceRestoreScope())) + return false; } - if (!getSubstitutionRulesList() - .equals(other.getSubstitutionRulesList())) return false; - if (!getNamespacedResourceRestoreScopeCase().equals(other.getNamespacedResourceRestoreScopeCase())) return false; + if (!getSubstitutionRulesList().equals(other.getSubstitutionRulesList())) return false; + if (!getNamespacedResourceRestoreScopeCase() + .equals(other.getNamespacedResourceRestoreScopeCase())) return false; switch (namespacedResourceRestoreScopeCase_) { case 5: - if (getAllNamespaces() - != other.getAllNamespaces()) return false; + if (getAllNamespaces() != other.getAllNamespaces()) return false; break; case 6: - if (!getSelectedNamespaces() - .equals(other.getSelectedNamespaces())) return false; + if (!getSelectedNamespaces().equals(other.getSelectedNamespaces())) return false; break; case 7: - if (!getSelectedApplications() - .equals(other.getSelectedApplications())) return false; + if (!getSelectedApplications().equals(other.getSelectedApplications())) return false; break; case 0: default: @@ -5148,8 +5839,7 @@ public int hashCode() { switch (namespacedResourceRestoreScopeCase_) { case 5: hash = (37 * hash) + ALL_NAMESPACES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllNamespaces()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllNamespaces()); break; case 6: hash = (37 * hash) + SELECTED_NAMESPACES_FIELD_NUMBER; @@ -5167,97 +5857,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestoreConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.RestoreConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.RestoreConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.RestoreConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration of a restore.
    * Next id: 9
@@ -5265,21 +5962,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.RestoreConfig)
       com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkebackup.v1.RestoreProto
+          .internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.RestoreProto
+          .internal_static_google_cloud_gkebackup_v1_RestoreConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.RestoreConfig.class, com.google.cloud.gkebackup.v1.RestoreConfig.Builder.class);
+              com.google.cloud.gkebackup.v1.RestoreConfig.class,
+              com.google.cloud.gkebackup.v1.RestoreConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.gkebackup.v1.RestoreConfig.newBuilder()
@@ -5287,17 +5986,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) {
         getSubstitutionRulesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -5325,9 +6024,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkebackup.v1.RestoreProto.internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkebackup.v1.RestoreProto
+          .internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor;
     }
 
     @java.lang.Override
@@ -5346,7 +6045,8 @@ public com.google.cloud.gkebackup.v1.RestoreConfig build() {
 
     @java.lang.Override
     public com.google.cloud.gkebackup.v1.RestoreConfig buildPartial() {
-      com.google.cloud.gkebackup.v1.RestoreConfig result = new com.google.cloud.gkebackup.v1.RestoreConfig(this);
+      com.google.cloud.gkebackup.v1.RestoreConfig result =
+          new com.google.cloud.gkebackup.v1.RestoreConfig(this);
       int from_bitField0_ = bitField0_;
       result.volumeDataRestorePolicy_ = volumeDataRestorePolicy_;
       result.clusterResourceConflictPolicy_ = clusterResourceConflictPolicy_;
@@ -5391,38 +6091,39 @@ public com.google.cloud.gkebackup.v1.RestoreConfig 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.cloud.gkebackup.v1.RestoreConfig) {
-        return mergeFrom((com.google.cloud.gkebackup.v1.RestoreConfig)other);
+        return mergeFrom((com.google.cloud.gkebackup.v1.RestoreConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -5461,30 +6162,35 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.RestoreConfig other) {
             substitutionRulesBuilder_ = null;
             substitutionRules_ = other.substitutionRules_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            substitutionRulesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSubstitutionRulesFieldBuilder() : null;
+            substitutionRulesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSubstitutionRulesFieldBuilder()
+                    : null;
           } else {
             substitutionRulesBuilder_.addAllMessages(other.substitutionRules_);
           }
         }
       }
       switch (other.getNamespacedResourceRestoreScopeCase()) {
-        case ALL_NAMESPACES: {
-          setAllNamespaces(other.getAllNamespaces());
-          break;
-        }
-        case SELECTED_NAMESPACES: {
-          mergeSelectedNamespaces(other.getSelectedNamespaces());
-          break;
-        }
-        case SELECTED_APPLICATIONS: {
-          mergeSelectedApplications(other.getSelectedApplications());
-          break;
-        }
-        case NAMESPACEDRESOURCERESTORESCOPE_NOT_SET: {
-          break;
-        }
+        case ALL_NAMESPACES:
+          {
+            setAllNamespaces(other.getAllNamespaces());
+            break;
+          }
+        case SELECTED_NAMESPACES:
+          {
+            mergeSelectedNamespaces(other.getSelectedNamespaces());
+            break;
+          }
+        case SELECTED_APPLICATIONS:
+          {
+            mergeSelectedApplications(other.getSelectedApplications());
+            break;
+          }
+        case NAMESPACEDRESOURCERESTORESCOPE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -5514,12 +6220,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int namespacedResourceRestoreScopeCase_ = 0;
     private java.lang.Object namespacedResourceRestoreScope_;
-    public NamespacedResourceRestoreScopeCase
-        getNamespacedResourceRestoreScopeCase() {
-      return NamespacedResourceRestoreScopeCase.forNumber(
-          namespacedResourceRestoreScopeCase_);
+
+    public NamespacedResourceRestoreScopeCase getNamespacedResourceRestoreScopeCase() {
+      return NamespacedResourceRestoreScopeCase.forNumber(namespacedResourceRestoreScopeCase_);
     }
 
     public Builder clearNamespacedResourceRestoreScope() {
@@ -5533,83 +6239,115 @@ public Builder clearNamespacedResourceRestoreScope() {
 
     private int volumeDataRestorePolicy_ = 0;
     /**
+     *
+     *
      * 
      * Specifies the mechanism to be used to restore volume data.
      * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
      * NO_VOLUME_DATA_RESTORATION).
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; + * + * * @return The enum numeric value on the wire for volumeDataRestorePolicy. */ - @java.lang.Override public int getVolumeDataRestorePolicyValue() { + @java.lang.Override + public int getVolumeDataRestorePolicyValue() { return volumeDataRestorePolicy_; } /** + * + * *
      * Specifies the mechanism to be used to restore volume data.
      * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
      * NO_VOLUME_DATA_RESTORATION).
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; + * + * * @param value The enum numeric value on the wire for volumeDataRestorePolicy to set. * @return This builder for chaining. */ public Builder setVolumeDataRestorePolicyValue(int value) { - + volumeDataRestorePolicy_ = value; onChanged(); return this; } /** + * + * *
      * Specifies the mechanism to be used to restore volume data.
      * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
      * NO_VOLUME_DATA_RESTORATION).
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; + * + * * @return The volumeDataRestorePolicy. */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy getVolumeDataRestorePolicy() { + public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy + getVolumeDataRestorePolicy() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy result = com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.valueOf(volumeDataRestorePolicy_); - return result == null ? com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.UNRECOGNIZED : result; + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy result = + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.valueOf( + volumeDataRestorePolicy_); + return result == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.UNRECOGNIZED + : result; } /** + * + * *
      * Specifies the mechanism to be used to restore volume data.
      * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
      * NO_VOLUME_DATA_RESTORATION).
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; + * + * * @param value The volumeDataRestorePolicy to set. * @return This builder for chaining. */ - public Builder setVolumeDataRestorePolicy(com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy value) { + public Builder setVolumeDataRestorePolicy( + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy value) { if (value == null) { throw new NullPointerException(); } - + volumeDataRestorePolicy_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Specifies the mechanism to be used to restore volume data.
      * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
      * NO_VOLUME_DATA_RESTORATION).
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; + * + * * @return This builder for chaining. */ public Builder clearVolumeDataRestorePolicy() { - + volumeDataRestorePolicy_ = 0; onChanged(); return this; @@ -5617,6 +6355,8 @@ public Builder clearVolumeDataRestorePolicy() { private int clusterResourceConflictPolicy_ = 0; /** + * + * *
      * Defines the behavior for handling the situation where cluster-scoped
      * resources being restored already exist in the target cluster. This MUST be
@@ -5624,13 +6364,19 @@ public Builder clearVolumeDataRestorePolicy() {
      * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope] is not empty.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; + * + * * @return The enum numeric value on the wire for clusterResourceConflictPolicy. */ - @java.lang.Override public int getClusterResourceConflictPolicyValue() { + @java.lang.Override + public int getClusterResourceConflictPolicyValue() { return clusterResourceConflictPolicy_; } /** + * + * *
      * Defines the behavior for handling the situation where cluster-scoped
      * resources being restored already exist in the target cluster. This MUST be
@@ -5638,17 +6384,22 @@ public Builder clearVolumeDataRestorePolicy() {
      * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope] is not empty.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; + * + * * @param value The enum numeric value on the wire for clusterResourceConflictPolicy to set. * @return This builder for chaining. */ public Builder setClusterResourceConflictPolicyValue(int value) { - + clusterResourceConflictPolicy_ = value; onChanged(); return this; } /** + * + * *
      * Defines the behavior for handling the situation where cluster-scoped
      * resources being restored already exist in the target cluster. This MUST be
@@ -5656,16 +6407,26 @@ public Builder setClusterResourceConflictPolicyValue(int value) {
      * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope] is not empty.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; + * + * * @return The clusterResourceConflictPolicy. */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy getClusterResourceConflictPolicy() { + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy + getClusterResourceConflictPolicy() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy result = com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.valueOf(clusterResourceConflictPolicy_); - return result == null ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.UNRECOGNIZED : result; + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy result = + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.valueOf( + clusterResourceConflictPolicy_); + return result == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.UNRECOGNIZED + : result; } /** + * + * *
      * Defines the behavior for handling the situation where cluster-scoped
      * resources being restored already exist in the target cluster. This MUST be
@@ -5673,20 +6434,26 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy
      * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope] is not empty.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; + * + * * @param value The clusterResourceConflictPolicy to set. * @return This builder for chaining. */ - public Builder setClusterResourceConflictPolicy(com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy value) { + public Builder setClusterResourceConflictPolicy( + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy value) { if (value == null) { throw new NullPointerException(); } - + clusterResourceConflictPolicy_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Defines the behavior for handling the situation where cluster-scoped
      * resources being restored already exist in the target cluster. This MUST be
@@ -5694,11 +6461,14 @@ public Builder setClusterResourceConflictPolicy(com.google.cloud.gkebackup.v1.Re
      * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope] is not empty.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; + * + * * @return This builder for chaining. */ public Builder clearClusterResourceConflictPolicy() { - + clusterResourceConflictPolicy_ = 0; onChanged(); return this; @@ -5706,128 +6476,183 @@ public Builder clearClusterResourceConflictPolicy() { private int namespacedResourceRestoreMode_ = 0; /** + * + * *
      * Defines the behavior for handling the situation where sets of namespaced
      * resources being restored already exist in the target cluster. This MUST be
      * set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; + * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; + * + * * @return The enum numeric value on the wire for namespacedResourceRestoreMode. */ - @java.lang.Override public int getNamespacedResourceRestoreModeValue() { + @java.lang.Override + public int getNamespacedResourceRestoreModeValue() { return namespacedResourceRestoreMode_; } /** + * + * *
      * Defines the behavior for handling the situation where sets of namespaced
      * resources being restored already exist in the target cluster. This MUST be
      * set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; + * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; + * + * * @param value The enum numeric value on the wire for namespacedResourceRestoreMode to set. * @return This builder for chaining. */ public Builder setNamespacedResourceRestoreModeValue(int value) { - + namespacedResourceRestoreMode_ = value; onChanged(); return this; } /** + * + * *
      * Defines the behavior for handling the situation where sets of namespaced
      * resources being restored already exist in the target cluster. This MUST be
      * set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; + * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; + * + * * @return The namespacedResourceRestoreMode. */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode getNamespacedResourceRestoreMode() { + public com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode + getNamespacedResourceRestoreMode() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode result = com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.valueOf(namespacedResourceRestoreMode_); - return result == null ? com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.UNRECOGNIZED : result; + com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode result = + com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.valueOf( + namespacedResourceRestoreMode_); + return result == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.UNRECOGNIZED + : result; } /** + * + * *
      * Defines the behavior for handling the situation where sets of namespaced
      * resources being restored already exist in the target cluster. This MUST be
      * set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; + * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; + * + * * @param value The namespacedResourceRestoreMode to set. * @return This builder for chaining. */ - public Builder setNamespacedResourceRestoreMode(com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode value) { + public Builder setNamespacedResourceRestoreMode( + com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode value) { if (value == null) { throw new NullPointerException(); } - + namespacedResourceRestoreMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Defines the behavior for handling the situation where sets of namespaced
      * resources being restored already exist in the target cluster. This MUST be
      * set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; + * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; + * + * * @return This builder for chaining. */ public Builder clearNamespacedResourceRestoreMode() { - + namespacedResourceRestoreMode_ = 0; onChanged(); return this; } - private com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope clusterResourceRestoreScope_; + private com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + clusterResourceRestoreScope_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope, com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder> clusterResourceRestoreScopeBuilder_; + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope, + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder> + clusterResourceRestoreScopeBuilder_; /** + * + * *
      * Identifies the cluster-scoped resources to restore from the Backup.
      * Not specifying it means NO cluster resource will be restored.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * * @return Whether the clusterResourceRestoreScope field is set. */ public boolean hasClusterResourceRestoreScope() { return clusterResourceRestoreScopeBuilder_ != null || clusterResourceRestoreScope_ != null; } /** + * + * *
      * Identifies the cluster-scoped resources to restore from the Backup.
      * Not specifying it means NO cluster resource will be restored.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * * @return The clusterResourceRestoreScope. */ - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope getClusterResourceRestoreScope() { + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + getClusterResourceRestoreScope() { if (clusterResourceRestoreScopeBuilder_ == null) { - return clusterResourceRestoreScope_ == null ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.getDefaultInstance() : clusterResourceRestoreScope_; + return clusterResourceRestoreScope_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + .getDefaultInstance() + : clusterResourceRestoreScope_; } else { return clusterResourceRestoreScopeBuilder_.getMessage(); } } /** + * + * *
      * Identifies the cluster-scoped resources to restore from the Backup.
      * Not specifying it means NO cluster resource will be restored.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * */ - public Builder setClusterResourceRestoreScope(com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope value) { + public Builder setClusterResourceRestoreScope( + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope value) { if (clusterResourceRestoreScopeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5841,15 +6666,20 @@ public Builder setClusterResourceRestoreScope(com.google.cloud.gkebackup.v1.Rest return this; } /** + * + * *
      * Identifies the cluster-scoped resources to restore from the Backup.
      * Not specifying it means NO cluster resource will be restored.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * */ public Builder setClusterResourceRestoreScope( - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder builderForValue) { + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder + builderForValue) { if (clusterResourceRestoreScopeBuilder_ == null) { clusterResourceRestoreScope_ = builderForValue.build(); onChanged(); @@ -5860,18 +6690,26 @@ public Builder setClusterResourceRestoreScope( return this; } /** + * + * *
      * Identifies the cluster-scoped resources to restore from the Backup.
      * Not specifying it means NO cluster resource will be restored.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * */ - public Builder mergeClusterResourceRestoreScope(com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope value) { + public Builder mergeClusterResourceRestoreScope( + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope value) { if (clusterResourceRestoreScopeBuilder_ == null) { if (clusterResourceRestoreScope_ != null) { clusterResourceRestoreScope_ = - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.newBuilder(clusterResourceRestoreScope_).mergeFrom(value).buildPartial(); + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.newBuilder( + clusterResourceRestoreScope_) + .mergeFrom(value) + .buildPartial(); } else { clusterResourceRestoreScope_ = value; } @@ -5883,12 +6721,16 @@ public Builder mergeClusterResourceRestoreScope(com.google.cloud.gkebackup.v1.Re return this; } /** + * + * *
      * Identifies the cluster-scoped resources to restore from the Backup.
      * Not specifying it means NO cluster resource will be restored.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * */ public Builder clearClusterResourceRestoreScope() { if (clusterResourceRestoreScopeBuilder_ == null) { @@ -5902,75 +6744,100 @@ public Builder clearClusterResourceRestoreScope() { return this; } /** + * + * *
      * Identifies the cluster-scoped resources to restore from the Backup.
      * Not specifying it means NO cluster resource will be restored.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder getClusterResourceRestoreScopeBuilder() { - + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder + getClusterResourceRestoreScopeBuilder() { + onChanged(); return getClusterResourceRestoreScopeFieldBuilder().getBuilder(); } /** + * + * *
      * Identifies the cluster-scoped resources to restore from the Backup.
      * Not specifying it means NO cluster resource will be restored.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder getClusterResourceRestoreScopeOrBuilder() { + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder + getClusterResourceRestoreScopeOrBuilder() { if (clusterResourceRestoreScopeBuilder_ != null) { return clusterResourceRestoreScopeBuilder_.getMessageOrBuilder(); } else { - return clusterResourceRestoreScope_ == null ? - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.getDefaultInstance() : clusterResourceRestoreScope_; + return clusterResourceRestoreScope_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + .getDefaultInstance() + : clusterResourceRestoreScope_; } } /** + * + * *
      * Identifies the cluster-scoped resources to restore from the Backup.
      * Not specifying it means NO cluster resource will be restored.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope, com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder> + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope, + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder> getClusterResourceRestoreScopeFieldBuilder() { if (clusterResourceRestoreScopeBuilder_ == null) { - clusterResourceRestoreScopeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope, com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder>( - getClusterResourceRestoreScope(), - getParentForChildren(), - isClean()); + clusterResourceRestoreScopeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope, + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder>( + getClusterResourceRestoreScope(), getParentForChildren(), isClean()); clusterResourceRestoreScope_ = null; } return clusterResourceRestoreScopeBuilder_; } /** + * + * *
      * Restore all namespaced resources in the Backup if set to "True".
      * Specifying this field to "False" is an error.
      * 
* * bool all_namespaces = 5; + * * @return Whether the allNamespaces field is set. */ public boolean hasAllNamespaces() { return namespacedResourceRestoreScopeCase_ == 5; } /** + * + * *
      * Restore all namespaced resources in the Backup if set to "True".
      * Specifying this field to "False" is an error.
      * 
* * bool all_namespaces = 5; + * * @return The allNamespaces. */ public boolean getAllNamespaces() { @@ -5980,12 +6847,15 @@ public boolean getAllNamespaces() { return false; } /** + * + * *
      * Restore all namespaced resources in the Backup if set to "True".
      * Specifying this field to "False" is an error.
      * 
* * bool all_namespaces = 5; + * * @param value The allNamespaces to set. * @return This builder for chaining. */ @@ -5996,12 +6866,15 @@ public Builder setAllNamespaces(boolean value) { return this; } /** + * + * *
      * Restore all namespaced resources in the Backup if set to "True".
      * Specifying this field to "False" is an error.
      * 
* * bool all_namespaces = 5; + * * @return This builder for chaining. */ public Builder clearAllNamespaces() { @@ -6014,14 +6887,20 @@ public Builder clearAllNamespaces() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, com.google.cloud.gkebackup.v1.NamespacesOrBuilder> selectedNamespacesBuilder_; + com.google.cloud.gkebackup.v1.Namespaces, + com.google.cloud.gkebackup.v1.Namespaces.Builder, + com.google.cloud.gkebackup.v1.NamespacesOrBuilder> + selectedNamespacesBuilder_; /** + * + * *
      * A list of selected Namespaces to restore from the Backup. The listed
      * Namespaces and all resources contained in them will be restored.
      * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; + * * @return Whether the selectedNamespaces field is set. */ @java.lang.Override @@ -6029,12 +6908,15 @@ public boolean hasSelectedNamespaces() { return namespacedResourceRestoreScopeCase_ == 6; } /** + * + * *
      * A list of selected Namespaces to restore from the Backup. The listed
      * Namespaces and all resources contained in them will be restored.
      * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; + * * @return The selectedNamespaces. */ @java.lang.Override @@ -6052,6 +6934,8 @@ public com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces() { } } /** + * + * *
      * A list of selected Namespaces to restore from the Backup. The listed
      * Namespaces and all resources contained in them will be restored.
@@ -6073,6 +6957,8 @@ public Builder setSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces va
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of selected Namespaces to restore from the Backup. The listed
      * Namespaces and all resources contained in them will be restored.
@@ -6092,6 +6978,8 @@ public Builder setSelectedNamespaces(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of selected Namespaces to restore from the Backup. The listed
      * Namespaces and all resources contained in them will be restored.
@@ -6101,10 +6989,14 @@ public Builder setSelectedNamespaces(
      */
     public Builder mergeSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces value) {
       if (selectedNamespacesBuilder_ == null) {
-        if (namespacedResourceRestoreScopeCase_ == 6 &&
-            namespacedResourceRestoreScope_ != com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance()) {
-          namespacedResourceRestoreScope_ = com.google.cloud.gkebackup.v1.Namespaces.newBuilder((com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_)
-              .mergeFrom(value).buildPartial();
+        if (namespacedResourceRestoreScopeCase_ == 6
+            && namespacedResourceRestoreScope_
+                != com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance()) {
+          namespacedResourceRestoreScope_ =
+              com.google.cloud.gkebackup.v1.Namespaces.newBuilder(
+                      (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           namespacedResourceRestoreScope_ = value;
         }
@@ -6120,6 +7012,8 @@ public Builder mergeSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of selected Namespaces to restore from the Backup. The listed
      * Namespaces and all resources contained in them will be restored.
@@ -6144,6 +7038,8 @@ public Builder clearSelectedNamespaces() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of selected Namespaces to restore from the Backup. The listed
      * Namespaces and all resources contained in them will be restored.
@@ -6155,6 +7051,8 @@ public com.google.cloud.gkebackup.v1.Namespaces.Builder getSelectedNamespacesBui
       return getSelectedNamespacesFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A list of selected Namespaces to restore from the Backup. The listed
      * Namespaces and all resources contained in them will be restored.
@@ -6174,6 +7072,8 @@ public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOr
       }
     }
     /**
+     *
+     *
      * 
      * A list of selected Namespaces to restore from the Backup. The listed
      * Namespaces and all resources contained in them will be restored.
@@ -6182,27 +7082,39 @@ public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOr
      * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, com.google.cloud.gkebackup.v1.NamespacesOrBuilder> 
+            com.google.cloud.gkebackup.v1.Namespaces,
+            com.google.cloud.gkebackup.v1.Namespaces.Builder,
+            com.google.cloud.gkebackup.v1.NamespacesOrBuilder>
         getSelectedNamespacesFieldBuilder() {
       if (selectedNamespacesBuilder_ == null) {
         if (!(namespacedResourceRestoreScopeCase_ == 6)) {
-          namespacedResourceRestoreScope_ = com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance();
+          namespacedResourceRestoreScope_ =
+              com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance();
         }
-        selectedNamespacesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, com.google.cloud.gkebackup.v1.NamespacesOrBuilder>(
+        selectedNamespacesBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.gkebackup.v1.Namespaces,
+                com.google.cloud.gkebackup.v1.Namespaces.Builder,
+                com.google.cloud.gkebackup.v1.NamespacesOrBuilder>(
                 (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_,
                 getParentForChildren(),
                 isClean());
         namespacedResourceRestoreScope_ = null;
       }
       namespacedResourceRestoreScopeCase_ = 6;
-      onChanged();;
+      onChanged();
+      ;
       return selectedNamespacesBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkebackup.v1.NamespacedNames, com.google.cloud.gkebackup.v1.NamespacedNames.Builder, com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> selectedApplicationsBuilder_;
+            com.google.cloud.gkebackup.v1.NamespacedNames,
+            com.google.cloud.gkebackup.v1.NamespacedNames.Builder,
+            com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>
+        selectedApplicationsBuilder_;
     /**
+     *
+     *
      * 
      * A list of selected ProtectedApplications to restore. The listed
      * ProtectedApplications and all the resources to which they refer will be
@@ -6210,6 +7122,7 @@ public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOr
      * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; + * * @return Whether the selectedApplications field is set. */ @java.lang.Override @@ -6217,6 +7130,8 @@ public boolean hasSelectedApplications() { return namespacedResourceRestoreScopeCase_ == 7; } /** + * + * *
      * A list of selected ProtectedApplications to restore. The listed
      * ProtectedApplications and all the resources to which they refer will be
@@ -6224,6 +7139,7 @@ public boolean hasSelectedApplications() {
      * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; + * * @return The selectedApplications. */ @java.lang.Override @@ -6241,6 +7157,8 @@ public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications() { } } /** + * + * *
      * A list of selected ProtectedApplications to restore. The listed
      * ProtectedApplications and all the resources to which they refer will be
@@ -6263,6 +7181,8 @@ public Builder setSelectedApplications(com.google.cloud.gkebackup.v1.NamespacedN
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of selected ProtectedApplications to restore. The listed
      * ProtectedApplications and all the resources to which they refer will be
@@ -6283,6 +7203,8 @@ public Builder setSelectedApplications(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of selected ProtectedApplications to restore. The listed
      * ProtectedApplications and all the resources to which they refer will be
@@ -6293,10 +7215,15 @@ public Builder setSelectedApplications(
      */
     public Builder mergeSelectedApplications(com.google.cloud.gkebackup.v1.NamespacedNames value) {
       if (selectedApplicationsBuilder_ == null) {
-        if (namespacedResourceRestoreScopeCase_ == 7 &&
-            namespacedResourceRestoreScope_ != com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance()) {
-          namespacedResourceRestoreScope_ = com.google.cloud.gkebackup.v1.NamespacedNames.newBuilder((com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_)
-              .mergeFrom(value).buildPartial();
+        if (namespacedResourceRestoreScopeCase_ == 7
+            && namespacedResourceRestoreScope_
+                != com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance()) {
+          namespacedResourceRestoreScope_ =
+              com.google.cloud.gkebackup.v1.NamespacedNames.newBuilder(
+                      (com.google.cloud.gkebackup.v1.NamespacedNames)
+                          namespacedResourceRestoreScope_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           namespacedResourceRestoreScope_ = value;
         }
@@ -6312,6 +7239,8 @@ public Builder mergeSelectedApplications(com.google.cloud.gkebackup.v1.Namespace
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of selected ProtectedApplications to restore. The listed
      * ProtectedApplications and all the resources to which they refer will be
@@ -6337,6 +7266,8 @@ public Builder clearSelectedApplications() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of selected ProtectedApplications to restore. The listed
      * ProtectedApplications and all the resources to which they refer will be
@@ -6349,6 +7280,8 @@ public com.google.cloud.gkebackup.v1.NamespacedNames.Builder getSelectedApplicat
       return getSelectedApplicationsFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A list of selected ProtectedApplications to restore. The listed
      * ProtectedApplications and all the resources to which they refer will be
@@ -6358,7 +7291,8 @@ public com.google.cloud.gkebackup.v1.NamespacedNames.Builder getSelectedApplicat
      * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7;
      */
     @java.lang.Override
-    public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder() {
+    public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder
+        getSelectedApplicationsOrBuilder() {
       if ((namespacedResourceRestoreScopeCase_ == 7) && (selectedApplicationsBuilder_ != null)) {
         return selectedApplicationsBuilder_.getMessageOrBuilder();
       } else {
@@ -6369,6 +7303,8 @@ public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplica
       }
     }
     /**
+     *
+     *
      * 
      * A list of selected ProtectedApplications to restore. The listed
      * ProtectedApplications and all the resources to which they refer will be
@@ -6378,37 +7314,52 @@ public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplica
      * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkebackup.v1.NamespacedNames, com.google.cloud.gkebackup.v1.NamespacedNames.Builder, com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> 
+            com.google.cloud.gkebackup.v1.NamespacedNames,
+            com.google.cloud.gkebackup.v1.NamespacedNames.Builder,
+            com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>
         getSelectedApplicationsFieldBuilder() {
       if (selectedApplicationsBuilder_ == null) {
         if (!(namespacedResourceRestoreScopeCase_ == 7)) {
-          namespacedResourceRestoreScope_ = com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance();
+          namespacedResourceRestoreScope_ =
+              com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance();
         }
-        selectedApplicationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkebackup.v1.NamespacedNames, com.google.cloud.gkebackup.v1.NamespacedNames.Builder, com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>(
+        selectedApplicationsBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.gkebackup.v1.NamespacedNames,
+                com.google.cloud.gkebackup.v1.NamespacedNames.Builder,
+                com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>(
                 (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_,
                 getParentForChildren(),
                 isClean());
         namespacedResourceRestoreScope_ = null;
       }
       namespacedResourceRestoreScopeCase_ = 7;
-      onChanged();;
+      onChanged();
+      ;
       return selectedApplicationsBuilder_;
     }
 
-    private java.util.List substitutionRules_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        substitutionRules_ = java.util.Collections.emptyList();
+
     private void ensureSubstitutionRulesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        substitutionRules_ = new java.util.ArrayList(substitutionRules_);
+        substitutionRules_ =
+            new java.util.ArrayList(
+                substitutionRules_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder> substitutionRulesBuilder_;
+            com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule,
+            com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder,
+            com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder>
+        substitutionRulesBuilder_;
 
     /**
+     *
+     *
      * 
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -6417,9 +7368,12 @@ private void ensureSubstitutionRulesIsMutable() {
      * substitution will occur.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ - public java.util.List getSubstitutionRulesList() { + public java.util.List + getSubstitutionRulesList() { if (substitutionRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(substitutionRules_); } else { @@ -6427,6 +7381,8 @@ public java.util.List * A list of transformation rules to be applied against Kubernetes resources * as they are selected for restoration from a Backup. Rules are executed in @@ -6435,7 +7391,9 @@ public java.util.List * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ public int getSubstitutionRulesCount() { if (substitutionRulesBuilder_ == null) { @@ -6445,6 +7403,8 @@ public int getSubstitutionRulesCount() { } } /** + * + * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -6453,9 +7413,12 @@ public int getSubstitutionRulesCount() {
      * substitution will occur.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getSubstitutionRules(int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getSubstitutionRules( + int index) { if (substitutionRulesBuilder_ == null) { return substitutionRules_.get(index); } else { @@ -6463,6 +7426,8 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getSubstitut } } /** + * + * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -6471,7 +7436,9 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getSubstitut
      * substitution will occur.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ public Builder setSubstitutionRules( int index, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule value) { @@ -6488,6 +7455,8 @@ public Builder setSubstitutionRules( return this; } /** + * + * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -6496,10 +7465,13 @@ public Builder setSubstitutionRules(
      * substitution will occur.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ public Builder setSubstitutionRules( - int index, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder builderForValue) { + int index, + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder builderForValue) { if (substitutionRulesBuilder_ == null) { ensureSubstitutionRulesIsMutable(); substitutionRules_.set(index, builderForValue.build()); @@ -6510,6 +7482,8 @@ public Builder setSubstitutionRules( return this; } /** + * + * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -6518,9 +7492,12 @@ public Builder setSubstitutionRules(
      * substitution will occur.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ - public Builder addSubstitutionRules(com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule value) { + public Builder addSubstitutionRules( + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule value) { if (substitutionRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6534,6 +7511,8 @@ public Builder addSubstitutionRules(com.google.cloud.gkebackup.v1.RestoreConfig. return this; } /** + * + * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -6542,7 +7521,9 @@ public Builder addSubstitutionRules(com.google.cloud.gkebackup.v1.RestoreConfig.
      * substitution will occur.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ public Builder addSubstitutionRules( int index, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule value) { @@ -6559,6 +7540,8 @@ public Builder addSubstitutionRules( return this; } /** + * + * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -6567,7 +7550,9 @@ public Builder addSubstitutionRules(
      * substitution will occur.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ public Builder addSubstitutionRules( com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder builderForValue) { @@ -6581,6 +7566,8 @@ public Builder addSubstitutionRules( return this; } /** + * + * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -6589,10 +7576,13 @@ public Builder addSubstitutionRules(
      * substitution will occur.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ public Builder addSubstitutionRules( - int index, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder builderForValue) { + int index, + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder builderForValue) { if (substitutionRulesBuilder_ == null) { ensureSubstitutionRulesIsMutable(); substitutionRules_.add(index, builderForValue.build()); @@ -6603,6 +7593,8 @@ public Builder addSubstitutionRules( return this; } /** + * + * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -6611,14 +7603,16 @@ public Builder addSubstitutionRules(
      * substitution will occur.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ public Builder addAllSubstitutionRules( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (substitutionRulesBuilder_ == null) { ensureSubstitutionRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, substitutionRules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, substitutionRules_); onChanged(); } else { substitutionRulesBuilder_.addAllMessages(values); @@ -6626,6 +7620,8 @@ public Builder addAllSubstitutionRules( return this; } /** + * + * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -6634,7 +7630,9 @@ public Builder addAllSubstitutionRules(
      * substitution will occur.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ public Builder clearSubstitutionRules() { if (substitutionRulesBuilder_ == null) { @@ -6647,6 +7645,8 @@ public Builder clearSubstitutionRules() { return this; } /** + * + * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -6655,7 +7655,9 @@ public Builder clearSubstitutionRules() {
      * substitution will occur.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ public Builder removeSubstitutionRules(int index) { if (substitutionRulesBuilder_ == null) { @@ -6668,6 +7670,8 @@ public Builder removeSubstitutionRules(int index) { return this; } /** + * + * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -6676,13 +7680,17 @@ public Builder removeSubstitutionRules(int index) {
      * substitution will occur.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder getSubstitutionRulesBuilder( - int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder + getSubstitutionRulesBuilder(int index) { return getSubstitutionRulesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -6691,16 +7699,21 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder getS
      * substitution will occur.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder getSubstitutionRulesOrBuilder( - int index) { + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder + getSubstitutionRulesOrBuilder(int index) { if (substitutionRulesBuilder_ == null) { - return substitutionRules_.get(index); } else { + return substitutionRules_.get(index); + } else { return substitutionRulesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -6709,10 +7722,13 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder get
      * substitution will occur.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ - public java.util.List - getSubstitutionRulesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder> + getSubstitutionRulesOrBuilderList() { if (substitutionRulesBuilder_ != null) { return substitutionRulesBuilder_.getMessageOrBuilderList(); } else { @@ -6720,6 +7736,8 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder get } } /** + * + * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -6728,13 +7746,19 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder get
      * substitution will occur.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder addSubstitutionRulesBuilder() { - return getSubstitutionRulesFieldBuilder().addBuilder( - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder + addSubstitutionRulesBuilder() { + return getSubstitutionRulesFieldBuilder() + .addBuilder( + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.getDefaultInstance()); } /** + * + * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -6743,14 +7767,20 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder addS
      * substitution will occur.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder addSubstitutionRulesBuilder( - int index) { - return getSubstitutionRulesFieldBuilder().addBuilder( - index, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder + addSubstitutionRulesBuilder(int index) { + return getSubstitutionRulesFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.getDefaultInstance()); } /** + * + * *
      * A list of transformation rules to be applied against Kubernetes resources
      * as they are selected for restoration from a Backup. Rules are executed in
@@ -6759,18 +7789,26 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder addS
      * substitution will occur.
      * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ - public java.util.List - getSubstitutionRulesBuilderList() { + public java.util.List + getSubstitutionRulesBuilderList() { return getSubstitutionRulesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder> + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule, + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder> getSubstitutionRulesFieldBuilder() { if (substitutionRulesBuilder_ == null) { - substitutionRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder>( + substitutionRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule, + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder>( substitutionRules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -6779,9 +7817,9 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder addS } return substitutionRulesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6791,12 +7829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.RestoreConfig) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.RestoreConfig) private static final com.google.cloud.gkebackup.v1.RestoreConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.RestoreConfig(); } @@ -6805,16 +7843,16 @@ public static com.google.cloud.gkebackup.v1.RestoreConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestoreConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RestoreConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RestoreConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6829,6 +7867,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.RestoreConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfigOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfigOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfigOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfigOrBuilder.java index e71fbb1..32ac4d0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfigOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfigOrBuilder.java @@ -1,36 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/restore.proto package com.google.cloud.gkebackup.v1; -public interface RestoreConfigOrBuilder extends +public interface RestoreConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.RestoreConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Specifies the mechanism to be used to restore volume data.
    * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
    * NO_VOLUME_DATA_RESTORATION).
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; + * + * * @return The enum numeric value on the wire for volumeDataRestorePolicy. */ int getVolumeDataRestorePolicyValue(); /** + * + * *
    * Specifies the mechanism to be used to restore volume data.
    * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
    * NO_VOLUME_DATA_RESTORATION).
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1; + * + * * @return The volumeDataRestorePolicy. */ com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy getVolumeDataRestorePolicy(); /** + * + * *
    * Defines the behavior for handling the situation where cluster-scoped
    * resources being restored already exist in the target cluster. This MUST be
@@ -38,11 +66,16 @@ public interface RestoreConfigOrBuilder extends
    * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope] is not empty.
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; + * + * * @return The enum numeric value on the wire for clusterResourceConflictPolicy. */ int getClusterResourceConflictPolicyValue(); /** + * + * *
    * Defines the behavior for handling the situation where cluster-scoped
    * resources being restored already exist in the target cluster. This MUST be
@@ -50,106 +83,151 @@ public interface RestoreConfigOrBuilder extends
    * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope] is not empty.
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2; + * + * * @return The clusterResourceConflictPolicy. */ - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy getClusterResourceConflictPolicy(); + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy + getClusterResourceConflictPolicy(); /** + * + * *
    * Defines the behavior for handling the situation where sets of namespaced
    * resources being restored already exist in the target cluster. This MUST be
    * set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; + * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; + * + * * @return The enum numeric value on the wire for namespacedResourceRestoreMode. */ int getNamespacedResourceRestoreModeValue(); /** + * + * *
    * Defines the behavior for handling the situation where sets of namespaced
    * resources being restored already exist in the target cluster. This MUST be
    * set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; + * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3; + * + * * @return The namespacedResourceRestoreMode. */ - com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode getNamespacedResourceRestoreMode(); + com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode + getNamespacedResourceRestoreMode(); /** + * + * *
    * Identifies the cluster-scoped resources to restore from the Backup.
    * Not specifying it means NO cluster resource will be restored.
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * * @return Whether the clusterResourceRestoreScope field is set. */ boolean hasClusterResourceRestoreScope(); /** + * + * *
    * Identifies the cluster-scoped resources to restore from the Backup.
    * Not specifying it means NO cluster resource will be restored.
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * * @return The clusterResourceRestoreScope. */ - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope getClusterResourceRestoreScope(); + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + getClusterResourceRestoreScope(); /** + * + * *
    * Identifies the cluster-scoped resources to restore from the Backup.
    * Not specifying it means NO cluster resource will be restored.
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4; + * */ - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder getClusterResourceRestoreScopeOrBuilder(); + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder + getClusterResourceRestoreScopeOrBuilder(); /** + * + * *
    * Restore all namespaced resources in the Backup if set to "True".
    * Specifying this field to "False" is an error.
    * 
* * bool all_namespaces = 5; + * * @return Whether the allNamespaces field is set. */ boolean hasAllNamespaces(); /** + * + * *
    * Restore all namespaced resources in the Backup if set to "True".
    * Specifying this field to "False" is an error.
    * 
* * bool all_namespaces = 5; + * * @return The allNamespaces. */ boolean getAllNamespaces(); /** + * + * *
    * A list of selected Namespaces to restore from the Backup. The listed
    * Namespaces and all resources contained in them will be restored.
    * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; + * * @return Whether the selectedNamespaces field is set. */ boolean hasSelectedNamespaces(); /** + * + * *
    * A list of selected Namespaces to restore from the Backup. The listed
    * Namespaces and all resources contained in them will be restored.
    * 
* * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; + * * @return The selectedNamespaces. */ com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces(); /** + * + * *
    * A list of selected Namespaces to restore from the Backup. The listed
    * Namespaces and all resources contained in them will be restored.
@@ -160,6 +238,8 @@ public interface RestoreConfigOrBuilder extends
   com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOrBuilder();
 
   /**
+   *
+   *
    * 
    * A list of selected ProtectedApplications to restore. The listed
    * ProtectedApplications and all the resources to which they refer will be
@@ -167,10 +247,13 @@ public interface RestoreConfigOrBuilder extends
    * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; + * * @return Whether the selectedApplications field is set. */ boolean hasSelectedApplications(); /** + * + * *
    * A list of selected ProtectedApplications to restore. The listed
    * ProtectedApplications and all the resources to which they refer will be
@@ -178,10 +261,13 @@ public interface RestoreConfigOrBuilder extends
    * 
* * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; + * * @return The selectedApplications. */ com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications(); /** + * + * *
    * A list of selected ProtectedApplications to restore. The listed
    * ProtectedApplications and all the resources to which they refer will be
@@ -193,6 +279,8 @@ public interface RestoreConfigOrBuilder extends
   com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder();
 
   /**
+   *
+   *
    * 
    * A list of transformation rules to be applied against Kubernetes resources
    * as they are selected for restoration from a Backup. Rules are executed in
@@ -201,11 +289,15 @@ public interface RestoreConfigOrBuilder extends
    * substitution will occur.
    * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ - java.util.List + java.util.List getSubstitutionRulesList(); /** + * + * *
    * A list of transformation rules to be applied against Kubernetes resources
    * as they are selected for restoration from a Backup. Rules are executed in
@@ -214,10 +306,14 @@ public interface RestoreConfigOrBuilder extends
    * substitution will occur.
    * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getSubstitutionRules(int index); /** + * + * *
    * A list of transformation rules to be applied against Kubernetes resources
    * as they are selected for restoration from a Backup. Rules are executed in
@@ -226,10 +322,14 @@ public interface RestoreConfigOrBuilder extends
    * substitution will occur.
    * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ int getSubstitutionRulesCount(); /** + * + * *
    * A list of transformation rules to be applied against Kubernetes resources
    * as they are selected for restoration from a Backup. Rules are executed in
@@ -238,11 +338,15 @@ public interface RestoreConfigOrBuilder extends
    * substitution will occur.
    * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ - java.util.List + java.util.List getSubstitutionRulesOrBuilderList(); /** + * + * *
    * A list of transformation rules to be applied against Kubernetes resources
    * as they are selected for restoration from a Backup. Rules are executed in
@@ -251,10 +355,13 @@ public interface RestoreConfigOrBuilder extends
    * substitution will occur.
    * 
* - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8; + * */ - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder getSubstitutionRulesOrBuilder( - int index); + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder + getSubstitutionRulesOrBuilder(int index); - public com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreScopeCase getNamespacedResourceRestoreScopeCase(); + public com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreScopeCase + getNamespacedResourceRestoreScopeCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreName.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreName.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreOrBuilder.java index 5c941d2..eb897be 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreOrBuilder.java @@ -1,134 +1,189 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/restore.proto package com.google.cloud.gkebackup.v1; -public interface RestoreOrBuilder extends +public interface RestoreOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.Restore) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The full name of the Restore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The full name of the Restore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*
    * 
* * 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. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. The timestamp when this Restore resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The timestamp when this Restore resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The timestamp when this Restore resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The timestamp when this Restore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The timestamp when this Restore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The timestamp when this Restore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * User specified descriptive string for this Restore.
    * 
* * string description = 5; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * User specified descriptive string for this Restore.
    * 
* * string description = 5; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore
    * will restore. Note that this Backup must be a sub-resource of the
@@ -136,11 +191,16 @@ public interface RestoreOrBuilder extends
    * Format: projects/*/locations/*/backupPlans/*/backups/*.
    * 
* - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The backup. */ java.lang.String getBackup(); /** + * + * *
    * Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore
    * will restore. Note that this Backup must be a sub-resource of the
@@ -148,13 +208,17 @@ public interface RestoreOrBuilder extends
    * Format: projects/*/locations/*/backupPlans/*/backups/*.
    * 
* - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for backup. */ - com.google.protobuf.ByteString - getBackupBytes(); + com.google.protobuf.ByteString getBackupBytes(); /** + * + * *
    * Output only. The target cluster into which this Restore will restore data.
    * Valid formats:
@@ -163,11 +227,16 @@ public interface RestoreOrBuilder extends
    * Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
    * 
* - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The cluster. */ java.lang.String getCluster(); /** + * + * *
    * Output only. The target cluster into which this Restore will restore data.
    * Valid formats:
@@ -176,43 +245,61 @@ public interface RestoreOrBuilder extends
    * Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
    * 
* - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for cluster. */ - com.google.protobuf.ByteString - getClusterBytes(); + com.google.protobuf.ByteString getClusterBytes(); /** + * + * *
    * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
    * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the restoreConfig field is set. */ boolean hasRestoreConfig(); /** + * + * *
    * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
    * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The restoreConfig. */ com.google.cloud.gkebackup.v1.RestoreConfig getRestoreConfig(); /** + * + * *
    * Output only. Configuration of the Restore.  Inherited from parent RestorePlan's
    * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBuilder(); /** + * + * *
    * A set of custom labels supplied by user.
    * 
@@ -221,30 +308,31 @@ public interface RestoreOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 9; */ - 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(); /** + * + * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 9; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * A set of custom labels supplied by user.
    * 
@@ -253,129 +341,172 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 9; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Output only. The current state of the Restore.
    * 
* - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current state of the Restore.
    * 
* - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.gkebackup.v1.Restore.State getState(); /** + * + * *
    * Output only. Human-readable description of why the Restore is in its current state.
    * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stateReason. */ java.lang.String getStateReason(); /** + * + * *
    * Output only. Human-readable description of why the Restore is in its current state.
    * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stateReason. */ - com.google.protobuf.ByteString - getStateReasonBytes(); + com.google.protobuf.ByteString getStateReasonBytes(); /** + * + * *
    * Output only. Timestamp of when the restore operation completed.
    * 
* - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the completeTime field is set. */ boolean hasCompleteTime(); /** + * + * *
    * Output only. Timestamp of when the restore operation completed.
    * 
* - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The completeTime. */ com.google.protobuf.Timestamp getCompleteTime(); /** + * + * *
    * Output only. Timestamp of when the restore operation completed.
    * 
* - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder(); /** + * + * *
    * Output only. Number of resources restored during the restore execution.
    * 
* * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The resourcesRestoredCount. */ int getResourcesRestoredCount(); /** + * + * *
    * Output only. Number of resources excluded during the restore execution.
    * 
* * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The resourcesExcludedCount. */ int getResourcesExcludedCount(); /** + * + * *
    * Output only. Number of resources that failed to be restored during the restore
    * execution.
    * 
* * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The resourcesFailedCount. */ int getResourcesFailedCount(); /** + * + * *
    * Output only. Number of volumes restored during the restore execution.
    * 
* * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The volumesRestoredCount. */ int getVolumesRestoredCount(); /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a restore from overwriting each other.
@@ -388,10 +519,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a restore from overwriting each other.
@@ -404,8 +538,8 @@ java.lang.String getLabelsOrThrow(
    * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlan.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlan.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlan.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlan.java index 6621c9c..642260e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlan.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlan.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/restore_plan.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * The configuration of a potential series of Restore operations to be performed
  * against Backups belong to a particular BackupPlan.
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.gkebackup.v1.RestorePlan}
  */
-public final class RestorePlan extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RestorePlan extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.RestorePlan)
     RestorePlanOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RestorePlan.newBuilder() to construct.
   private RestorePlan(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RestorePlan() {
     name_ = "";
     uid_ = "";
@@ -32,16 +50,15 @@ private RestorePlan() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RestorePlan();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RestorePlan(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -61,101 +78,114 @@ private RestorePlan(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            uid_ = s;
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
-            }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+              uid_ = s;
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 34:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            description_ = s;
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
+              description_ = s;
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            backupPlan_ = s;
-            break;
-          }
-          case 58: {
-            java.lang.String s = input.readStringRequireUtf8();
+              backupPlan_ = s;
+              break;
+            }
+          case 58:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            cluster_ = s;
-            break;
-          }
-          case 66: {
-            com.google.cloud.gkebackup.v1.RestoreConfig.Builder subBuilder = null;
-            if (restoreConfig_ != null) {
-              subBuilder = restoreConfig_.toBuilder();
+              cluster_ = s;
+              break;
             }
-            restoreConfig_ = input.readMessage(com.google.cloud.gkebackup.v1.RestoreConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(restoreConfig_);
-              restoreConfig_ = subBuilder.buildPartial();
+          case 66:
+            {
+              com.google.cloud.gkebackup.v1.RestoreConfig.Builder subBuilder = null;
+              if (restoreConfig_ != null) {
+                subBuilder = restoreConfig_.toBuilder();
+              }
+              restoreConfig_ =
+                  input.readMessage(
+                      com.google.cloud.gkebackup.v1.RestoreConfig.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(restoreConfig_);
+                restoreConfig_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 74: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+          case 74:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 82: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 82:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            etag_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              etag_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -163,47 +193,51 @@ private RestorePlan(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkebackup.v1.RestorePlanProto.internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkebackup.v1.RestorePlanProto
+        .internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 9:
         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.cloud.gkebackup.v1.RestorePlanProto.internal_static_google_cloud_gkebackup_v1_RestorePlan_fieldAccessorTable
+    return com.google.cloud.gkebackup.v1.RestorePlanProto
+        .internal_static_google_cloud_gkebackup_v1_RestorePlan_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkebackup.v1.RestorePlan.class, com.google.cloud.gkebackup.v1.RestorePlan.Builder.class);
+            com.google.cloud.gkebackup.v1.RestorePlan.class,
+            com.google.cloud.gkebackup.v1.RestorePlan.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. The full name of the RestorePlan resource.
    * Format: projects/*/locations/*/restorePlans/*.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -212,30 +246,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 full name of the RestorePlan resource.
    * Format: projects/*/locations/*/restorePlans/*.
    * 
* * 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 { @@ -246,12 +280,15 @@ public java.lang.String getName() { public static final int UID_FIELD_NUMBER = 2; private volatile java.lang.Object uid_; /** + * + * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -260,30 +297,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -294,12 +331,16 @@ public java.lang.String getUid() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The timestamp when this RestorePlan resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -307,12 +348,16 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The timestamp when this RestorePlan resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -320,12 +365,15 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The timestamp when this RestorePlan resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -335,12 +383,16 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The timestamp when this RestorePlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -348,12 +400,16 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The timestamp when this RestorePlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -361,12 +417,15 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The timestamp when this RestorePlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -376,11 +435,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** + * + * *
    * User specified descriptive string for this RestorePlan.
    * 
* * string description = 5; + * * @return The description. */ @java.lang.Override @@ -389,29 +451,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * User specified descriptive string for this RestorePlan.
    * 
* * string description = 5; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -422,13 +484,18 @@ public java.lang.String getDescription() { public static final int BACKUP_PLAN_FIELD_NUMBER = 6; private volatile java.lang.Object backupPlan_; /** + * + * *
    * Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the
    * source for Restores created via this RestorePlan.
    * Format: projects/*/locations/*/backupPlans/*.
    * 
* - * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The backupPlan. */ @java.lang.Override @@ -437,31 +504,33 @@ public java.lang.String getBackupPlan() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupPlan_ = s; return s; } } /** + * + * *
    * Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the
    * source for Restores created via this RestorePlan.
    * Format: projects/*/locations/*/backupPlans/*.
    * 
* - * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for backupPlan. */ @java.lang.Override - public com.google.protobuf.ByteString - getBackupPlanBytes() { + public com.google.protobuf.ByteString getBackupPlanBytes() { java.lang.Object ref = backupPlan_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); backupPlan_ = b; return b; } else { @@ -472,6 +541,8 @@ public java.lang.String getBackupPlan() { public static final int CLUSTER_FIELD_NUMBER = 7; private volatile java.lang.Object cluster_; /** + * + * *
    * Required. Immutable. The target cluster into which Restores created via this RestorePlan
    * will restore data. NOTE: the cluster's region must be the same as the
@@ -481,7 +552,10 @@ public java.lang.String getBackupPlan() {
    *   - projects/*/zones/*/clusters/*
    * 
* - * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The cluster. */ @java.lang.Override @@ -490,14 +564,15 @@ public java.lang.String getCluster() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; } } /** + * + * *
    * Required. Immutable. The target cluster into which Restores created via this RestorePlan
    * will restore data. NOTE: the cluster's region must be the same as the
@@ -507,17 +582,18 @@ public java.lang.String getCluster() {
    *   - projects/*/zones/*/clusters/*
    * 
* - * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for cluster. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterBytes() { + public com.google.protobuf.ByteString getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cluster_ = b; return b; } else { @@ -528,11 +604,16 @@ public java.lang.String getCluster() { public static final int RESTORE_CONFIG_FIELD_NUMBER = 8; private com.google.cloud.gkebackup.v1.RestoreConfig restoreConfig_; /** + * + * *
    * Required. Configuration of Restores created via this RestorePlan.
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the restoreConfig field is set. */ @java.lang.Override @@ -540,23 +621,34 @@ public boolean hasRestoreConfig() { return restoreConfig_ != null; } /** + * + * *
    * Required. Configuration of Restores created via this RestorePlan.
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The restoreConfig. */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfig getRestoreConfig() { - return restoreConfig_ == null ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() : restoreConfig_; + return restoreConfig_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() + : restoreConfig_; } /** + * + * *
    * Required. Configuration of Restores created via this RestorePlan.
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBuilder() { @@ -564,24 +656,23 @@ public com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBu } public static final int LABELS_FIELD_NUMBER = 9; + 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.cloud.gkebackup.v1.RestorePlanProto.internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkebackup.v1.RestorePlanProto + .internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + 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_; } @@ -590,28 +681,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 9; */ - @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(); } /** + * + * *
    * A set of custom labels supplied by user.
    * 
@@ -619,11 +712,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 9; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * A set of custom labels supplied by user.
    * 
@@ -631,16 +725,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, 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; } /** + * + * *
    * A set of custom labels supplied by user.
    * 
@@ -648,12 +742,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 9; */ @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(); } @@ -663,6 +756,8 @@ public java.lang.String getLabelsOrThrow( public static final int ETAG_FIELD_NUMBER = 10; private volatile java.lang.Object etag_; /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a restore from overwriting each other.
@@ -675,6 +770,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ @java.lang.Override @@ -683,14 +779,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; } } /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a restore from overwriting each other.
@@ -703,16 +800,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -721,6 +817,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -732,8 +829,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -758,12 +854,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (restoreConfig_ != null) { output.writeMessage(8, getRestoreConfig()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 9); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, etag_); } @@ -783,12 +875,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -800,18 +890,17 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, cluster_); } if (restoreConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getRestoreConfig()); - } - 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(9, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRestoreConfig()); + } + 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(9, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, etag_); @@ -824,42 +913,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.cloud.gkebackup.v1.RestorePlan)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.RestorePlan other = (com.google.cloud.gkebackup.v1.RestorePlan) obj; + com.google.cloud.gkebackup.v1.RestorePlan other = + (com.google.cloud.gkebackup.v1.RestorePlan) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUid() - .equals(other.getUid())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) 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 (!getDescription() - .equals(other.getDescription())) return false; - if (!getBackupPlan() - .equals(other.getBackupPlan())) return false; - if (!getCluster() - .equals(other.getCluster())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getDescription().equals(other.getDescription())) return false; + if (!getBackupPlan().equals(other.getBackupPlan())) return false; + if (!getCluster().equals(other.getCluster())) return false; if (hasRestoreConfig() != other.hasRestoreConfig()) return false; if (hasRestoreConfig()) { - if (!getRestoreConfig() - .equals(other.getRestoreConfig())) return false; + if (!getRestoreConfig().equals(other.getRestoreConfig())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -904,97 +984,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.RestorePlan parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.RestorePlan parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.RestorePlan parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.RestorePlan parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.RestorePlan prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 configuration of a potential series of Restore operations to be performed
    * against Backups belong to a particular BackupPlan.
@@ -1003,43 +1090,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.RestorePlan}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.RestorePlan)
       com.google.cloud.gkebackup.v1.RestorePlanOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkebackup.v1.RestorePlanProto.internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkebackup.v1.RestorePlanProto
+          .internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 9:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 9:
           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.cloud.gkebackup.v1.RestorePlanProto.internal_static_google_cloud_gkebackup_v1_RestorePlan_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.RestorePlanProto
+          .internal_static_google_cloud_gkebackup_v1_RestorePlan_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.RestorePlan.class, com.google.cloud.gkebackup.v1.RestorePlan.Builder.class);
+              com.google.cloud.gkebackup.v1.RestorePlan.class,
+              com.google.cloud.gkebackup.v1.RestorePlan.Builder.class);
     }
 
     // Construct using com.google.cloud.gkebackup.v1.RestorePlan.newBuilder()
@@ -1047,16 +1134,15 @@ 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) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1095,9 +1181,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkebackup.v1.RestorePlanProto.internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkebackup.v1.RestorePlanProto
+          .internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor;
     }
 
     @java.lang.Override
@@ -1116,7 +1202,8 @@ public com.google.cloud.gkebackup.v1.RestorePlan build() {
 
     @java.lang.Override
     public com.google.cloud.gkebackup.v1.RestorePlan buildPartial() {
-      com.google.cloud.gkebackup.v1.RestorePlan result = new com.google.cloud.gkebackup.v1.RestorePlan(this);
+      com.google.cloud.gkebackup.v1.RestorePlan result =
+          new com.google.cloud.gkebackup.v1.RestorePlan(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.uid_ = uid_;
@@ -1149,38 +1236,39 @@ public com.google.cloud.gkebackup.v1.RestorePlan 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.cloud.gkebackup.v1.RestorePlan) {
-        return mergeFrom((com.google.cloud.gkebackup.v1.RestorePlan)other);
+        return mergeFrom((com.google.cloud.gkebackup.v1.RestorePlan) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1218,8 +1306,7 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.RestorePlan other) {
       if (other.hasRestoreConfig()) {
         mergeRestoreConfig(other.getRestoreConfig());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       if (!other.getEtag().isEmpty()) {
         etag_ = other.etag_;
         onChanged();
@@ -1252,23 +1339,26 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The full name of the RestorePlan resource.
      * Format: projects/*/locations/*/restorePlans/*.
      * 
* * 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; @@ -1277,21 +1367,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The full name of the RestorePlan resource.
      * Format: projects/*/locations/*/restorePlans/*.
      * 
* * 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 { @@ -1299,57 +1390,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The full name of the RestorePlan resource.
      * Format: projects/*/locations/*/restorePlans/*.
      * 
* * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The full name of the RestorePlan resource.
      * Format: projects/*/locations/*/restorePlans/*.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The full name of the RestorePlan resource.
      * Format: projects/*/locations/*/restorePlans/*.
      * 
* * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1357,19 +1455,21 @@ public Builder setNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -1378,21 +1478,22 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -1400,57 +1501,64 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { + public Builder setUid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { + public Builder setUidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); return this; @@ -1458,42 +1566,61 @@ public Builder setUidBytes( 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 timestamp when this RestorePlan resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The timestamp when this RestorePlan resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The timestamp when this RestorePlan resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1509,15 +1636,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this RestorePlan resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1528,18 +1658,22 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The timestamp when this RestorePlan resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1551,12 +1685,16 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this RestorePlan resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1570,51 +1708,67 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The timestamp when this RestorePlan resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp when this RestorePlan resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The timestamp when this RestorePlan resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1622,42 +1776,61 @@ 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 timestamp when this RestorePlan resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The timestamp when this RestorePlan resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this RestorePlan resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1673,15 +1846,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this RestorePlan resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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(); onChanged(); @@ -1692,18 +1868,22 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The timestamp when this RestorePlan resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1715,12 +1895,16 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this RestorePlan resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1734,51 +1918,67 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The timestamp when this RestorePlan resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp when this RestorePlan resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this RestorePlan resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp 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> 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_; @@ -1786,18 +1986,20 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object description_ = ""; /** + * + * *
      * User specified descriptive string for this RestorePlan.
      * 
* * string description = 5; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1806,20 +2008,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User specified descriptive string for this RestorePlan.
      * 
* * string description = 5; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1827,54 +2030,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User specified descriptive string for this RestorePlan.
      * 
* * string description = 5; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * User specified descriptive string for this RestorePlan.
      * 
* * string description = 5; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * User specified descriptive string for this RestorePlan.
      * 
* * string description = 5; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1882,20 +2092,24 @@ public Builder setDescriptionBytes( private java.lang.Object backupPlan_ = ""; /** + * + * *
      * Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the
      * source for Restores created via this RestorePlan.
      * Format: projects/*/locations/*/backupPlans/*.
      * 
* - * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The backupPlan. */ public java.lang.String getBackupPlan() { java.lang.Object ref = backupPlan_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupPlan_ = s; return s; @@ -1904,22 +2118,25 @@ public java.lang.String getBackupPlan() { } } /** + * + * *
      * Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the
      * source for Restores created via this RestorePlan.
      * Format: projects/*/locations/*/backupPlans/*.
      * 
* - * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for backupPlan. */ - public com.google.protobuf.ByteString - getBackupPlanBytes() { + public com.google.protobuf.ByteString getBackupPlanBytes() { java.lang.Object ref = backupPlan_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); backupPlan_ = b; return b; } else { @@ -1927,60 +2144,73 @@ public java.lang.String getBackupPlan() { } } /** + * + * *
      * Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the
      * source for Restores created via this RestorePlan.
      * Format: projects/*/locations/*/backupPlans/*.
      * 
* - * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The backupPlan to set. * @return This builder for chaining. */ - public Builder setBackupPlan( - java.lang.String value) { + public Builder setBackupPlan(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + backupPlan_ = value; onChanged(); return this; } /** + * + * *
      * Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the
      * source for Restores created via this RestorePlan.
      * Format: projects/*/locations/*/backupPlans/*.
      * 
* - * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearBackupPlan() { - + backupPlan_ = getDefaultInstance().getBackupPlan(); onChanged(); return this; } /** + * + * *
      * Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the
      * source for Restores created via this RestorePlan.
      * Format: projects/*/locations/*/backupPlans/*.
      * 
* - * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for backupPlan to set. * @return This builder for chaining. */ - public Builder setBackupPlanBytes( - com.google.protobuf.ByteString value) { + public Builder setBackupPlanBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backupPlan_ = value; onChanged(); return this; @@ -1988,6 +2218,8 @@ public Builder setBackupPlanBytes( private java.lang.Object cluster_ = ""; /** + * + * *
      * Required. Immutable. The target cluster into which Restores created via this RestorePlan
      * will restore data. NOTE: the cluster's region must be the same as the
@@ -1997,14 +2229,16 @@ public Builder setBackupPlanBytes(
      *   - projects/*/zones/*/clusters/*
      * 
* - * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The cluster. */ public java.lang.String getCluster() { java.lang.Object ref = cluster_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; @@ -2013,6 +2247,8 @@ public java.lang.String getCluster() { } } /** + * + * *
      * Required. Immutable. The target cluster into which Restores created via this RestorePlan
      * will restore data. NOTE: the cluster's region must be the same as the
@@ -2022,16 +2258,17 @@ public java.lang.String getCluster() {
      *   - projects/*/zones/*/clusters/*
      * 
* - * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for cluster. */ - public com.google.protobuf.ByteString - getClusterBytes() { + public com.google.protobuf.ByteString getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cluster_ = b; return b; } else { @@ -2039,6 +2276,8 @@ public java.lang.String getCluster() { } } /** + * + * *
      * Required. Immutable. The target cluster into which Restores created via this RestorePlan
      * will restore data. NOTE: the cluster's region must be the same as the
@@ -2048,21 +2287,25 @@ public java.lang.String getCluster() {
      *   - projects/*/zones/*/clusters/*
      * 
* - * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The cluster to set. * @return This builder for chaining. */ - public Builder setCluster( - java.lang.String value) { + public Builder setCluster(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cluster_ = value; onChanged(); return this; } /** + * + * *
      * Required. Immutable. The target cluster into which Restores created via this RestorePlan
      * will restore data. NOTE: the cluster's region must be the same as the
@@ -2072,16 +2315,21 @@ public Builder setCluster(
      *   - projects/*/zones/*/clusters/*
      * 
* - * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearCluster() { - + cluster_ = getDefaultInstance().getCluster(); onChanged(); return this; } /** + * + * *
      * Required. Immutable. The target cluster into which Restores created via this RestorePlan
      * will restore data. NOTE: the cluster's region must be the same as the
@@ -2091,17 +2339,19 @@ public Builder clearCluster() {
      *   - projects/*/zones/*/clusters/*
      * 
* - * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for cluster to set. * @return This builder for chaining. */ - public Builder setClusterBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cluster_ = value; onChanged(); return this; @@ -2109,39 +2359,58 @@ public Builder setClusterBytes( private com.google.cloud.gkebackup.v1.RestoreConfig restoreConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig, com.google.cloud.gkebackup.v1.RestoreConfig.Builder, com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> restoreConfigBuilder_; + com.google.cloud.gkebackup.v1.RestoreConfig, + com.google.cloud.gkebackup.v1.RestoreConfig.Builder, + com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> + restoreConfigBuilder_; /** + * + * *
      * Required. Configuration of Restores created via this RestorePlan.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the restoreConfig field is set. */ public boolean hasRestoreConfig() { return restoreConfigBuilder_ != null || restoreConfig_ != null; } /** + * + * *
      * Required. Configuration of Restores created via this RestorePlan.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The restoreConfig. */ public com.google.cloud.gkebackup.v1.RestoreConfig getRestoreConfig() { if (restoreConfigBuilder_ == null) { - return restoreConfig_ == null ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() : restoreConfig_; + return restoreConfig_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() + : restoreConfig_; } else { return restoreConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Configuration of Restores created via this RestorePlan.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig value) { if (restoreConfigBuilder_ == null) { @@ -2157,11 +2426,15 @@ public Builder setRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig valu return this; } /** + * + * *
      * Required. Configuration of Restores created via this RestorePlan.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRestoreConfig( com.google.cloud.gkebackup.v1.RestoreConfig.Builder builderForValue) { @@ -2175,17 +2448,23 @@ public Builder setRestoreConfig( return this; } /** + * + * *
      * Required. Configuration of Restores created via this RestorePlan.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig value) { if (restoreConfigBuilder_ == null) { if (restoreConfig_ != null) { restoreConfig_ = - com.google.cloud.gkebackup.v1.RestoreConfig.newBuilder(restoreConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.gkebackup.v1.RestoreConfig.newBuilder(restoreConfig_) + .mergeFrom(value) + .buildPartial(); } else { restoreConfig_ = value; } @@ -2197,11 +2476,15 @@ public Builder mergeRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig va return this; } /** + * + * *
      * Required. Configuration of Restores created via this RestorePlan.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRestoreConfig() { if (restoreConfigBuilder_ == null) { @@ -2215,69 +2498,84 @@ public Builder clearRestoreConfig() { return this; } /** + * + * *
      * Required. Configuration of Restores created via this RestorePlan.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkebackup.v1.RestoreConfig.Builder getRestoreConfigBuilder() { - + onChanged(); return getRestoreConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Configuration of Restores created via this RestorePlan.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBuilder() { if (restoreConfigBuilder_ != null) { return restoreConfigBuilder_.getMessageOrBuilder(); } else { - return restoreConfig_ == null ? - com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() : restoreConfig_; + return restoreConfig_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() + : restoreConfig_; } } /** + * + * *
      * Required. Configuration of Restores created via this RestorePlan.
      * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig, com.google.cloud.gkebackup.v1.RestoreConfig.Builder, com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> + com.google.cloud.gkebackup.v1.RestoreConfig, + com.google.cloud.gkebackup.v1.RestoreConfig.Builder, + com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> getRestoreConfigFieldBuilder() { if (restoreConfigBuilder_ == null) { - restoreConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig, com.google.cloud.gkebackup.v1.RestoreConfig.Builder, com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder>( - getRestoreConfig(), - getParentForChildren(), - isClean()); + restoreConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig, + com.google.cloud.gkebackup.v1.RestoreConfig.Builder, + com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder>( + getRestoreConfig(), getParentForChildren(), isClean()); restoreConfig_ = null; } return restoreConfigBuilder_; } - 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -2289,28 +2587,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 9; */ - @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(); } /** + * + * *
      * A set of custom labels supplied by user.
      * 
@@ -2318,11 +2618,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 9; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * A set of custom labels supplied by user.
      * 
@@ -2330,16 +2631,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, 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; } /** + * + * *
      * A set of custom labels supplied by user.
      * 
@@ -2347,12 +2649,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 9; */ @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(); } @@ -2360,69 +2661,68 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 9; */ - - 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() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 9; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * A set of custom labels supplied by user.
      * 
* * map<string, string> labels = 9; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private java.lang.Object etag_ = ""; /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a restore from overwriting each other.
@@ -2435,13 +2735,13 @@ public Builder putAllLabels(
      * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -2450,6 +2750,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a restore from overwriting each other.
@@ -2462,15 +2764,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -2478,6 +2779,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a restore from overwriting each other.
@@ -2490,20 +2793,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a restore from overwriting each other.
@@ -2516,15 +2821,18 @@ public Builder setEtag(
      * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a restore from overwriting each other.
@@ -2537,23 +2845,23 @@ public Builder clearEtag() {
      * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2563,12 +2871,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.RestorePlan) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.RestorePlan) private static final com.google.cloud.gkebackup.v1.RestorePlan DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.RestorePlan(); } @@ -2577,16 +2885,16 @@ public static com.google.cloud.gkebackup.v1.RestorePlan getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestorePlan parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RestorePlan(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestorePlan parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RestorePlan(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2601,6 +2909,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.RestorePlan getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanName.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanName.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanOrBuilder.java index 3a00261..c4b84e2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanOrBuilder.java @@ -1,161 +1,225 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/restore_plan.proto package com.google.cloud.gkebackup.v1; -public interface RestorePlanOrBuilder extends +public interface RestorePlanOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.RestorePlan) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The full name of the RestorePlan resource.
    * Format: projects/*/locations/*/restorePlans/*.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The full name of the RestorePlan resource.
    * Format: projects/*/locations/*/restorePlans/*.
    * 
* * 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. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. The timestamp when this RestorePlan resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The timestamp when this RestorePlan resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The timestamp when this RestorePlan resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The timestamp when this RestorePlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The timestamp when this RestorePlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The timestamp when this RestorePlan resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * User specified descriptive string for this RestorePlan.
    * 
* * string description = 5; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * User specified descriptive string for this RestorePlan.
    * 
* * string description = 5; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the
    * source for Restores created via this RestorePlan.
    * Format: projects/*/locations/*/backupPlans/*.
    * 
* - * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The backupPlan. */ java.lang.String getBackupPlan(); /** + * + * *
    * Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the
    * source for Restores created via this RestorePlan.
    * Format: projects/*/locations/*/backupPlans/*.
    * 
* - * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for backupPlan. */ - com.google.protobuf.ByteString - getBackupPlanBytes(); + com.google.protobuf.ByteString getBackupPlanBytes(); /** + * + * *
    * Required. Immutable. The target cluster into which Restores created via this RestorePlan
    * will restore data. NOTE: the cluster's region must be the same as the
@@ -165,11 +229,16 @@ public interface RestorePlanOrBuilder extends
    *   - projects/*/zones/*/clusters/*
    * 
* - * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The cluster. */ java.lang.String getCluster(); /** + * + * *
    * Required. Immutable. The target cluster into which Restores created via this RestorePlan
    * will restore data. NOTE: the cluster's region must be the same as the
@@ -179,40 +248,58 @@ public interface RestorePlanOrBuilder extends
    *   - projects/*/zones/*/clusters/*
    * 
* - * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for cluster. */ - com.google.protobuf.ByteString - getClusterBytes(); + com.google.protobuf.ByteString getClusterBytes(); /** + * + * *
    * Required. Configuration of Restores created via this RestorePlan.
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the restoreConfig field is set. */ boolean hasRestoreConfig(); /** + * + * *
    * Required. Configuration of Restores created via this RestorePlan.
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The restoreConfig. */ com.google.cloud.gkebackup.v1.RestoreConfig getRestoreConfig(); /** + * + * *
    * Required. Configuration of Restores created via this RestorePlan.
    * 
* - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBuilder(); /** + * + * *
    * A set of custom labels supplied by user.
    * 
@@ -221,30 +308,31 @@ public interface RestorePlanOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 9; */ - 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(); /** + * + * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 9; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * A set of custom labels supplied by user.
    * 
@@ -253,22 +341,24 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * A set of custom labels supplied by user.
    * 
* * map<string, string> labels = 9; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a restore from overwriting each other.
@@ -281,10 +371,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a restore from overwriting each other.
@@ -297,8 +390,8 @@ java.lang.String getLabelsOrThrow(
    * 
* * string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanProto.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanProto.java new file mode 100644 index 0000000..6729005 --- /dev/null +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanProto.java @@ -0,0 +1,123 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/restore_plan.proto + +package com.google.cloud.gkebackup.v1; + +public final class RestorePlanProto { + private RestorePlanProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_RestorePlan_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/gkebackup/v1/restore_plan" + + ".proto\022\031google.cloud.gkebackup.v1\032\037googl" + + "e/api/field_behavior.proto\032\031google/api/r" + + "esource.proto\032\'google/cloud/gkebackup/v1" + + "/restore.proto\032\037google/protobuf/timestam" + + "p.proto\"\363\004\n\013RestorePlan\022\021\n\004name\030\001 \001(\tB\003\340" + + "A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + + "date_time\030\004 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022\023\n\013description\030\005 \001(\t\022C\n\013backup_" + + "plan\030\006 \001(\tB.\340A\005\340A\002\372A%\n#gkebackup.googlea" + + "pis.com/BackupPlan\022<\n\007cluster\030\007 \001(\tB+\340A\005" + + "\340A\002\372A\"\n container.googleapis.com/Cluster" + + "\022E\n\016restore_config\030\010 \001(\0132(.google.cloud." + + "gkebackup.v1.RestoreConfigB\003\340A\002\022B\n\006label" + + "s\030\t \003(\01322.google.cloud.gkebackup.v1.Rest" + + "orePlan.LabelsEntry\022\021\n\004etag\030\n \001(\tB\003\340A\003\032-" + + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001:n\352Ak\n$gkebackup.googleapis.com/Res" + + "torePlan\022Cprojects/{project}/locations/{" + + "location}/restorePlans/{restore_plan}B\316\001" + + "\n\035com.google.cloud.gkebackup.v1B\020Restore" + + "PlanProtoP\001ZBgoogle.golang.org/genproto/" + + "googleapis/cloud/gkebackup/v1;gkebackup\252" + + "\002\031Google.Cloud.GkeBackup.V1\312\002\031Google\\Clo" + + "ud\\GkeBackup\\V1\352\002\034Google::Cloud::GkeBack" + + "up::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.gkebackup.v1.RestoreProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkebackup_v1_RestorePlan_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "CreateTime", + "UpdateTime", + "Description", + "BackupPlan", + "Cluster", + "RestoreConfig", + "Labels", + "Etag", + }); + internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_descriptor = + internal_static_google_cloud_gkebackup_v1_RestorePlan_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_RestorePlan_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.gkebackup.v1.RestoreProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreProto.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreProto.java new file mode 100644 index 0000000..167ba12 --- /dev/null +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreProto.java @@ -0,0 +1,239 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/restore.proto + +package com.google.cloud.gkebackup.v1; + +public final class RestoreProto { + private RestoreProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_Restore_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_RestoreConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\'google/cloud/gkebackup/v1/restore.prot" + + "o\022\031google.cloud.gkebackup.v1\032\037google/api" + + "/field_behavior.proto\032\031google/api/resour" + + "ce.proto\032&google/cloud/gkebackup/v1/comm" + + "on.proto\032\037google/protobuf/timestamp.prot" + + "o\"\377\007\n\007Restore\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030" + + "\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" + + "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023" + + "\n\013description\030\005 \001(\t\022:\n\006backup\030\006 \001(\tB*\340A\005" + + "\340A\002\372A!\n\037gkebackup.googleapis.com/Backup\022" + + "9\n\007cluster\030\007 \001(\tB(\340A\003\372A\"\n container.goog" + + "leapis.com/Cluster\022E\n\016restore_config\030\010 \001" + + "(\0132(.google.cloud.gkebackup.v1.RestoreCo" + + "nfigB\003\340A\003\022>\n\006labels\030\t \003(\0132..google.cloud" + + ".gkebackup.v1.Restore.LabelsEntry\022<\n\005sta" + + "te\030\n \001(\0162(.google.cloud.gkebackup.v1.Res" + + "tore.StateB\003\340A\003\022\031\n\014state_reason\030\013 \001(\tB\003\340" + + "A\003\0226\n\rcomplete_time\030\014 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022%\n\030resources_restored" + + "_count\030\r \001(\005B\003\340A\003\022%\n\030resources_excluded_" + + "count\030\016 \001(\005B\003\340A\003\022#\n\026resources_failed_cou" + + "nt\030\017 \001(\005B\003\340A\003\022#\n\026volumes_restored_count\030" + + "\020 \001(\005B\003\340A\003\022\021\n\004etag\030\021 \001(\tB\003\340A\003\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"f\n\005" + + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING" + + "\020\001\022\017\n\013IN_PROGRESS\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FA" + + "ILED\020\004\022\014\n\010DELETING\020\005:}\352Az\n gkebackup.goo" + + "gleapis.com/Restore\022Vprojects/{project}/" + + "locations/{location}/restorePlans/{resto" + + "re_plan}/restores/{restore}\"\250\014\n\rRestoreC" + + "onfig\022d\n\032volume_data_restore_policy\030\001 \001(" + + "\0162@.google.cloud.gkebackup.v1.RestoreCon" + + "fig.VolumeDataRestorePolicy\022p\n cluster_r" + + "esource_conflict_policy\030\002 \001(\0162F.google.c" + + "loud.gkebackup.v1.RestoreConfig.ClusterR" + + "esourceConflictPolicy\022p\n namespaced_reso" + + "urce_restore_mode\030\003 \001(\0162F.google.cloud.g" + + "kebackup.v1.RestoreConfig.NamespacedReso" + + "urceRestoreMode\022l\n\036cluster_resource_rest" + + "ore_scope\030\004 \001(\0132D.google.cloud.gkebackup" + + ".v1.RestoreConfig.ClusterResourceRestore" + + "Scope\022\030\n\016all_namespaces\030\005 \001(\010H\000\022D\n\023selec" + + "ted_namespaces\030\006 \001(\0132%.google.cloud.gkeb" + + "ackup.v1.NamespacesH\000\022K\n\025selected_applic" + + "ations\030\007 \001(\0132*.google.cloud.gkebackup.v1" + + ".NamespacedNamesH\000\022U\n\022substitution_rules" + + "\030\010 \003(\01329.google.cloud.gkebackup.v1.Resto" + + "reConfig.SubstitutionRule\032:\n\tGroupKind\022\026" + + "\n\016resource_group\030\001 \001(\t\022\025\n\rresource_kind\030" + + "\002 \001(\t\032o\n\033ClusterResourceRestoreScope\022P\n\024" + + "selected_group_kinds\030\001 \003(\01322.google.clou" + + "d.gkebackup.v1.RestoreConfig.GroupKind\032\317" + + "\001\n\020SubstitutionRule\022\031\n\021target_namespaces" + + "\030\001 \003(\t\022N\n\022target_group_kinds\030\002 \003(\01322.goo" + + "gle.cloud.gkebackup.v1.RestoreConfig.Gro" + + "upKind\022\035\n\020target_json_path\030\003 \001(\tB\003\340A\002\022\036\n" + + "\026original_value_pattern\030\004 \001(\t\022\021\n\tnew_val" + + "ue\030\005 \001(\t\"\257\001\n\027VolumeDataRestorePolicy\022*\n&" + + "VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED\020\000" + + "\022#\n\037RESTORE_VOLUME_DATA_FROM_BACKUP\020\001\022#\n" + + "\037REUSE_VOLUME_HANDLE_FROM_BACKUP\020\002\022\036\n\032NO" + + "_VOLUME_DATA_RESTORATION\020\003\"\203\001\n\035ClusterRe" + + "sourceConflictPolicy\0220\n,CLUSTER_RESOURCE" + + "_CONFLICT_POLICY_UNSPECIFIED\020\000\022\030\n\024USE_EX" + + "ISTING_VERSION\020\001\022\026\n\022USE_BACKUP_VERSION\020\002" + + "\"\177\n\035NamespacedResourceRestoreMode\0220\n,NAM" + + "ESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIE" + + "D\020\000\022\026\n\022DELETE_AND_RESTORE\020\001\022\024\n\020FAIL_ON_C" + + "ONFLICT\020\002B#\n!namespaced_resource_restore" + + "_scopeB\312\001\n\035com.google.cloud.gkebackup.v1" + + "B\014RestoreProtoP\001ZBgoogle.golang.org/genp" + + "roto/googleapis/cloud/gkebackup/v1;gkeba" + + "ckup\252\002\031Google.Cloud.GkeBackup.V1\312\002\031Googl" + + "e\\Cloud\\GkeBackup\\V1\352\002\034Google::Cloud::Gk" + + "eBackup::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gkebackup_v1_Restore_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_Restore_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "CreateTime", + "UpdateTime", + "Description", + "Backup", + "Cluster", + "RestoreConfig", + "Labels", + "State", + "StateReason", + "CompleteTime", + "ResourcesRestoredCount", + "ResourcesExcludedCount", + "ResourcesFailedCount", + "VolumesRestoredCount", + "Etag", + }); + internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor = + internal_static_google_cloud_gkebackup_v1_Restore_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor, + new java.lang.String[] { + "VolumeDataRestorePolicy", + "ClusterResourceConflictPolicy", + "NamespacedResourceRestoreMode", + "ClusterResourceRestoreScope", + "AllNamespaces", + "SelectedNamespaces", + "SelectedApplications", + "SubstitutionRules", + "NamespacedResourceRestoreScope", + }); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor = + internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor, + new java.lang.String[] { + "ResourceGroup", "ResourceKind", + }); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor = + internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_RestoreConfig_ClusterResourceRestoreScope_descriptor, + new java.lang.String[] { + "SelectedGroupKinds", + }); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor = + internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_RestoreConfig_SubstitutionRule_descriptor, + new java.lang.String[] { + "TargetNamespaces", + "TargetGroupKinds", + "TargetJsonPath", + "OriginalValuePattern", + "NewValue", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequest.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequest.java index 941dd0e..6a423ba 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequest.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/gkebackup.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Request message for UpdateBackupPlan.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.UpdateBackupPlanRequest} */ -public final class UpdateBackupPlanRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateBackupPlanRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.UpdateBackupPlanRequest) UpdateBackupPlanRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateBackupPlanRequest.newBuilder() to construct. private UpdateBackupPlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateBackupPlanRequest() { - } + + private UpdateBackupPlanRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateBackupPlanRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateBackupPlanRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateBackupPlanRequest( case 0: done = true; break; - case 10: { - com.google.cloud.gkebackup.v1.BackupPlan.Builder subBuilder = null; - if (backupPlan_ != null) { - subBuilder = backupPlan_.toBuilder(); - } - backupPlan_ = input.readMessage(com.google.cloud.gkebackup.v1.BackupPlan.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(backupPlan_); - backupPlan_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.gkebackup.v1.BackupPlan.Builder subBuilder = null; + if (backupPlan_ != null) { + subBuilder = backupPlan_.toBuilder(); + } + backupPlan_ = + input.readMessage( + com.google.cloud.gkebackup.v1.BackupPlan.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(backupPlan_); + backupPlan_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,35 +113,42 @@ private UpdateBackupPlanRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.class, com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.class, + com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.Builder.class); } public static final int BACKUP_PLAN_FIELD_NUMBER = 1; private com.google.cloud.gkebackup.v1.BackupPlan backupPlan_; /** + * + * *
    * Required. A new version of the BackupPlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the backupPlan field is set. */ @java.lang.Override @@ -128,25 +156,36 @@ public boolean hasBackupPlan() { return backupPlan_ != null; } /** + * + * *
    * Required. A new version of the BackupPlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backupPlan. */ @java.lang.Override public com.google.cloud.gkebackup.v1.BackupPlan getBackupPlan() { - return backupPlan_ == null ? com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() : backupPlan_; + return backupPlan_ == null + ? com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() + : backupPlan_; } /** + * + * *
    * Required. A new version of the BackupPlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder() { @@ -156,6 +195,8 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder( public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * BackupPlan targeted for update. The values for each of these
@@ -169,6 +210,7 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder(
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -176,6 +218,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * BackupPlan targeted for update. The values for each of these
@@ -189,6 +233,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -196,6 +241,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * BackupPlan targeted for update. The values for each of these
@@ -216,6 +263,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -227,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 (backupPlan_ != null) {
       output.writeMessage(1, getBackupPlan());
     }
@@ -245,12 +292,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (backupPlan_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getBackupPlan());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBackupPlan());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -260,22 +305,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest other = (com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest) obj;
+    com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest other =
+        (com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest) obj;
 
     if (hasBackupPlan() != other.hasBackupPlan()) return false;
     if (hasBackupPlan()) {
-      if (!getBackupPlan()
-          .equals(other.getBackupPlan())) return false;
+      if (!getBackupPlan().equals(other.getBackupPlan())) 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -302,117 +346,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 UpdateBackupPlan.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.UpdateBackupPlanRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.UpdateBackupPlanRequest) com.google.cloud.gkebackup.v1.UpdateBackupPlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.class, com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.class, + com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.newBuilder() @@ -420,16 +474,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -449,9 +502,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_UpdateBackupPlanRequest_descriptor; } @java.lang.Override @@ -470,7 +523,8 @@ public com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest buildPartial() { - com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest result = new com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest(this); + com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest result = + new com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest(this); if (backupPlanBuilder_ == null) { result.backupPlan_ = backupPlan_; } else { @@ -489,38 +543,39 @@ public com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest 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.cloud.gkebackup.v1.UpdateBackupPlanRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest) other); } else { super.mergeFrom(other); return this; @@ -528,7 +583,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest other) { - if (other == com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.getDefaultInstance()) + return this; if (other.hasBackupPlan()) { mergeBackupPlan(other.getBackupPlan()); } @@ -554,7 +610,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -566,42 +623,61 @@ public Builder mergeFrom( private com.google.cloud.gkebackup.v1.BackupPlan backupPlan_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan, com.google.cloud.gkebackup.v1.BackupPlan.Builder, com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> backupPlanBuilder_; + com.google.cloud.gkebackup.v1.BackupPlan, + com.google.cloud.gkebackup.v1.BackupPlan.Builder, + com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> + backupPlanBuilder_; /** + * + * *
      * Required. A new version of the BackupPlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the backupPlan field is set. */ public boolean hasBackupPlan() { return backupPlanBuilder_ != null || backupPlan_ != null; } /** + * + * *
      * Required. A new version of the BackupPlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backupPlan. */ public com.google.cloud.gkebackup.v1.BackupPlan getBackupPlan() { if (backupPlanBuilder_ == null) { - return backupPlan_ == null ? com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() : backupPlan_; + return backupPlan_ == null + ? com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() + : backupPlan_; } else { return backupPlanBuilder_.getMessage(); } } /** + * + * *
      * Required. A new version of the BackupPlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan value) { if (backupPlanBuilder_ == null) { @@ -617,15 +693,18 @@ public Builder setBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan value) { return this; } /** + * + * *
      * Required. A new version of the BackupPlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setBackupPlan( - com.google.cloud.gkebackup.v1.BackupPlan.Builder builderForValue) { + public Builder setBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan.Builder builderForValue) { if (backupPlanBuilder_ == null) { backupPlan_ = builderForValue.build(); onChanged(); @@ -636,18 +715,24 @@ public Builder setBackupPlan( return this; } /** + * + * *
      * Required. A new version of the BackupPlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan value) { if (backupPlanBuilder_ == null) { if (backupPlan_ != null) { backupPlan_ = - com.google.cloud.gkebackup.v1.BackupPlan.newBuilder(backupPlan_).mergeFrom(value).buildPartial(); + com.google.cloud.gkebackup.v1.BackupPlan.newBuilder(backupPlan_) + .mergeFrom(value) + .buildPartial(); } else { backupPlan_ = value; } @@ -659,12 +744,16 @@ public Builder mergeBackupPlan(com.google.cloud.gkebackup.v1.BackupPlan value) { return this; } /** + * + * *
      * Required. A new version of the BackupPlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBackupPlan() { if (backupPlanBuilder_ == null) { @@ -678,51 +767,67 @@ public Builder clearBackupPlan() { return this; } /** + * + * *
      * Required. A new version of the BackupPlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkebackup.v1.BackupPlan.Builder getBackupPlanBuilder() { - + onChanged(); return getBackupPlanFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A new version of the BackupPlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder() { if (backupPlanBuilder_ != null) { return backupPlanBuilder_.getMessageOrBuilder(); } else { - return backupPlan_ == null ? - com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() : backupPlan_; + return backupPlan_ == null + ? com.google.cloud.gkebackup.v1.BackupPlan.getDefaultInstance() + : backupPlan_; } } /** + * + * *
      * Required. A new version of the BackupPlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan, com.google.cloud.gkebackup.v1.BackupPlan.Builder, com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> + com.google.cloud.gkebackup.v1.BackupPlan, + com.google.cloud.gkebackup.v1.BackupPlan.Builder, + com.google.cloud.gkebackup.v1.BackupPlanOrBuilder> getBackupPlanFieldBuilder() { if (backupPlanBuilder_ == null) { - backupPlanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.BackupPlan, com.google.cloud.gkebackup.v1.BackupPlan.Builder, com.google.cloud.gkebackup.v1.BackupPlanOrBuilder>( - getBackupPlan(), - getParentForChildren(), - isClean()); + backupPlanBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.BackupPlan, + com.google.cloud.gkebackup.v1.BackupPlan.Builder, + com.google.cloud.gkebackup.v1.BackupPlanOrBuilder>( + getBackupPlan(), getParentForChildren(), isClean()); backupPlan_ = null; } return backupPlanBuilder_; @@ -730,8 +835,13 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder( 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_; /** + * + * *
      * This is used to specify the fields to be overwritten in the
      * BackupPlan targeted for update. The values for each of these
@@ -745,12 +855,15 @@ public com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder(
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * This is used to specify the fields to be overwritten in the
      * BackupPlan targeted for update. The values for each of these
@@ -764,16 +877,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @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(); } } /** + * + * *
      * This is used to specify the fields to be overwritten in the
      * BackupPlan targeted for update. The values for each of these
@@ -802,6 +920,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * BackupPlan targeted for update. The values for each of these
@@ -816,8 +936,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -828,6 +947,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * BackupPlan targeted for update. The values for each of these
@@ -846,7 +967,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -858,6 +979,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * BackupPlan targeted for update. The values for each of these
@@ -884,6 +1007,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * BackupPlan targeted for update. The values for each of these
@@ -899,11 +1024,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * BackupPlan targeted for update. The values for each of these
@@ -922,11 +1049,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_;
       }
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * BackupPlan targeted for update. The values for each of these
@@ -942,21 +1072,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     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);
     }
 
@@ -966,12 +1099,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.UpdateBackupPlanRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.UpdateBackupPlanRequest)
   private static final com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest();
   }
@@ -980,16 +1113,16 @@ public static com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateBackupPlanRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateBackupPlanRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateBackupPlanRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateBackupPlanRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1004,6 +1137,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequestOrBuilder.java
similarity index 75%
rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequestOrBuilder.java
rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequestOrBuilder.java
index 3f26d9a..1f89701 100644
--- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequestOrBuilder.java
+++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupPlanRequestOrBuilder.java
@@ -1,43 +1,75 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkebackup/v1/gkebackup.proto
 
 package com.google.cloud.gkebackup.v1;
 
-public interface UpdateBackupPlanRequestOrBuilder extends
+public interface UpdateBackupPlanRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.UpdateBackupPlanRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. A new version of the BackupPlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the backupPlan field is set. */ boolean hasBackupPlan(); /** + * + * *
    * Required. A new version of the BackupPlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backupPlan. */ com.google.cloud.gkebackup.v1.BackupPlan getBackupPlan(); /** + * + * *
    * Required. A new version of the BackupPlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.gkebackup.v1.BackupPlanOrBuilder getBackupPlanOrBuilder(); /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * BackupPlan targeted for update. The values for each of these
@@ -51,10 +83,13 @@ public interface UpdateBackupPlanRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * BackupPlan targeted for update. The values for each of these
@@ -68,10 +103,13 @@ public interface UpdateBackupPlanRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * BackupPlan targeted for update. The values for each of these
diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequest.java
similarity index 73%
rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequest.java
rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequest.java
index ab9587b..ca3b1dd 100644
--- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequest.java
+++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequest.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkebackup/v1/gkebackup.proto
 
 package com.google.cloud.gkebackup.v1;
 
 /**
+ *
+ *
  * 
  * Request message for UpdateBackup.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.UpdateBackupRequest} */ -public final class UpdateBackupRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateBackupRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.UpdateBackupRequest) UpdateBackupRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateBackupRequest.newBuilder() to construct. private UpdateBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateBackupRequest() { - } + + private UpdateBackupRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateBackupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateBackupRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateBackupRequest( case 0: done = true; break; - case 10: { - com.google.cloud.gkebackup.v1.Backup.Builder subBuilder = null; - if (backup_ != null) { - subBuilder = backup_.toBuilder(); - } - backup_ = input.readMessage(com.google.cloud.gkebackup.v1.Backup.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(backup_); - backup_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.gkebackup.v1.Backup.Builder subBuilder = null; + if (backup_ != null) { + subBuilder = backup_.toBuilder(); + } + backup_ = + input.readMessage( + com.google.cloud.gkebackup.v1.Backup.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(backup_); + backup_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,35 +113,41 @@ private UpdateBackupRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.UpdateBackupRequest.class, com.google.cloud.gkebackup.v1.UpdateBackupRequest.Builder.class); + com.google.cloud.gkebackup.v1.UpdateBackupRequest.class, + com.google.cloud.gkebackup.v1.UpdateBackupRequest.Builder.class); } public static final int BACKUP_FIELD_NUMBER = 1; private com.google.cloud.gkebackup.v1.Backup backup_; /** + * + * *
    * Required. A new version of the Backup resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the backup field is set. */ @java.lang.Override @@ -128,12 +155,16 @@ public boolean hasBackup() { return backup_ != null; } /** + * + * *
    * Required. A new version of the Backup resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backup. */ @java.lang.Override @@ -141,12 +172,15 @@ public com.google.cloud.gkebackup.v1.Backup getBackup() { return backup_ == null ? com.google.cloud.gkebackup.v1.Backup.getDefaultInstance() : backup_; } /** + * + * *
    * Required. A new version of the Backup resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() { @@ -156,6 +190,8 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * Backup targeted for update. The values for each of these
@@ -168,6 +204,7 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -175,6 +212,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * Backup targeted for update. The values for each of these
@@ -187,6 +226,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -194,6 +234,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * Backup targeted for update. The values for each of these
@@ -213,6 +255,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -224,8 +267,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 (backup_ != null) {
       output.writeMessage(1, getBackup());
     }
@@ -242,12 +284,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (backup_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getBackup());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBackup());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -257,22 +297,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.gkebackup.v1.UpdateBackupRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkebackup.v1.UpdateBackupRequest other = (com.google.cloud.gkebackup.v1.UpdateBackupRequest) obj;
+    com.google.cloud.gkebackup.v1.UpdateBackupRequest other =
+        (com.google.cloud.gkebackup.v1.UpdateBackupRequest) obj;
 
     if (hasBackup() != other.hasBackup()) return false;
     if (hasBackup()) {
-      if (!getBackup()
-          .equals(other.getBackup())) return false;
+      if (!getBackup().equals(other.getBackup())) 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -299,117 +338,126 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateBackupRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.gkebackup.v1.UpdateBackupRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 UpdateBackup.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.UpdateBackupRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.UpdateBackupRequest) com.google.cloud.gkebackup.v1.UpdateBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.UpdateBackupRequest.class, com.google.cloud.gkebackup.v1.UpdateBackupRequest.Builder.class); + com.google.cloud.gkebackup.v1.UpdateBackupRequest.class, + com.google.cloud.gkebackup.v1.UpdateBackupRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.UpdateBackupRequest.newBuilder() @@ -417,16 +465,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +493,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_UpdateBackupRequest_descriptor; } @java.lang.Override @@ -467,7 +514,8 @@ public com.google.cloud.gkebackup.v1.UpdateBackupRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.UpdateBackupRequest buildPartial() { - com.google.cloud.gkebackup.v1.UpdateBackupRequest result = new com.google.cloud.gkebackup.v1.UpdateBackupRequest(this); + com.google.cloud.gkebackup.v1.UpdateBackupRequest result = + new com.google.cloud.gkebackup.v1.UpdateBackupRequest(this); if (backupBuilder_ == null) { result.backup_ = backup_; } else { @@ -486,38 +534,39 @@ public com.google.cloud.gkebackup.v1.UpdateBackupRequest 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.cloud.gkebackup.v1.UpdateBackupRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.UpdateBackupRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.UpdateBackupRequest) other); } else { super.mergeFrom(other); return this; @@ -525,7 +574,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.UpdateBackupRequest other) { - if (other == com.google.cloud.gkebackup.v1.UpdateBackupRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.UpdateBackupRequest.getDefaultInstance()) + return this; if (other.hasBackup()) { mergeBackup(other.getBackup()); } @@ -551,7 +601,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.UpdateBackupRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.UpdateBackupRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,42 +614,58 @@ public Builder mergeFrom( private com.google.cloud.gkebackup.v1.Backup backup_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup, com.google.cloud.gkebackup.v1.Backup.Builder, com.google.cloud.gkebackup.v1.BackupOrBuilder> backupBuilder_; + com.google.cloud.gkebackup.v1.Backup, + com.google.cloud.gkebackup.v1.Backup.Builder, + com.google.cloud.gkebackup.v1.BackupOrBuilder> + backupBuilder_; /** + * + * *
      * Required. A new version of the Backup resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the backup field is set. */ public boolean hasBackup() { return backupBuilder_ != null || backup_ != null; } /** + * + * *
      * Required. A new version of the Backup resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backup. */ public com.google.cloud.gkebackup.v1.Backup getBackup() { if (backupBuilder_ == null) { - return backup_ == null ? com.google.cloud.gkebackup.v1.Backup.getDefaultInstance() : backup_; + return backup_ == null + ? com.google.cloud.gkebackup.v1.Backup.getDefaultInstance() + : backup_; } else { return backupBuilder_.getMessage(); } } /** + * + * *
      * Required. A new version of the Backup resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBackup(com.google.cloud.gkebackup.v1.Backup value) { if (backupBuilder_ == null) { @@ -614,15 +681,17 @@ public Builder setBackup(com.google.cloud.gkebackup.v1.Backup value) { return this; } /** + * + * *
      * Required. A new version of the Backup resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setBackup( - com.google.cloud.gkebackup.v1.Backup.Builder builderForValue) { + public Builder setBackup(com.google.cloud.gkebackup.v1.Backup.Builder builderForValue) { if (backupBuilder_ == null) { backup_ = builderForValue.build(); onChanged(); @@ -633,18 +702,23 @@ public Builder setBackup( return this; } /** + * + * *
      * Required. A new version of the Backup resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBackup(com.google.cloud.gkebackup.v1.Backup value) { if (backupBuilder_ == null) { if (backup_ != null) { backup_ = - com.google.cloud.gkebackup.v1.Backup.newBuilder(backup_).mergeFrom(value).buildPartial(); + com.google.cloud.gkebackup.v1.Backup.newBuilder(backup_) + .mergeFrom(value) + .buildPartial(); } else { backup_ = value; } @@ -656,12 +730,15 @@ public Builder mergeBackup(com.google.cloud.gkebackup.v1.Backup value) { return this; } /** + * + * *
      * Required. A new version of the Backup resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBackup() { if (backupBuilder_ == null) { @@ -675,51 +752,64 @@ public Builder clearBackup() { return this; } /** + * + * *
      * Required. A new version of the Backup resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkebackup.v1.Backup.Builder getBackupBuilder() { - + onChanged(); return getBackupFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A new version of the Backup resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() { if (backupBuilder_ != null) { return backupBuilder_.getMessageOrBuilder(); } else { - return backup_ == null ? - com.google.cloud.gkebackup.v1.Backup.getDefaultInstance() : backup_; + return backup_ == null + ? com.google.cloud.gkebackup.v1.Backup.getDefaultInstance() + : backup_; } } /** + * + * *
      * Required. A new version of the Backup resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup, com.google.cloud.gkebackup.v1.Backup.Builder, com.google.cloud.gkebackup.v1.BackupOrBuilder> + com.google.cloud.gkebackup.v1.Backup, + com.google.cloud.gkebackup.v1.Backup.Builder, + com.google.cloud.gkebackup.v1.BackupOrBuilder> getBackupFieldBuilder() { if (backupBuilder_ == null) { - backupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Backup, com.google.cloud.gkebackup.v1.Backup.Builder, com.google.cloud.gkebackup.v1.BackupOrBuilder>( - getBackup(), - getParentForChildren(), - isClean()); + backupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.Backup, + com.google.cloud.gkebackup.v1.Backup.Builder, + com.google.cloud.gkebackup.v1.BackupOrBuilder>( + getBackup(), getParentForChildren(), isClean()); backup_ = null; } return backupBuilder_; @@ -727,8 +817,13 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() { 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_; /** + * + * *
      * This is used to specify the fields to be overwritten in the
      * Backup targeted for update. The values for each of these
@@ -741,12 +836,15 @@ public com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * This is used to specify the fields to be overwritten in the
      * Backup targeted for update. The values for each of these
@@ -759,16 +857,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @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(); } } /** + * + * *
      * This is used to specify the fields to be overwritten in the
      * Backup targeted for update. The values for each of these
@@ -796,6 +899,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Backup targeted for update. The values for each of these
@@ -809,8 +914,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -821,6 +925,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Backup targeted for update. The values for each of these
@@ -838,7 +944,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -850,6 +956,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Backup targeted for update. The values for each of these
@@ -875,6 +983,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Backup targeted for update. The values for each of these
@@ -889,11 +999,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Backup targeted for update. The values for each of these
@@ -911,11 +1023,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_;
       }
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Backup targeted for update. The values for each of these
@@ -930,21 +1045,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     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);
     }
 
@@ -954,12 +1072,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.UpdateBackupRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.UpdateBackupRequest)
   private static final com.google.cloud.gkebackup.v1.UpdateBackupRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.UpdateBackupRequest();
   }
@@ -968,16 +1086,16 @@ public static com.google.cloud.gkebackup.v1.UpdateBackupRequest getDefaultInstan
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateBackupRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateBackupRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateBackupRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateBackupRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -992,6 +1110,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.gkebackup.v1.UpdateBackupRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequestOrBuilder.java
similarity index 79%
rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequestOrBuilder.java
rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequestOrBuilder.java
index 719c3ed..619a2a8 100644
--- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequestOrBuilder.java
+++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateBackupRequestOrBuilder.java
@@ -1,43 +1,72 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkebackup/v1/gkebackup.proto
 
 package com.google.cloud.gkebackup.v1;
 
-public interface UpdateBackupRequestOrBuilder extends
+public interface UpdateBackupRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.UpdateBackupRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. A new version of the Backup resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the backup field is set. */ boolean hasBackup(); /** + * + * *
    * Required. A new version of the Backup resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The backup. */ com.google.cloud.gkebackup.v1.Backup getBackup(); /** + * + * *
    * Required. A new version of the Backup resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.gkebackup.v1.BackupOrBuilder getBackupOrBuilder(); /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * Backup targeted for update. The values for each of these
@@ -50,10 +79,13 @@ public interface UpdateBackupRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * Backup targeted for update. The values for each of these
@@ -66,10 +98,13 @@ public interface UpdateBackupRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * Backup targeted for update. The values for each of these
diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequest.java
similarity index 71%
rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequest.java
rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequest.java
index 5f98a47..516e469 100644
--- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequest.java
+++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequest.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkebackup/v1/gkebackup.proto
 
 package com.google.cloud.gkebackup.v1;
 
 /**
+ *
+ *
  * 
  * Request message for UpdateRestorePlan.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.UpdateRestorePlanRequest} */ -public final class UpdateRestorePlanRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateRestorePlanRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.UpdateRestorePlanRequest) UpdateRestorePlanRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateRestorePlanRequest.newBuilder() to construct. private UpdateRestorePlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateRestorePlanRequest() { - } + + private UpdateRestorePlanRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateRestorePlanRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateRestorePlanRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateRestorePlanRequest( case 0: done = true; break; - case 10: { - com.google.cloud.gkebackup.v1.RestorePlan.Builder subBuilder = null; - if (restorePlan_ != null) { - subBuilder = restorePlan_.toBuilder(); - } - restorePlan_ = input.readMessage(com.google.cloud.gkebackup.v1.RestorePlan.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(restorePlan_); - restorePlan_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.gkebackup.v1.RestorePlan.Builder subBuilder = null; + if (restorePlan_ != null) { + subBuilder = restorePlan_.toBuilder(); + } + restorePlan_ = + input.readMessage( + com.google.cloud.gkebackup.v1.RestorePlan.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(restorePlan_); + restorePlan_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,35 +113,42 @@ private UpdateRestorePlanRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.class, com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.class, + com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.Builder.class); } public static final int RESTORE_PLAN_FIELD_NUMBER = 1; private com.google.cloud.gkebackup.v1.RestorePlan restorePlan_; /** + * + * *
    * Required. A new version of the RestorePlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the restorePlan field is set. */ @java.lang.Override @@ -128,25 +156,36 @@ public boolean hasRestorePlan() { return restorePlan_ != null; } /** + * + * *
    * Required. A new version of the RestorePlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The restorePlan. */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestorePlan getRestorePlan() { - return restorePlan_ == null ? com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() : restorePlan_; + return restorePlan_ == null + ? com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() + : restorePlan_; } /** + * + * *
    * Required. A new version of the RestorePlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilder() { @@ -156,6 +195,8 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilde public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * RestorePlan targeted for update. The values for each of these
@@ -168,6 +209,7 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilde
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -175,6 +217,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * RestorePlan targeted for update. The values for each of these
@@ -187,6 +231,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -194,6 +239,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * RestorePlan targeted for update. The values for each of these
@@ -213,6 +260,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -224,8 +272,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (restorePlan_ != null) {
       output.writeMessage(1, getRestorePlan());
     }
@@ -242,12 +289,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (restorePlan_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getRestorePlan());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRestorePlan());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -257,22 +302,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest other = (com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest) obj;
+    com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest other =
+        (com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest) obj;
 
     if (hasRestorePlan() != other.hasRestorePlan()) return false;
     if (hasRestorePlan()) {
-      if (!getRestorePlan()
-          .equals(other.getRestorePlan())) return false;
+      if (!getRestorePlan().equals(other.getRestorePlan())) 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -299,117 +343,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 UpdateRestorePlan.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.UpdateRestorePlanRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.UpdateRestorePlanRequest) com.google.cloud.gkebackup.v1.UpdateRestorePlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.class, com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.Builder.class); + com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.class, + com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.newBuilder() @@ -417,16 +471,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +499,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_UpdateRestorePlanRequest_descriptor; } @java.lang.Override @@ -467,7 +520,8 @@ public com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest buildPartial() { - com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest result = new com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest(this); + com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest result = + new com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest(this); if (restorePlanBuilder_ == null) { result.restorePlan_ = restorePlan_; } else { @@ -486,38 +540,39 @@ public com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest 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.cloud.gkebackup.v1.UpdateRestorePlanRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest) other); } else { super.mergeFrom(other); return this; @@ -525,7 +580,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest other) { - if (other == com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.getDefaultInstance()) + return this; if (other.hasRestorePlan()) { mergeRestorePlan(other.getRestorePlan()); } @@ -551,7 +607,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,42 +620,61 @@ public Builder mergeFrom( private com.google.cloud.gkebackup.v1.RestorePlan restorePlan_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestorePlan, com.google.cloud.gkebackup.v1.RestorePlan.Builder, com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> restorePlanBuilder_; + com.google.cloud.gkebackup.v1.RestorePlan, + com.google.cloud.gkebackup.v1.RestorePlan.Builder, + com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> + restorePlanBuilder_; /** + * + * *
      * Required. A new version of the RestorePlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the restorePlan field is set. */ public boolean hasRestorePlan() { return restorePlanBuilder_ != null || restorePlan_ != null; } /** + * + * *
      * Required. A new version of the RestorePlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The restorePlan. */ public com.google.cloud.gkebackup.v1.RestorePlan getRestorePlan() { if (restorePlanBuilder_ == null) { - return restorePlan_ == null ? com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() : restorePlan_; + return restorePlan_ == null + ? com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() + : restorePlan_; } else { return restorePlanBuilder_.getMessage(); } } /** + * + * *
      * Required. A new version of the RestorePlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRestorePlan(com.google.cloud.gkebackup.v1.RestorePlan value) { if (restorePlanBuilder_ == null) { @@ -614,12 +690,16 @@ public Builder setRestorePlan(com.google.cloud.gkebackup.v1.RestorePlan value) { return this; } /** + * + * *
      * Required. A new version of the RestorePlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRestorePlan( com.google.cloud.gkebackup.v1.RestorePlan.Builder builderForValue) { @@ -633,18 +713,24 @@ public Builder setRestorePlan( return this; } /** + * + * *
      * Required. A new version of the RestorePlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeRestorePlan(com.google.cloud.gkebackup.v1.RestorePlan value) { if (restorePlanBuilder_ == null) { if (restorePlan_ != null) { restorePlan_ = - com.google.cloud.gkebackup.v1.RestorePlan.newBuilder(restorePlan_).mergeFrom(value).buildPartial(); + com.google.cloud.gkebackup.v1.RestorePlan.newBuilder(restorePlan_) + .mergeFrom(value) + .buildPartial(); } else { restorePlan_ = value; } @@ -656,12 +742,16 @@ public Builder mergeRestorePlan(com.google.cloud.gkebackup.v1.RestorePlan value) return this; } /** + * + * *
      * Required. A new version of the RestorePlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRestorePlan() { if (restorePlanBuilder_ == null) { @@ -675,51 +765,67 @@ public Builder clearRestorePlan() { return this; } /** + * + * *
      * Required. A new version of the RestorePlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkebackup.v1.RestorePlan.Builder getRestorePlanBuilder() { - + onChanged(); return getRestorePlanFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A new version of the RestorePlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilder() { if (restorePlanBuilder_ != null) { return restorePlanBuilder_.getMessageOrBuilder(); } else { - return restorePlan_ == null ? - com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() : restorePlan_; + return restorePlan_ == null + ? com.google.cloud.gkebackup.v1.RestorePlan.getDefaultInstance() + : restorePlan_; } } /** + * + * *
      * Required. A new version of the RestorePlan resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestorePlan, com.google.cloud.gkebackup.v1.RestorePlan.Builder, com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> + com.google.cloud.gkebackup.v1.RestorePlan, + com.google.cloud.gkebackup.v1.RestorePlan.Builder, + com.google.cloud.gkebackup.v1.RestorePlanOrBuilder> getRestorePlanFieldBuilder() { if (restorePlanBuilder_ == null) { - restorePlanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestorePlan, com.google.cloud.gkebackup.v1.RestorePlan.Builder, com.google.cloud.gkebackup.v1.RestorePlanOrBuilder>( - getRestorePlan(), - getParentForChildren(), - isClean()); + restorePlanBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestorePlan, + com.google.cloud.gkebackup.v1.RestorePlan.Builder, + com.google.cloud.gkebackup.v1.RestorePlanOrBuilder>( + getRestorePlan(), getParentForChildren(), isClean()); restorePlan_ = null; } return restorePlanBuilder_; @@ -727,8 +833,13 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilde 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_; /** + * + * *
      * This is used to specify the fields to be overwritten in the
      * RestorePlan targeted for update. The values for each of these
@@ -741,12 +852,15 @@ public com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilde
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * This is used to specify the fields to be overwritten in the
      * RestorePlan targeted for update. The values for each of these
@@ -759,16 +873,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @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(); } } /** + * + * *
      * This is used to specify the fields to be overwritten in the
      * RestorePlan targeted for update. The values for each of these
@@ -796,6 +915,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * RestorePlan targeted for update. The values for each of these
@@ -809,8 +930,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -821,6 +941,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * RestorePlan targeted for update. The values for each of these
@@ -838,7 +960,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -850,6 +972,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * RestorePlan targeted for update. The values for each of these
@@ -875,6 +999,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * RestorePlan targeted for update. The values for each of these
@@ -889,11 +1015,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * RestorePlan targeted for update. The values for each of these
@@ -911,11 +1039,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_;
       }
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * RestorePlan targeted for update. The values for each of these
@@ -930,21 +1061,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     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);
     }
 
@@ -954,12 +1088,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.UpdateRestorePlanRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.UpdateRestorePlanRequest)
   private static final com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest();
   }
@@ -968,16 +1102,16 @@ public static com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateRestorePlanRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateRestorePlanRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateRestorePlanRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateRestorePlanRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -992,6 +1126,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequestOrBuilder.java
similarity index 74%
rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequestOrBuilder.java
rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequestOrBuilder.java
index abbfb5e..163e86f 100644
--- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequestOrBuilder.java
+++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestorePlanRequestOrBuilder.java
@@ -1,43 +1,75 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkebackup/v1/gkebackup.proto
 
 package com.google.cloud.gkebackup.v1;
 
-public interface UpdateRestorePlanRequestOrBuilder extends
+public interface UpdateRestorePlanRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.UpdateRestorePlanRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. A new version of the RestorePlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the restorePlan field is set. */ boolean hasRestorePlan(); /** + * + * *
    * Required. A new version of the RestorePlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The restorePlan. */ com.google.cloud.gkebackup.v1.RestorePlan getRestorePlan(); /** + * + * *
    * Required. A new version of the RestorePlan resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.gkebackup.v1.RestorePlanOrBuilder getRestorePlanOrBuilder(); /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * RestorePlan targeted for update. The values for each of these
@@ -50,10 +82,13 @@ public interface UpdateRestorePlanRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * RestorePlan targeted for update. The values for each of these
@@ -66,10 +101,13 @@ public interface UpdateRestorePlanRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * RestorePlan targeted for update. The values for each of these
diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequest.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequest.java
similarity index 72%
rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequest.java
rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequest.java
index 745afd2..6303e7b 100644
--- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequest.java
+++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequest.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkebackup/v1/gkebackup.proto
 
 package com.google.cloud.gkebackup.v1;
 
 /**
+ *
+ *
  * 
  * Request message for UpdateRestore.
  * 
* * Protobuf type {@code google.cloud.gkebackup.v1.UpdateRestoreRequest} */ -public final class UpdateRestoreRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateRestoreRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.UpdateRestoreRequest) UpdateRestoreRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateRestoreRequest.newBuilder() to construct. private UpdateRestoreRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateRestoreRequest() { - } + + private UpdateRestoreRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateRestoreRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateRestoreRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateRestoreRequest( case 0: done = true; break; - case 10: { - com.google.cloud.gkebackup.v1.Restore.Builder subBuilder = null; - if (restore_ != null) { - subBuilder = restore_.toBuilder(); - } - restore_ = input.readMessage(com.google.cloud.gkebackup.v1.Restore.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(restore_); - restore_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.gkebackup.v1.Restore.Builder subBuilder = null; + if (restore_ != null) { + subBuilder = restore_.toBuilder(); + } + restore_ = + input.readMessage( + com.google.cloud.gkebackup.v1.Restore.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(restore_); + restore_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,35 +113,41 @@ private UpdateRestoreRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.UpdateRestoreRequest.class, com.google.cloud.gkebackup.v1.UpdateRestoreRequest.Builder.class); + com.google.cloud.gkebackup.v1.UpdateRestoreRequest.class, + com.google.cloud.gkebackup.v1.UpdateRestoreRequest.Builder.class); } public static final int RESTORE_FIELD_NUMBER = 1; private com.google.cloud.gkebackup.v1.Restore restore_; /** + * + * *
    * Required. A new version of the Restore resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the restore field is set. */ @java.lang.Override @@ -128,12 +155,16 @@ public boolean hasRestore() { return restore_ != null; } /** + * + * *
    * Required. A new version of the Restore resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The restore. */ @java.lang.Override @@ -141,12 +172,15 @@ public com.google.cloud.gkebackup.v1.Restore getRestore() { return restore_ == null ? com.google.cloud.gkebackup.v1.Restore.getDefaultInstance() : restore_; } /** + * + * *
    * Required. A new version of the Restore resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() { @@ -156,6 +190,8 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * Restore targeted for update. The values for each of these
@@ -168,6 +204,7 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -175,6 +212,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * Restore targeted for update. The values for each of these
@@ -187,6 +226,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -194,6 +234,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * Restore targeted for update. The values for each of these
@@ -213,6 +255,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -224,8 +267,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 (restore_ != null) {
       output.writeMessage(1, getRestore());
     }
@@ -242,12 +284,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (restore_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getRestore());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRestore());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -257,22 +297,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.gkebackup.v1.UpdateRestoreRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkebackup.v1.UpdateRestoreRequest other = (com.google.cloud.gkebackup.v1.UpdateRestoreRequest) obj;
+    com.google.cloud.gkebackup.v1.UpdateRestoreRequest other =
+        (com.google.cloud.gkebackup.v1.UpdateRestoreRequest) obj;
 
     if (hasRestore() != other.hasRestore()) return false;
     if (hasRestore()) {
-      if (!getRestore()
-          .equals(other.getRestore())) return false;
+      if (!getRestore().equals(other.getRestore())) 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -299,117 +338,126 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.gkebackup.v1.UpdateRestoreRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 UpdateRestore.
    * 
* * Protobuf type {@code google.cloud.gkebackup.v1.UpdateRestoreRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.UpdateRestoreRequest) com.google.cloud.gkebackup.v1.UpdateRestoreRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_fieldAccessorTable + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.UpdateRestoreRequest.class, com.google.cloud.gkebackup.v1.UpdateRestoreRequest.Builder.class); + com.google.cloud.gkebackup.v1.UpdateRestoreRequest.class, + com.google.cloud.gkebackup.v1.UpdateRestoreRequest.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.UpdateRestoreRequest.newBuilder() @@ -417,16 +465,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +493,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkebackup.v1.GKEBackupProto.internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.GKEBackupProto + .internal_static_google_cloud_gkebackup_v1_UpdateRestoreRequest_descriptor; } @java.lang.Override @@ -467,7 +514,8 @@ public com.google.cloud.gkebackup.v1.UpdateRestoreRequest build() { @java.lang.Override public com.google.cloud.gkebackup.v1.UpdateRestoreRequest buildPartial() { - com.google.cloud.gkebackup.v1.UpdateRestoreRequest result = new com.google.cloud.gkebackup.v1.UpdateRestoreRequest(this); + com.google.cloud.gkebackup.v1.UpdateRestoreRequest result = + new com.google.cloud.gkebackup.v1.UpdateRestoreRequest(this); if (restoreBuilder_ == null) { result.restore_ = restore_; } else { @@ -486,38 +534,39 @@ public com.google.cloud.gkebackup.v1.UpdateRestoreRequest 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.cloud.gkebackup.v1.UpdateRestoreRequest) { - return mergeFrom((com.google.cloud.gkebackup.v1.UpdateRestoreRequest)other); + return mergeFrom((com.google.cloud.gkebackup.v1.UpdateRestoreRequest) other); } else { super.mergeFrom(other); return this; @@ -525,7 +574,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkebackup.v1.UpdateRestoreRequest other) { - if (other == com.google.cloud.gkebackup.v1.UpdateRestoreRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkebackup.v1.UpdateRestoreRequest.getDefaultInstance()) + return this; if (other.hasRestore()) { mergeRestore(other.getRestore()); } @@ -551,7 +601,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkebackup.v1.UpdateRestoreRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkebackup.v1.UpdateRestoreRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,42 +614,61 @@ public Builder mergeFrom( private com.google.cloud.gkebackup.v1.Restore restore_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Restore, com.google.cloud.gkebackup.v1.Restore.Builder, com.google.cloud.gkebackup.v1.RestoreOrBuilder> restoreBuilder_; + com.google.cloud.gkebackup.v1.Restore, + com.google.cloud.gkebackup.v1.Restore.Builder, + com.google.cloud.gkebackup.v1.RestoreOrBuilder> + restoreBuilder_; /** + * + * *
      * Required. A new version of the Restore resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the restore field is set. */ public boolean hasRestore() { return restoreBuilder_ != null || restore_ != null; } /** + * + * *
      * Required. A new version of the Restore resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The restore. */ public com.google.cloud.gkebackup.v1.Restore getRestore() { if (restoreBuilder_ == null) { - return restore_ == null ? com.google.cloud.gkebackup.v1.Restore.getDefaultInstance() : restore_; + return restore_ == null + ? com.google.cloud.gkebackup.v1.Restore.getDefaultInstance() + : restore_; } else { return restoreBuilder_.getMessage(); } } /** + * + * *
      * Required. A new version of the Restore resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRestore(com.google.cloud.gkebackup.v1.Restore value) { if (restoreBuilder_ == null) { @@ -614,15 +684,18 @@ public Builder setRestore(com.google.cloud.gkebackup.v1.Restore value) { return this; } /** + * + * *
      * Required. A new version of the Restore resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setRestore( - com.google.cloud.gkebackup.v1.Restore.Builder builderForValue) { + public Builder setRestore(com.google.cloud.gkebackup.v1.Restore.Builder builderForValue) { if (restoreBuilder_ == null) { restore_ = builderForValue.build(); onChanged(); @@ -633,18 +706,24 @@ public Builder setRestore( return this; } /** + * + * *
      * Required. A new version of the Restore resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeRestore(com.google.cloud.gkebackup.v1.Restore value) { if (restoreBuilder_ == null) { if (restore_ != null) { restore_ = - com.google.cloud.gkebackup.v1.Restore.newBuilder(restore_).mergeFrom(value).buildPartial(); + com.google.cloud.gkebackup.v1.Restore.newBuilder(restore_) + .mergeFrom(value) + .buildPartial(); } else { restore_ = value; } @@ -656,12 +735,16 @@ public Builder mergeRestore(com.google.cloud.gkebackup.v1.Restore value) { return this; } /** + * + * *
      * Required. A new version of the Restore resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRestore() { if (restoreBuilder_ == null) { @@ -675,51 +758,67 @@ public Builder clearRestore() { return this; } /** + * + * *
      * Required. A new version of the Restore resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkebackup.v1.Restore.Builder getRestoreBuilder() { - + onChanged(); return getRestoreFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A new version of the Restore resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() { if (restoreBuilder_ != null) { return restoreBuilder_.getMessageOrBuilder(); } else { - return restore_ == null ? - com.google.cloud.gkebackup.v1.Restore.getDefaultInstance() : restore_; + return restore_ == null + ? com.google.cloud.gkebackup.v1.Restore.getDefaultInstance() + : restore_; } } /** + * + * *
      * Required. A new version of the Restore resource that contains updated fields.
      * This may be sparsely populated if an `update_mask` is provided.
      * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Restore, com.google.cloud.gkebackup.v1.Restore.Builder, com.google.cloud.gkebackup.v1.RestoreOrBuilder> + com.google.cloud.gkebackup.v1.Restore, + com.google.cloud.gkebackup.v1.Restore.Builder, + com.google.cloud.gkebackup.v1.RestoreOrBuilder> getRestoreFieldBuilder() { if (restoreBuilder_ == null) { - restoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Restore, com.google.cloud.gkebackup.v1.Restore.Builder, com.google.cloud.gkebackup.v1.RestoreOrBuilder>( - getRestore(), - getParentForChildren(), - isClean()); + restoreBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.Restore, + com.google.cloud.gkebackup.v1.Restore.Builder, + com.google.cloud.gkebackup.v1.RestoreOrBuilder>( + getRestore(), getParentForChildren(), isClean()); restore_ = null; } return restoreBuilder_; @@ -727,8 +826,13 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() { 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_; /** + * + * *
      * This is used to specify the fields to be overwritten in the
      * Restore targeted for update. The values for each of these
@@ -741,12 +845,15 @@ public com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * This is used to specify the fields to be overwritten in the
      * Restore targeted for update. The values for each of these
@@ -759,16 +866,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @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(); } } /** + * + * *
      * This is used to specify the fields to be overwritten in the
      * Restore targeted for update. The values for each of these
@@ -796,6 +908,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Restore targeted for update. The values for each of these
@@ -809,8 +923,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -821,6 +934,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Restore targeted for update. The values for each of these
@@ -838,7 +953,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -850,6 +965,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Restore targeted for update. The values for each of these
@@ -875,6 +992,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Restore targeted for update. The values for each of these
@@ -889,11 +1008,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Restore targeted for update. The values for each of these
@@ -911,11 +1032,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_;
       }
     }
     /**
+     *
+     *
      * 
      * This is used to specify the fields to be overwritten in the
      * Restore targeted for update. The values for each of these
@@ -930,21 +1054,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     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);
     }
 
@@ -954,12 +1081,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.UpdateRestoreRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.UpdateRestoreRequest)
   private static final com.google.cloud.gkebackup.v1.UpdateRestoreRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.UpdateRestoreRequest();
   }
@@ -968,16 +1095,16 @@ public static com.google.cloud.gkebackup.v1.UpdateRestoreRequest getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateRestoreRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateRestoreRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateRestoreRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateRestoreRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -992,6 +1119,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.gkebackup.v1.UpdateRestoreRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequestOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequestOrBuilder.java
similarity index 79%
rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequestOrBuilder.java
rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequestOrBuilder.java
index 4c1d807..a713c02 100644
--- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequestOrBuilder.java
+++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/UpdateRestoreRequestOrBuilder.java
@@ -1,43 +1,72 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkebackup/v1/gkebackup.proto
 
 package com.google.cloud.gkebackup.v1;
 
-public interface UpdateRestoreRequestOrBuilder extends
+public interface UpdateRestoreRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.UpdateRestoreRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. A new version of the Restore resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the restore field is set. */ boolean hasRestore(); /** + * + * *
    * Required. A new version of the Restore resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The restore. */ com.google.cloud.gkebackup.v1.Restore getRestore(); /** + * + * *
    * Required. A new version of the Restore resource that contains updated fields.
    * This may be sparsely populated if an `update_mask` is provided.
    * 
* - * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.gkebackup.v1.RestoreOrBuilder getRestoreOrBuilder(); /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * Restore targeted for update. The values for each of these
@@ -50,10 +79,13 @@ public interface UpdateRestoreRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * Restore targeted for update. The values for each of these
@@ -66,10 +98,13 @@ public interface UpdateRestoreRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * This is used to specify the fields to be overwritten in the
    * Restore targeted for update. The values for each of these
diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackup.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackup.java
similarity index 69%
rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackup.java
rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackup.java
index 406d1fd..294c8a2 100644
--- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackup.java
+++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackup.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkebackup/v1/volume.proto
 
 package com.google.cloud.gkebackup.v1;
 
 /**
+ *
+ *
  * 
  * Represents the backup of a specific persistent volume as a component of a
  * Backup - both the record of the operation and a pointer to the underlying
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.gkebackup.v1.VolumeBackup}
  */
-public final class VolumeBackup extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class VolumeBackup extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.VolumeBackup)
     VolumeBackupOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use VolumeBackup.newBuilder() to construct.
   private VolumeBackup(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private VolumeBackup() {
     name_ = "";
     uid_ = "";
@@ -34,16 +52,15 @@ private VolumeBackup() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new VolumeBackup();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private VolumeBackup(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -62,117 +79,133 @@ private VolumeBackup(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            uid_ = s;
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
-            }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+              uid_ = s;
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 42: {
-            com.google.cloud.gkebackup.v1.NamespacedName.Builder subBuilder = null;
-            if (sourcePvc_ != null) {
-              subBuilder = sourcePvc_.toBuilder();
+          case 34:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            sourcePvc_ = input.readMessage(com.google.cloud.gkebackup.v1.NamespacedName.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(sourcePvc_);
-              sourcePvc_ = subBuilder.buildPartial();
+          case 42:
+            {
+              com.google.cloud.gkebackup.v1.NamespacedName.Builder subBuilder = null;
+              if (sourcePvc_ != null) {
+                subBuilder = sourcePvc_.toBuilder();
+              }
+              sourcePvc_ =
+                  input.readMessage(
+                      com.google.cloud.gkebackup.v1.NamespacedName.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(sourcePvc_);
+                sourcePvc_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            volumeBackupHandle_ = s;
-            break;
-          }
-          case 56: {
-            int rawValue = input.readEnum();
-
-            format_ = rawValue;
-            break;
-          }
-          case 64: {
-
-            storageBytes_ = input.readInt64();
-            break;
-          }
-          case 72: {
+              volumeBackupHandle_ = s;
+              break;
+            }
+          case 56:
+            {
+              int rawValue = input.readEnum();
 
-            diskSizeBytes_ = input.readInt64();
-            break;
-          }
-          case 82: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (completeTime_ != null) {
-              subBuilder = completeTime_.toBuilder();
+              format_ = rawValue;
+              break;
             }
-            completeTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(completeTime_);
-              completeTime_ = subBuilder.buildPartial();
+          case 64:
+            {
+              storageBytes_ = input.readInt64();
+              break;
             }
+          case 72:
+            {
+              diskSizeBytes_ = input.readInt64();
+              break;
+            }
+          case 82:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (completeTime_ != null) {
+                subBuilder = completeTime_.toBuilder();
+              }
+              completeTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(completeTime_);
+                completeTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 88:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 88: {
-            int rawValue = input.readEnum();
-
-            state_ = rawValue;
-            break;
-          }
-          case 98: {
-            java.lang.String s = input.readStringRequireUtf8();
+              state_ = rawValue;
+              break;
+            }
+          case 98:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            stateMessage_ = s;
-            break;
-          }
-          case 106: {
-            java.lang.String s = input.readStringRequireUtf8();
+              stateMessage_ = s;
+              break;
+            }
+          case 106:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            etag_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              etag_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -180,36 +213,41 @@ private VolumeBackup(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkebackup.v1.VolumeProto.internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkebackup.v1.VolumeProto
+        .internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkebackup.v1.VolumeProto.internal_static_google_cloud_gkebackup_v1_VolumeBackup_fieldAccessorTable
+    return com.google.cloud.gkebackup.v1.VolumeProto
+        .internal_static_google_cloud_gkebackup_v1_VolumeBackup_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkebackup.v1.VolumeBackup.class, com.google.cloud.gkebackup.v1.VolumeBackup.Builder.class);
+            com.google.cloud.gkebackup.v1.VolumeBackup.class,
+            com.google.cloud.gkebackup.v1.VolumeBackup.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Identifies the format used for the volume backup.
    * 
* * Protobuf enum {@code google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat} */ - public enum VolumeBackupFormat - implements com.google.protobuf.ProtocolMessageEnum { + public enum VolumeBackupFormat implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value, not specified.
      * 
@@ -218,6 +256,8 @@ public enum VolumeBackupFormat */ VOLUME_BACKUP_FORMAT_UNSPECIFIED(0), /** + * + * *
      * Compute Engine Persistent Disk snapshot based volume backup.
      * 
@@ -229,6 +269,8 @@ public enum VolumeBackupFormat ; /** + * + * *
      * Default value, not specified.
      * 
@@ -237,6 +279,8 @@ public enum VolumeBackupFormat */ public static final int VOLUME_BACKUP_FORMAT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Compute Engine Persistent Disk snapshot based volume backup.
      * 
@@ -245,7 +289,6 @@ public enum VolumeBackupFormat */ public static final int GCE_PERSISTENT_DISK_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -270,9 +313,12 @@ public static VolumeBackupFormat valueOf(int value) { */ public static VolumeBackupFormat forNumber(int value) { switch (value) { - case 0: return VOLUME_BACKUP_FORMAT_UNSPECIFIED; - case 1: return GCE_PERSISTENT_DISK; - default: return null; + case 0: + return VOLUME_BACKUP_FORMAT_UNSPECIFIED; + case 1: + return GCE_PERSISTENT_DISK; + default: + return null; } } @@ -280,28 +326,28 @@ public static VolumeBackupFormat forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - VolumeBackupFormat> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public VolumeBackupFormat findValueByNumber(int number) { - return VolumeBackupFormat.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 VolumeBackupFormat findValueByNumber(int number) { + return VolumeBackupFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.gkebackup.v1.VolumeBackup.getDescriptor().getEnumTypes().get(0); } @@ -310,8 +356,7 @@ public VolumeBackupFormat findValueByNumber(int number) { public static VolumeBackupFormat 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; @@ -329,15 +374,18 @@ private VolumeBackupFormat(int value) { } /** + * + * *
    * The current state of a VolumeBackup
    * 
* * Protobuf enum {@code google.cloud.gkebackup.v1.VolumeBackup.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * This is an illegal state and should not be encountered.
      * 
@@ -346,6 +394,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * A volume for the backup was identified and backup process is about to
      * start.
@@ -355,6 +405,8 @@ public enum State
      */
     CREATING(1),
     /**
+     *
+     *
      * 
      * The volume backup operation has begun and is in the initial "snapshot"
      * phase of the process. Any defined ProtectedApplication "pre" hooks will
@@ -366,6 +418,8 @@ public enum State
      */
     SNAPSHOTTING(2),
     /**
+     *
+     *
      * 
      * The snapshot phase of the volume backup operation has completed and
      * the snapshot is now being uploaded to backup storage.
@@ -375,6 +429,8 @@ public enum State
      */
     UPLOADING(3),
     /**
+     *
+     *
      * 
      * The volume backup operation has completed successfully.
      * 
@@ -383,6 +439,8 @@ public enum State */ SUCCEEDED(4), /** + * + * *
      * The volume backup operation has failed.
      * 
@@ -391,6 +449,8 @@ public enum State */ FAILED(5), /** + * + * *
      * This VolumeBackup resource (and its associated artifacts) is in the
      * process of being deleted.
@@ -403,6 +463,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * This is an illegal state and should not be encountered.
      * 
@@ -411,6 +473,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * A volume for the backup was identified and backup process is about to
      * start.
@@ -420,6 +484,8 @@ public enum State
      */
     public static final int CREATING_VALUE = 1;
     /**
+     *
+     *
      * 
      * The volume backup operation has begun and is in the initial "snapshot"
      * phase of the process. Any defined ProtectedApplication "pre" hooks will
@@ -431,6 +497,8 @@ public enum State
      */
     public static final int SNAPSHOTTING_VALUE = 2;
     /**
+     *
+     *
      * 
      * The snapshot phase of the volume backup operation has completed and
      * the snapshot is now being uploaded to backup storage.
@@ -440,6 +508,8 @@ public enum State
      */
     public static final int UPLOADING_VALUE = 3;
     /**
+     *
+     *
      * 
      * The volume backup operation has completed successfully.
      * 
@@ -448,6 +518,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 4; /** + * + * *
      * The volume backup operation has failed.
      * 
@@ -456,6 +528,8 @@ public enum State */ public static final int FAILED_VALUE = 5; /** + * + * *
      * This VolumeBackup resource (and its associated artifacts) is in the
      * process of being deleted.
@@ -465,7 +539,6 @@ public enum State
      */
     public static final int DELETING_VALUE = 6;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -490,53 +563,57 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return CREATING;
-        case 2: return SNAPSHOTTING;
-        case 3: return UPLOADING;
-        case 4: return SUCCEEDED;
-        case 5: return FAILED;
-        case 6: return DELETING;
-        default: return null;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return CREATING;
+        case 2:
+          return SNAPSHOTTING;
+        case 3:
+          return UPLOADING;
+        case 4:
+          return SUCCEEDED;
+        case 5:
+          return FAILED;
+        case 6:
+          return DELETING;
+        default:
+          return null;
+      }
+    }
+
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.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 State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.gkebackup.v1.VolumeBackup.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State 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;
@@ -556,12 +633,15 @@ private State(int value) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. The full name of the VolumeBackup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -570,30 +650,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 full name of the VolumeBackup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
    * 
* * 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 { @@ -604,12 +684,15 @@ public java.lang.String getName() { public static final int UID_FIELD_NUMBER = 2; private volatile java.lang.Object uid_; /** + * + * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -618,30 +701,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -652,12 +735,16 @@ public java.lang.String getUid() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The timestamp when this VolumeBackup resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -665,12 +752,16 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The timestamp when this VolumeBackup resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -678,12 +769,15 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The timestamp when this VolumeBackup resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -693,12 +787,16 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The timestamp when this VolumeBackup resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -706,12 +804,16 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The timestamp when this VolumeBackup resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -719,12 +821,15 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The timestamp when this VolumeBackup resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -734,12 +839,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int SOURCE_PVC_FIELD_NUMBER = 5; private com.google.cloud.gkebackup.v1.NamespacedName sourcePvc_; /** + * + * *
    * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
    * was created.
    * 
* - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the sourcePvc field is set. */ @java.lang.Override @@ -747,25 +857,36 @@ public boolean hasSourcePvc() { return sourcePvc_ != null; } /** + * + * *
    * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
    * was created.
    * 
* - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The sourcePvc. */ @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacedName getSourcePvc() { - return sourcePvc_ == null ? com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() : sourcePvc_; + return sourcePvc_ == null + ? com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() + : sourcePvc_; } /** + * + * *
    * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
    * was created.
    * 
* - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getSourcePvcOrBuilder() { @@ -775,11 +896,14 @@ public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getSourcePvcOrBuild public static final int VOLUME_BACKUP_HANDLE_FIELD_NUMBER = 6; private volatile java.lang.Object volumeBackupHandle_; /** + * + * *
    * Output only. A storage system-specific opaque handle to the underlying volume backup.
    * 
* * string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The volumeBackupHandle. */ @java.lang.Override @@ -788,29 +912,29 @@ public java.lang.String getVolumeBackupHandle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volumeBackupHandle_ = s; return s; } } /** + * + * *
    * Output only. A storage system-specific opaque handle to the underlying volume backup.
    * 
* * string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for volumeBackupHandle. */ @java.lang.Override - public com.google.protobuf.ByteString - getVolumeBackupHandleBytes() { + public com.google.protobuf.ByteString getVolumeBackupHandleBytes() { java.lang.Object ref = volumeBackupHandle_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeBackupHandle_ = b; return b; } else { @@ -821,33 +945,50 @@ public java.lang.String getVolumeBackupHandle() { public static final int FORMAT_FIELD_NUMBER = 7; private int format_; /** + * + * *
    * Output only. The format used for the volume backup.
    * 
* - * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for format. */ - @java.lang.Override public int getFormatValue() { + @java.lang.Override + public int getFormatValue() { return format_; } /** + * + * *
    * Output only. The format used for the volume backup.
    * 
* - * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The format. */ - @java.lang.Override public com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat getFormat() { + @java.lang.Override + public com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat getFormat() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat result = com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat.valueOf(format_); - return result == null ? com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat.UNRECOGNIZED : result; + com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat result = + com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat.valueOf(format_); + return result == null + ? com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat.UNRECOGNIZED + : result; } public static final int STORAGE_BYTES_FIELD_NUMBER = 8; private long storageBytes_; /** + * + * *
    * Output only. The aggregate size of the underlying artifacts associated with this
    * VolumeBackup in the backup storage. This may change over time when
@@ -857,6 +998,7 @@ public java.lang.String getVolumeBackupHandle() {
    * 
* * int64 storage_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The storageBytes. */ @java.lang.Override @@ -867,11 +1009,14 @@ public long getStorageBytes() { public static final int DISK_SIZE_BYTES_FIELD_NUMBER = 9; private long diskSizeBytes_; /** + * + * *
    * Output only. The minimum size of the disk to which this VolumeBackup can be restored.
    * 
* * int64 disk_size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The diskSizeBytes. */ @java.lang.Override @@ -882,12 +1027,17 @@ public long getDiskSizeBytes() { public static final int COMPLETE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp completeTime_; /** + * + * *
    * Output only. The timestamp when the associated underlying volume backup
    * operation completed.
    * 
* - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the completeTime field is set. */ @java.lang.Override @@ -895,25 +1045,36 @@ public boolean hasCompleteTime() { return completeTime_ != null; } /** + * + * *
    * Output only. The timestamp when the associated underlying volume backup
    * operation completed.
    * 
* - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The completeTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCompleteTime() { - return completeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; } /** + * + * *
    * Output only. The timestamp when the associated underlying volume backup
    * operation completed.
    * 
* - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { @@ -923,39 +1084,55 @@ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 11; private int state_; /** + * + * *
    * Output only. The current state of this VolumeBackup.
    * 
* - * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current state of this VolumeBackup.
    * 
* - * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.gkebackup.v1.VolumeBackup.State getState() { + @java.lang.Override + public com.google.cloud.gkebackup.v1.VolumeBackup.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.VolumeBackup.State result = com.google.cloud.gkebackup.v1.VolumeBackup.State.valueOf(state_); + com.google.cloud.gkebackup.v1.VolumeBackup.State result = + com.google.cloud.gkebackup.v1.VolumeBackup.State.valueOf(state_); return result == null ? com.google.cloud.gkebackup.v1.VolumeBackup.State.UNRECOGNIZED : result; } public static final int STATE_MESSAGE_FIELD_NUMBER = 12; private volatile java.lang.Object stateMessage_; /** + * + * *
    * Output only. A human readable message explaining why the VolumeBackup is in its current
    * state.
    * 
* * string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stateMessage. */ @java.lang.Override @@ -964,30 +1141,30 @@ public java.lang.String getStateMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; } } /** + * + * *
    * Output only. A human readable message explaining why the VolumeBackup is in its current
    * state.
    * 
* * string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stateMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStateMessageBytes() { + public com.google.protobuf.ByteString getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -998,6 +1175,8 @@ public java.lang.String getStateMessage() { public static final int ETAG_FIELD_NUMBER = 13; private volatile java.lang.Object etag_; /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a volume backup from overwriting each
@@ -1007,6 +1186,7 @@ public java.lang.String getStateMessage() {
    * 
* * string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ @java.lang.Override @@ -1015,14 +1195,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; } } /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a volume backup from overwriting each
@@ -1032,16 +1213,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1050,6 +1230,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1061,8 +1242,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_); } @@ -1081,7 +1261,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volumeBackupHandle_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, volumeBackupHandle_); } - if (format_ != com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat.VOLUME_BACKUP_FORMAT_UNSPECIFIED.getNumber()) { + if (format_ + != com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat + .VOLUME_BACKUP_FORMAT_UNSPECIFIED + .getNumber()) { output.writeEnum(7, format_); } if (storageBytes_ != 0L) { @@ -1118,39 +1301,34 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } if (sourcePvc_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSourcePvc()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSourcePvc()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volumeBackupHandle_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, volumeBackupHandle_); } - if (format_ != com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat.VOLUME_BACKUP_FORMAT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, format_); + if (format_ + != com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat + .VOLUME_BACKUP_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, format_); } if (storageBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, storageBytes_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, storageBytes_); } if (diskSizeBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, diskSizeBytes_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, diskSizeBytes_); } if (completeTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getCompleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCompleteTime()); } if (state_ != com.google.cloud.gkebackup.v1.VolumeBackup.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, stateMessage_); @@ -1166,49 +1344,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.VolumeBackup)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.VolumeBackup other = (com.google.cloud.gkebackup.v1.VolumeBackup) obj; + com.google.cloud.gkebackup.v1.VolumeBackup other = + (com.google.cloud.gkebackup.v1.VolumeBackup) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUid() - .equals(other.getUid())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) 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 (hasSourcePvc() != other.hasSourcePvc()) return false; if (hasSourcePvc()) { - if (!getSourcePvc() - .equals(other.getSourcePvc())) return false; + if (!getSourcePvc().equals(other.getSourcePvc())) return false; } - if (!getVolumeBackupHandle() - .equals(other.getVolumeBackupHandle())) return false; + if (!getVolumeBackupHandle().equals(other.getVolumeBackupHandle())) return false; if (format_ != other.format_) return false; - if (getStorageBytes() - != other.getStorageBytes()) return false; - if (getDiskSizeBytes() - != other.getDiskSizeBytes()) return false; + if (getStorageBytes() != other.getStorageBytes()) return false; + if (getDiskSizeBytes() != other.getDiskSizeBytes()) return false; if (hasCompleteTime() != other.hasCompleteTime()) return false; if (hasCompleteTime()) { - if (!getCompleteTime() - .equals(other.getCompleteTime())) return false; + if (!getCompleteTime().equals(other.getCompleteTime())) return false; } if (state_ != other.state_) return false; - if (!getStateMessage() - .equals(other.getStateMessage())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getStateMessage().equals(other.getStateMessage())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1241,11 +1409,9 @@ public int hashCode() { hash = (37 * hash) + FORMAT_FIELD_NUMBER; hash = (53 * hash) + format_; hash = (37 * hash) + STORAGE_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getStorageBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStorageBytes()); hash = (37 * hash) + DISK_SIZE_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDiskSizeBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDiskSizeBytes()); if (hasCompleteTime()) { hash = (37 * hash) + COMPLETE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCompleteTime().hashCode(); @@ -1261,97 +1427,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.VolumeBackup parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.VolumeBackup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.VolumeBackup parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.VolumeBackup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.VolumeBackup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 backup of a specific persistent volume as a component of a
    * Backup - both the record of the operation and a pointer to the underlying
@@ -1361,21 +1534,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.VolumeBackup}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.VolumeBackup)
       com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkebackup.v1.VolumeProto.internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkebackup.v1.VolumeProto
+          .internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkebackup.v1.VolumeProto.internal_static_google_cloud_gkebackup_v1_VolumeBackup_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.VolumeProto
+          .internal_static_google_cloud_gkebackup_v1_VolumeBackup_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.VolumeBackup.class, com.google.cloud.gkebackup.v1.VolumeBackup.Builder.class);
+              com.google.cloud.gkebackup.v1.VolumeBackup.class,
+              com.google.cloud.gkebackup.v1.VolumeBackup.Builder.class);
     }
 
     // Construct using com.google.cloud.gkebackup.v1.VolumeBackup.newBuilder()
@@ -1383,16 +1558,15 @@ 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) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1442,9 +1616,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkebackup.v1.VolumeProto.internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkebackup.v1.VolumeProto
+          .internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor;
     }
 
     @java.lang.Override
@@ -1463,7 +1637,8 @@ public com.google.cloud.gkebackup.v1.VolumeBackup build() {
 
     @java.lang.Override
     public com.google.cloud.gkebackup.v1.VolumeBackup buildPartial() {
-      com.google.cloud.gkebackup.v1.VolumeBackup result = new com.google.cloud.gkebackup.v1.VolumeBackup(this);
+      com.google.cloud.gkebackup.v1.VolumeBackup result =
+          new com.google.cloud.gkebackup.v1.VolumeBackup(this);
       result.name_ = name_;
       result.uid_ = uid_;
       if (createTimeBuilder_ == null) {
@@ -1501,38 +1676,39 @@ public com.google.cloud.gkebackup.v1.VolumeBackup 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.cloud.gkebackup.v1.VolumeBackup) {
-        return mergeFrom((com.google.cloud.gkebackup.v1.VolumeBackup)other);
+        return mergeFrom((com.google.cloud.gkebackup.v1.VolumeBackup) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1616,19 +1792,21 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The full name of the VolumeBackup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
      * 
* * 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; @@ -1637,21 +1815,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The full name of the VolumeBackup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
      * 
* * 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 { @@ -1659,57 +1838,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The full name of the VolumeBackup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
      * 
* * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The full name of the VolumeBackup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The full name of the VolumeBackup resource.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
      * 
* * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1717,19 +1903,21 @@ public Builder setNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -1738,21 +1926,22 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -1760,57 +1949,64 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { + public Builder setUid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { + public Builder setUidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); return this; @@ -1818,42 +2014,61 @@ public Builder setUidBytes( 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 timestamp when this VolumeBackup resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The timestamp when this VolumeBackup resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The timestamp when this VolumeBackup resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1869,15 +2084,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this VolumeBackup resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1888,18 +2106,22 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The timestamp when this VolumeBackup resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1911,12 +2133,16 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this VolumeBackup resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1930,51 +2156,67 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The timestamp when this VolumeBackup resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp when this VolumeBackup resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The timestamp when this VolumeBackup resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1982,42 +2224,61 @@ 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 timestamp when this VolumeBackup resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The timestamp when this VolumeBackup resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this VolumeBackup resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2033,15 +2294,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this VolumeBackup resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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(); onChanged(); @@ -2052,18 +2316,22 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The timestamp when this VolumeBackup resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2075,12 +2343,16 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this VolumeBackup resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2094,51 +2366,67 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The timestamp when this VolumeBackup resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp when this VolumeBackup resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this VolumeBackup resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp 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> 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_; @@ -2146,42 +2434,61 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.cloud.gkebackup.v1.NamespacedName sourcePvc_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedName, com.google.cloud.gkebackup.v1.NamespacedName.Builder, com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> sourcePvcBuilder_; + com.google.cloud.gkebackup.v1.NamespacedName, + com.google.cloud.gkebackup.v1.NamespacedName.Builder, + com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> + sourcePvcBuilder_; /** + * + * *
      * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
      * was created.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the sourcePvc field is set. */ public boolean hasSourcePvc() { return sourcePvcBuilder_ != null || sourcePvc_ != null; } /** + * + * *
      * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
      * was created.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The sourcePvc. */ public com.google.cloud.gkebackup.v1.NamespacedName getSourcePvc() { if (sourcePvcBuilder_ == null) { - return sourcePvc_ == null ? com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() : sourcePvc_; + return sourcePvc_ == null + ? com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() + : sourcePvc_; } else { return sourcePvcBuilder_.getMessage(); } } /** + * + * *
      * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
      * was created.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSourcePvc(com.google.cloud.gkebackup.v1.NamespacedName value) { if (sourcePvcBuilder_ == null) { @@ -2197,12 +2504,16 @@ public Builder setSourcePvc(com.google.cloud.gkebackup.v1.NamespacedName value) return this; } /** + * + * *
      * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
      * was created.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSourcePvc( com.google.cloud.gkebackup.v1.NamespacedName.Builder builderForValue) { @@ -2216,18 +2527,24 @@ public Builder setSourcePvc( return this; } /** + * + * *
      * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
      * was created.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeSourcePvc(com.google.cloud.gkebackup.v1.NamespacedName value) { if (sourcePvcBuilder_ == null) { if (sourcePvc_ != null) { sourcePvc_ = - com.google.cloud.gkebackup.v1.NamespacedName.newBuilder(sourcePvc_).mergeFrom(value).buildPartial(); + com.google.cloud.gkebackup.v1.NamespacedName.newBuilder(sourcePvc_) + .mergeFrom(value) + .buildPartial(); } else { sourcePvc_ = value; } @@ -2239,12 +2556,16 @@ public Builder mergeSourcePvc(com.google.cloud.gkebackup.v1.NamespacedName value return this; } /** + * + * *
      * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
      * was created.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSourcePvc() { if (sourcePvcBuilder_ == null) { @@ -2258,51 +2579,67 @@ public Builder clearSourcePvc() { return this; } /** + * + * *
      * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
      * was created.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkebackup.v1.NamespacedName.Builder getSourcePvcBuilder() { - + onChanged(); return getSourcePvcFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
      * was created.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getSourcePvcOrBuilder() { if (sourcePvcBuilder_ != null) { return sourcePvcBuilder_.getMessageOrBuilder(); } else { - return sourcePvc_ == null ? - com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() : sourcePvc_; + return sourcePvc_ == null + ? com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() + : sourcePvc_; } } /** + * + * *
      * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
      * was created.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedName, com.google.cloud.gkebackup.v1.NamespacedName.Builder, com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> + com.google.cloud.gkebackup.v1.NamespacedName, + com.google.cloud.gkebackup.v1.NamespacedName.Builder, + com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> getSourcePvcFieldBuilder() { if (sourcePvcBuilder_ == null) { - sourcePvcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedName, com.google.cloud.gkebackup.v1.NamespacedName.Builder, com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder>( - getSourcePvc(), - getParentForChildren(), - isClean()); + sourcePvcBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.NamespacedName, + com.google.cloud.gkebackup.v1.NamespacedName.Builder, + com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder>( + getSourcePvc(), getParentForChildren(), isClean()); sourcePvc_ = null; } return sourcePvcBuilder_; @@ -2310,18 +2647,20 @@ public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getSourcePvcOrBuild private java.lang.Object volumeBackupHandle_ = ""; /** + * + * *
      * Output only. A storage system-specific opaque handle to the underlying volume backup.
      * 
* * string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The volumeBackupHandle. */ public java.lang.String getVolumeBackupHandle() { java.lang.Object ref = volumeBackupHandle_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volumeBackupHandle_ = s; return s; @@ -2330,20 +2669,21 @@ public java.lang.String getVolumeBackupHandle() { } } /** + * + * *
      * Output only. A storage system-specific opaque handle to the underlying volume backup.
      * 
* * string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for volumeBackupHandle. */ - public com.google.protobuf.ByteString - getVolumeBackupHandleBytes() { + public com.google.protobuf.ByteString getVolumeBackupHandleBytes() { java.lang.Object ref = volumeBackupHandle_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeBackupHandle_ = b; return b; } else { @@ -2351,54 +2691,61 @@ public java.lang.String getVolumeBackupHandle() { } } /** + * + * *
      * Output only. A storage system-specific opaque handle to the underlying volume backup.
      * 
* * string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The volumeBackupHandle to set. * @return This builder for chaining. */ - public Builder setVolumeBackupHandle( - java.lang.String value) { + public Builder setVolumeBackupHandle(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + volumeBackupHandle_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A storage system-specific opaque handle to the underlying volume backup.
      * 
* * string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVolumeBackupHandle() { - + volumeBackupHandle_ = getDefaultInstance().getVolumeBackupHandle(); onChanged(); return this; } /** + * + * *
      * Output only. A storage system-specific opaque handle to the underlying volume backup.
      * 
* * string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for volumeBackupHandle to set. * @return This builder for chaining. */ - public Builder setVolumeBackupHandleBytes( - com.google.protobuf.ByteString value) { + public Builder setVolumeBackupHandleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volumeBackupHandle_ = value; onChanged(); return this; @@ -2406,51 +2753,75 @@ public Builder setVolumeBackupHandleBytes( private int format_ = 0; /** + * + * *
      * Output only. The format used for the volume backup.
      * 
* - * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for format. */ - @java.lang.Override public int getFormatValue() { + @java.lang.Override + public int getFormatValue() { return format_; } /** + * + * *
      * Output only. The format used for the volume backup.
      * 
* - * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for format to set. * @return This builder for chaining. */ public Builder setFormatValue(int value) { - + format_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The format used for the volume backup.
      * 
* - * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The format. */ @java.lang.Override public com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat getFormat() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat result = com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat.valueOf(format_); - return result == null ? com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat.UNRECOGNIZED : result; + com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat result = + com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat.valueOf(format_); + return result == null + ? com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The format used for the volume backup.
      * 
* - * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The format to set. * @return This builder for chaining. */ @@ -2458,28 +2829,35 @@ public Builder setFormat(com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackup if (value == null) { throw new NullPointerException(); } - + format_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The format used for the volume backup.
      * 
* - * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearFormat() { - + format_ = 0; onChanged(); return this; } - private long storageBytes_ ; + private long storageBytes_; /** + * + * *
      * Output only. The aggregate size of the underlying artifacts associated with this
      * VolumeBackup in the backup storage. This may change over time when
@@ -2489,6 +2867,7 @@ public Builder clearFormat() {
      * 
* * int64 storage_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The storageBytes. */ @java.lang.Override @@ -2496,6 +2875,8 @@ public long getStorageBytes() { return storageBytes_; } /** + * + * *
      * Output only. The aggregate size of the underlying artifacts associated with this
      * VolumeBackup in the backup storage. This may change over time when
@@ -2505,16 +2886,19 @@ public long getStorageBytes() {
      * 
* * int64 storage_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The storageBytes to set. * @return This builder for chaining. */ public Builder setStorageBytes(long value) { - + storageBytes_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The aggregate size of the underlying artifacts associated with this
      * VolumeBackup in the backup storage. This may change over time when
@@ -2524,22 +2908,26 @@ public Builder setStorageBytes(long value) {
      * 
* * int64 storage_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStorageBytes() { - + storageBytes_ = 0L; onChanged(); return this; } - private long diskSizeBytes_ ; + private long diskSizeBytes_; /** + * + * *
      * Output only. The minimum size of the disk to which this VolumeBackup can be restored.
      * 
* * int64 disk_size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The diskSizeBytes. */ @java.lang.Override @@ -2547,30 +2935,36 @@ public long getDiskSizeBytes() { return diskSizeBytes_; } /** + * + * *
      * Output only. The minimum size of the disk to which this VolumeBackup can be restored.
      * 
* * int64 disk_size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The diskSizeBytes to set. * @return This builder for chaining. */ public Builder setDiskSizeBytes(long value) { - + diskSizeBytes_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The minimum size of the disk to which this VolumeBackup can be restored.
      * 
* * int64 disk_size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDiskSizeBytes() { - + diskSizeBytes_ = 0L; onChanged(); return this; @@ -2578,42 +2972,61 @@ public Builder clearDiskSizeBytes() { private com.google.protobuf.Timestamp completeTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completeTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + completeTimeBuilder_; /** + * + * *
      * Output only. The timestamp when the associated underlying volume backup
      * operation completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the completeTime field is set. */ public boolean hasCompleteTime() { return completeTimeBuilder_ != null || completeTime_ != null; } /** + * + * *
      * Output only. The timestamp when the associated underlying volume backup
      * operation completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The completeTime. */ public com.google.protobuf.Timestamp getCompleteTime() { if (completeTimeBuilder_ == null) { - return completeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; } else { return completeTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The timestamp when the associated underlying volume backup
      * operation completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCompleteTime(com.google.protobuf.Timestamp value) { if (completeTimeBuilder_ == null) { @@ -2629,15 +3042,18 @@ public Builder setCompleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when the associated underlying volume backup
      * operation completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCompleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (completeTimeBuilder_ == null) { completeTime_ = builderForValue.build(); onChanged(); @@ -2648,18 +3064,24 @@ public Builder setCompleteTime( return this; } /** + * + * *
      * Output only. The timestamp when the associated underlying volume backup
      * operation completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { if (completeTimeBuilder_ == null) { if (completeTime_ != null) { completeTime_ = - com.google.protobuf.Timestamp.newBuilder(completeTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(completeTime_) + .mergeFrom(value) + .buildPartial(); } else { completeTime_ = value; } @@ -2671,12 +3093,16 @@ public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when the associated underlying volume backup
      * operation completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCompleteTime() { if (completeTimeBuilder_ == null) { @@ -2690,51 +3116,67 @@ public Builder clearCompleteTime() { return this; } /** + * + * *
      * Output only. The timestamp when the associated underlying volume backup
      * operation completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { - + onChanged(); return getCompleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp when the associated underlying volume backup
      * operation completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { if (completeTimeBuilder_ != null) { return completeTimeBuilder_.getMessageOrBuilder(); } else { - return completeTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; } } /** + * + * *
      * Output only. The timestamp when the associated underlying volume backup
      * operation completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 10 [(.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> getCompleteTimeFieldBuilder() { if (completeTimeBuilder_ == null) { - completeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCompleteTime(), - getParentForChildren(), - isClean()); + completeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCompleteTime(), getParentForChildren(), isClean()); completeTime_ = null; } return completeTimeBuilder_; @@ -2742,51 +3184,75 @@ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { private int state_ = 0; /** + * + * *
      * Output only. The current state of this VolumeBackup.
      * 
* - * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current state of this VolumeBackup.
      * 
* - * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The current state of this VolumeBackup.
      * 
* - * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.gkebackup.v1.VolumeBackup.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.VolumeBackup.State result = com.google.cloud.gkebackup.v1.VolumeBackup.State.valueOf(state_); - return result == null ? com.google.cloud.gkebackup.v1.VolumeBackup.State.UNRECOGNIZED : result; + com.google.cloud.gkebackup.v1.VolumeBackup.State result = + com.google.cloud.gkebackup.v1.VolumeBackup.State.valueOf(state_); + return result == null + ? com.google.cloud.gkebackup.v1.VolumeBackup.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The current state of this VolumeBackup.
      * 
* - * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2794,21 +3260,26 @@ public Builder setState(com.google.cloud.gkebackup.v1.VolumeBackup.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The current state of this VolumeBackup.
      * 
* - * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2816,19 +3287,21 @@ public Builder clearState() { private java.lang.Object stateMessage_ = ""; /** + * + * *
      * Output only. A human readable message explaining why the VolumeBackup is in its current
      * state.
      * 
* * string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stateMessage. */ public java.lang.String getStateMessage() { java.lang.Object ref = stateMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; @@ -2837,21 +3310,22 @@ public java.lang.String getStateMessage() { } } /** + * + * *
      * Output only. A human readable message explaining why the VolumeBackup is in its current
      * state.
      * 
* * string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stateMessage. */ - public com.google.protobuf.ByteString - getStateMessageBytes() { + public com.google.protobuf.ByteString getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -2859,57 +3333,64 @@ public java.lang.String getStateMessage() { } } /** + * + * *
      * Output only. A human readable message explaining why the VolumeBackup is in its current
      * state.
      * 
* * string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessage( - java.lang.String value) { + public Builder setStateMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stateMessage_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A human readable message explaining why the VolumeBackup is in its current
      * state.
      * 
* * string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStateMessage() { - + stateMessage_ = getDefaultInstance().getStateMessage(); onChanged(); return this; } /** + * + * *
      * Output only. A human readable message explaining why the VolumeBackup is in its current
      * state.
      * 
* * string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stateMessage_ = value; onChanged(); return this; @@ -2917,6 +3398,8 @@ public Builder setStateMessageBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a volume backup from overwriting each
@@ -2926,13 +3409,13 @@ public Builder setStateMessageBytes(
      * 
* * string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -2941,6 +3424,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a volume backup from overwriting each
@@ -2950,15 +3435,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -2966,6 +3450,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a volume backup from overwriting each
@@ -2975,20 +3461,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a volume backup from overwriting each
@@ -2998,15 +3486,18 @@ public Builder setEtag(
      * 
* * string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a volume backup from overwriting each
@@ -3016,23 +3507,23 @@ public Builder clearEtag() {
      * 
* * string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3042,12 +3533,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.VolumeBackup) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.VolumeBackup) private static final com.google.cloud.gkebackup.v1.VolumeBackup DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.VolumeBackup(); } @@ -3056,16 +3547,16 @@ public static com.google.cloud.gkebackup.v1.VolumeBackup getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VolumeBackup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VolumeBackup(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VolumeBackup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VolumeBackup(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3080,6 +3571,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.VolumeBackup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupName.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupName.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupOrBuilder.java index d4c3121..f08e701 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupOrBuilder.java @@ -1,186 +1,265 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/volume.proto package com.google.cloud.gkebackup.v1; -public interface VolumeBackupOrBuilder extends +public interface VolumeBackupOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.VolumeBackup) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The full name of the VolumeBackup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The full name of the VolumeBackup resource.
    * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
    * 
* * 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. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. The timestamp when this VolumeBackup resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The timestamp when this VolumeBackup resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The timestamp when this VolumeBackup resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The timestamp when this VolumeBackup resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The timestamp when this VolumeBackup resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The timestamp when this VolumeBackup resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
    * was created.
    * 
* - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the sourcePvc field is set. */ boolean hasSourcePvc(); /** + * + * *
    * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
    * was created.
    * 
* - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The sourcePvc. */ com.google.cloud.gkebackup.v1.NamespacedName getSourcePvc(); /** + * + * *
    * Output only. A reference to the source Kubernetes PVC from which this VolumeBackup
    * was created.
    * 
* - * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getSourcePvcOrBuilder(); /** + * + * *
    * Output only. A storage system-specific opaque handle to the underlying volume backup.
    * 
* * string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The volumeBackupHandle. */ java.lang.String getVolumeBackupHandle(); /** + * + * *
    * Output only. A storage system-specific opaque handle to the underlying volume backup.
    * 
* * string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for volumeBackupHandle. */ - com.google.protobuf.ByteString - getVolumeBackupHandleBytes(); + com.google.protobuf.ByteString getVolumeBackupHandleBytes(); /** + * + * *
    * Output only. The format used for the volume backup.
    * 
* - * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for format. */ int getFormatValue(); /** + * + * *
    * Output only. The format used for the volume backup.
    * 
* - * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The format. */ com.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat getFormat(); /** + * + * *
    * Output only. The aggregate size of the underlying artifacts associated with this
    * VolumeBackup in the backup storage. This may change over time when
@@ -190,92 +269,127 @@ public interface VolumeBackupOrBuilder extends
    * 
* * int64 storage_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The storageBytes. */ long getStorageBytes(); /** + * + * *
    * Output only. The minimum size of the disk to which this VolumeBackup can be restored.
    * 
* * int64 disk_size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The diskSizeBytes. */ long getDiskSizeBytes(); /** + * + * *
    * Output only. The timestamp when the associated underlying volume backup
    * operation completed.
    * 
* - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the completeTime field is set. */ boolean hasCompleteTime(); /** + * + * *
    * Output only. The timestamp when the associated underlying volume backup
    * operation completed.
    * 
* - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The completeTime. */ com.google.protobuf.Timestamp getCompleteTime(); /** + * + * *
    * Output only. The timestamp when the associated underlying volume backup
    * operation completed.
    * 
* - * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder(); /** + * + * *
    * Output only. The current state of this VolumeBackup.
    * 
* - * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current state of this VolumeBackup.
    * 
* - * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.gkebackup.v1.VolumeBackup.State getState(); /** + * + * *
    * Output only. A human readable message explaining why the VolumeBackup is in its current
    * state.
    * 
* * string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stateMessage. */ java.lang.String getStateMessage(); /** + * + * *
    * Output only. A human readable message explaining why the VolumeBackup is in its current
    * state.
    * 
* * string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stateMessage. */ - com.google.protobuf.ByteString - getStateMessageBytes(); + com.google.protobuf.ByteString getStateMessageBytes(); /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a volume backup from overwriting each
@@ -285,10 +399,13 @@ public interface VolumeBackupOrBuilder extends
    * 
* * string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a volume backup from overwriting each
@@ -298,8 +415,8 @@ public interface VolumeBackupOrBuilder extends
    * 
* * string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeProto.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeProto.java new file mode 100644 index 0000000..61b3504 --- /dev/null +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeProto.java @@ -0,0 +1,165 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/volume.proto + +package com.google.cloud.gkebackup.v1; + +public final class VolumeProto { + private VolumeProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_VolumeBackup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_VolumeRestore_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n&google/cloud/gkebackup/v1/volume.proto" + + "\022\031google.cloud.gkebackup.v1\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032&google/cloud/gkebackup/v1/commo" + + "n.proto\032\037google/protobuf/timestamp.proto" + + "\"\250\007\n\014VolumeBackup\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003" + + "uid\030\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" + + "ime\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022B\n\nsource_pvc\030\005 \001(\0132).google.cloud.gk" + + "ebackup.v1.NamespacedNameB\003\340A\003\022!\n\024volume" + + "_backup_handle\030\006 \001(\tB\003\340A\003\022O\n\006format\030\007 \001(" + + "\0162:.google.cloud.gkebackup.v1.VolumeBack" + + "up.VolumeBackupFormatB\003\340A\003\022\032\n\rstorage_by" + + "tes\030\010 \001(\003B\003\340A\003\022\034\n\017disk_size_bytes\030\t \001(\003B" + + "\003\340A\003\0226\n\rcomplete_time\030\n \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022A\n\005state\030\013 \001(\0162-.go" + + "ogle.cloud.gkebackup.v1.VolumeBackup.Sta" + + "teB\003\340A\003\022\032\n\rstate_message\030\014 \001(\tB\003\340A\003\022\021\n\004e" + + "tag\030\r \001(\tB\003\340A\003\"S\n\022VolumeBackupFormat\022$\n " + + "VOLUME_BACKUP_FORMAT_UNSPECIFIED\020\000\022\027\n\023GC" + + "E_PERSISTENT_DISK\020\001\"v\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\020\000\022\014\n\010CREATING\020\001\022\020\n\014SNAPSHOTTIN" + + "G\020\002\022\r\n\tUPLOADING\020\003\022\r\n\tSUCCEEDED\020\004\022\n\n\006FAI" + + "LED\020\005\022\014\n\010DELETING\020\006:\235\001\352A\231\001\n%gkebackup.go" + + "ogleapis.com/VolumeBackup\022pprojects/{pro" + + "ject}/locations/{location}/backupPlans/{" + + "backup_plan}/backups/{backup}/volumeBack" + + "ups/{volume_backup}\"\347\006\n\rVolumeRestore\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0224\n\013cr" + + "eate_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022\032\n\rvolume_backup\030" + + "\005 \001(\tB\003\340A\003\022B\n\ntarget_pvc\030\006 \001(\0132).google." + + "cloud.gkebackup.v1.NamespacedNameB\003\340A\003\022\032" + + "\n\rvolume_handle\030\007 \001(\tB\003\340A\003\022M\n\013volume_typ" + + "e\030\010 \001(\01623.google.cloud.gkebackup.v1.Volu" + + "meRestore.VolumeTypeB\003\340A\003\0226\n\rcomplete_ti" + + "me\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022B\n\005state\030\n \001(\0162..google.cloud.gkebacku" + + "p.v1.VolumeRestore.StateB\003\340A\003\022\032\n\rstate_m" + + "essage\030\013 \001(\tB\003\340A\003\022\021\n\004etag\030\014 \001(\tB\003\340A\003\"B\n\n" + + "VolumeType\022\033\n\027VOLUME_TYPE_UNSPECIFIED\020\000\022" + + "\027\n\023GCE_PERSISTENT_DISK\020\001\"d\n\005State\022\025\n\021STA" + + "TE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\r\n\tRESTOR" + + "ING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\022\014\n\010DELE" + + "TING\020\005:\244\001\352A\240\001\n&gkebackup.googleapis.com/" + + "VolumeRestore\022vprojects/{project}/locati" + + "ons/{location}/restorePlans/{restore_pla" + + "n}/restores/{restore}/volumeRestores/{vo" + + "lume_restore}B\311\001\n\035com.google.cloud.gkeba" + + "ckup.v1B\013VolumeProtoP\001ZBgoogle.golang.or" + + "g/genproto/googleapis/cloud/gkebackup/v1" + + ";gkebackup\252\002\031Google.Cloud.GkeBackup.V1\312\002" + + "\031Google\\Cloud\\GkeBackup\\V1\352\002\034Google::Clo" + + "ud::GkeBackup::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkebackup_v1_VolumeBackup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_VolumeBackup_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "CreateTime", + "UpdateTime", + "SourcePvc", + "VolumeBackupHandle", + "Format", + "StorageBytes", + "DiskSizeBytes", + "CompleteTime", + "State", + "StateMessage", + "Etag", + }); + internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkebackup_v1_VolumeRestore_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "CreateTime", + "UpdateTime", + "VolumeBackup", + "TargetPvc", + "VolumeHandle", + "VolumeType", + "CompleteTime", + "State", + "StateMessage", + "Etag", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.gkebackup.v1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestore.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestore.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestore.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestore.java index 605d00f..15e5474 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestore.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestore.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/volume.proto package com.google.cloud.gkebackup.v1; /** + * + * *
  * Represents the operation of restoring a volume from a VolumeBackup.
  * Next id: 13
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.gkebackup.v1.VolumeRestore}
  */
-public final class VolumeRestore extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class VolumeRestore extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.VolumeRestore)
     VolumeRestoreOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use VolumeRestore.newBuilder() to construct.
   private VolumeRestore(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private VolumeRestore() {
     name_ = "";
     uid_ = "";
@@ -33,16 +51,15 @@ private VolumeRestore() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new VolumeRestore();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private VolumeRestore(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -61,113 +78,130 @@ private VolumeRestore(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            uid_ = s;
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
-            }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+              uid_ = s;
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 34:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            volumeBackup_ = s;
-            break;
-          }
-          case 50: {
-            com.google.cloud.gkebackup.v1.NamespacedName.Builder subBuilder = null;
-            if (targetPvc_ != null) {
-              subBuilder = targetPvc_.toBuilder();
+              volumeBackup_ = s;
+              break;
             }
-            targetPvc_ = input.readMessage(com.google.cloud.gkebackup.v1.NamespacedName.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(targetPvc_);
-              targetPvc_ = subBuilder.buildPartial();
+          case 50:
+            {
+              com.google.cloud.gkebackup.v1.NamespacedName.Builder subBuilder = null;
+              if (targetPvc_ != null) {
+                subBuilder = targetPvc_.toBuilder();
+              }
+              targetPvc_ =
+                  input.readMessage(
+                      com.google.cloud.gkebackup.v1.NamespacedName.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(targetPvc_);
+                targetPvc_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 58:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 58: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            volumeHandle_ = s;
-            break;
-          }
-          case 64: {
-            int rawValue = input.readEnum();
+              volumeHandle_ = s;
+              break;
+            }
+          case 64:
+            {
+              int rawValue = input.readEnum();
 
-            volumeType_ = rawValue;
-            break;
-          }
-          case 74: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (completeTime_ != null) {
-              subBuilder = completeTime_.toBuilder();
+              volumeType_ = rawValue;
+              break;
             }
-            completeTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(completeTime_);
-              completeTime_ = subBuilder.buildPartial();
+          case 74:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (completeTime_ != null) {
+                subBuilder = completeTime_.toBuilder();
+              }
+              completeTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(completeTime_);
+                completeTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 80:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 80: {
-            int rawValue = input.readEnum();
-
-            state_ = rawValue;
-            break;
-          }
-          case 90: {
-            java.lang.String s = input.readStringRequireUtf8();
+              state_ = rawValue;
+              break;
+            }
+          case 90:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            stateMessage_ = s;
-            break;
-          }
-          case 98: {
-            java.lang.String s = input.readStringRequireUtf8();
+              stateMessage_ = s;
+              break;
+            }
+          case 98:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            etag_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              etag_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -175,36 +209,41 @@ private VolumeRestore(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkebackup.v1.VolumeProto.internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkebackup.v1.VolumeProto
+        .internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkebackup.v1.VolumeProto.internal_static_google_cloud_gkebackup_v1_VolumeRestore_fieldAccessorTable
+    return com.google.cloud.gkebackup.v1.VolumeProto
+        .internal_static_google_cloud_gkebackup_v1_VolumeRestore_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkebackup.v1.VolumeRestore.class, com.google.cloud.gkebackup.v1.VolumeRestore.Builder.class);
+            com.google.cloud.gkebackup.v1.VolumeRestore.class,
+            com.google.cloud.gkebackup.v1.VolumeRestore.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Supported volume types.
    * 
* * Protobuf enum {@code google.cloud.gkebackup.v1.VolumeRestore.VolumeType} */ - public enum VolumeType - implements com.google.protobuf.ProtocolMessageEnum { + public enum VolumeType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default
      * 
@@ -213,6 +252,8 @@ public enum VolumeType */ VOLUME_TYPE_UNSPECIFIED(0), /** + * + * *
      * Compute Engine Persistent Disk volume
      * 
@@ -224,6 +265,8 @@ public enum VolumeType ; /** + * + * *
      * Default
      * 
@@ -232,6 +275,8 @@ public enum VolumeType */ public static final int VOLUME_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Compute Engine Persistent Disk volume
      * 
@@ -240,7 +285,6 @@ public enum VolumeType */ public static final int GCE_PERSISTENT_DISK_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -265,48 +309,47 @@ public static VolumeType valueOf(int value) { */ public static VolumeType forNumber(int value) { switch (value) { - case 0: return VOLUME_TYPE_UNSPECIFIED; - case 1: return GCE_PERSISTENT_DISK; - default: return null; + case 0: + return VOLUME_TYPE_UNSPECIFIED; + case 1: + return GCE_PERSISTENT_DISK; + 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< - VolumeType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public VolumeType findValueByNumber(int number) { - return VolumeType.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 VolumeType findValueByNumber(int number) { + return VolumeType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.gkebackup.v1.VolumeRestore.getDescriptor().getEnumTypes().get(0); } private static final VolumeType[] VALUES = values(); - public static VolumeType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static VolumeType 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; @@ -324,15 +367,18 @@ private VolumeType(int value) { } /** + * + * *
    * The current state of a VolumeRestore
    * 
* * Protobuf enum {@code google.cloud.gkebackup.v1.VolumeRestore.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * This is an illegal state and should not be encountered.
      * 
@@ -341,6 +387,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * A volume for the restore was identified and restore process is about to
      * start.
@@ -350,6 +398,8 @@ public enum State
      */
     CREATING(1),
     /**
+     *
+     *
      * 
      * The volume is currently being restored.
      * 
@@ -358,6 +408,8 @@ public enum State */ RESTORING(2), /** + * + * *
      * The volume has been successfully restored.
      * 
@@ -366,6 +418,8 @@ public enum State */ SUCCEEDED(3), /** + * + * *
      * The volume restoration process failed.
      * 
@@ -374,6 +428,8 @@ public enum State */ FAILED(4), /** + * + * *
      * This VolumeRestore resource is in the process of being deleted.
      * 
@@ -385,6 +441,8 @@ public enum State ; /** + * + * *
      * This is an illegal state and should not be encountered.
      * 
@@ -393,6 +451,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * A volume for the restore was identified and restore process is about to
      * start.
@@ -402,6 +462,8 @@ public enum State
      */
     public static final int CREATING_VALUE = 1;
     /**
+     *
+     *
      * 
      * The volume is currently being restored.
      * 
@@ -410,6 +472,8 @@ public enum State */ public static final int RESTORING_VALUE = 2; /** + * + * *
      * The volume has been successfully restored.
      * 
@@ -418,6 +482,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 3; /** + * + * *
      * The volume restoration process failed.
      * 
@@ -426,6 +492,8 @@ public enum State */ public static final int FAILED_VALUE = 4; /** + * + * *
      * This VolumeRestore resource is in the process of being deleted.
      * 
@@ -434,7 +502,6 @@ public enum State */ public static final int DELETING_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -459,52 +526,55 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATING; - case 2: return RESTORING; - case 3: return SUCCEEDED; - case 4: return FAILED; - case 5: return DELETING; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return RESTORING; + case 3: + return SUCCEEDED; + case 4: + return FAILED; + case 5: + return DELETING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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 State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.gkebackup.v1.VolumeRestore.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -524,12 +594,15 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. Full name of the VolumeRestore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -538,30 +611,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. Full name of the VolumeRestore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.
    * 
* * 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 { @@ -572,12 +645,15 @@ public java.lang.String getName() { public static final int UID_FIELD_NUMBER = 2; private volatile java.lang.Object uid_; /** + * + * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -586,30 +662,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -620,12 +696,16 @@ public java.lang.String getUid() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The timestamp when this VolumeRestore resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -633,12 +713,16 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The timestamp when this VolumeRestore resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -646,12 +730,15 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The timestamp when this VolumeRestore resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -661,12 +748,16 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The timestamp when this VolumeRestore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -674,12 +765,16 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The timestamp when this VolumeRestore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -687,12 +782,15 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The timestamp when this VolumeRestore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -702,12 +800,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int VOLUME_BACKUP_FIELD_NUMBER = 5; private volatile java.lang.Object volumeBackup_; /** + * + * *
    * Output only. The full name of the VolumeBackup from which the volume will be restored.
    * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
    * 
* * string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The volumeBackup. */ @java.lang.Override @@ -716,30 +817,30 @@ public java.lang.String getVolumeBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volumeBackup_ = s; return s; } } /** + * + * *
    * Output only. The full name of the VolumeBackup from which the volume will be restored.
    * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
    * 
* * string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for volumeBackup. */ @java.lang.Override - public com.google.protobuf.ByteString - getVolumeBackupBytes() { + public com.google.protobuf.ByteString getVolumeBackupBytes() { java.lang.Object ref = volumeBackup_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeBackup_ = b; return b; } else { @@ -750,11 +851,16 @@ public java.lang.String getVolumeBackup() { public static final int TARGET_PVC_FIELD_NUMBER = 6; private com.google.cloud.gkebackup.v1.NamespacedName targetPvc_; /** + * + * *
    * Output only. The reference to the target Kubernetes PVC to be restored.
    * 
* - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the targetPvc field is set. */ @java.lang.Override @@ -762,23 +868,34 @@ public boolean hasTargetPvc() { return targetPvc_ != null; } /** + * + * *
    * Output only. The reference to the target Kubernetes PVC to be restored.
    * 
* - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The targetPvc. */ @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacedName getTargetPvc() { - return targetPvc_ == null ? com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() : targetPvc_; + return targetPvc_ == null + ? com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() + : targetPvc_; } /** + * + * *
    * Output only. The reference to the target Kubernetes PVC to be restored.
    * 
* - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getTargetPvcOrBuilder() { @@ -788,12 +905,15 @@ public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getTargetPvcOrBuild public static final int VOLUME_HANDLE_FIELD_NUMBER = 7; private volatile java.lang.Object volumeHandle_; /** + * + * *
    * Output only. A storage system-specific opaque handler to the underlying volume created
    * for the target PVC from the volume backup.
    * 
* * string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The volumeHandle. */ @java.lang.Override @@ -802,30 +922,30 @@ public java.lang.String getVolumeHandle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volumeHandle_ = s; return s; } } /** + * + * *
    * Output only. A storage system-specific opaque handler to the underlying volume created
    * for the target PVC from the volume backup.
    * 
* * string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for volumeHandle. */ @java.lang.Override - public com.google.protobuf.ByteString - getVolumeHandleBytes() { + public com.google.protobuf.ByteString getVolumeHandleBytes() { java.lang.Object ref = volumeHandle_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeHandle_ = b; return b; } else { @@ -836,39 +956,59 @@ public java.lang.String getVolumeHandle() { public static final int VOLUME_TYPE_FIELD_NUMBER = 8; private int volumeType_; /** + * + * *
    * Output only. The type of volume provisioned
    * 
* - * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for volumeType. */ - @java.lang.Override public int getVolumeTypeValue() { + @java.lang.Override + public int getVolumeTypeValue() { return volumeType_; } /** + * + * *
    * Output only. The type of volume provisioned
    * 
* - * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The volumeType. */ - @java.lang.Override public com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType getVolumeType() { + @java.lang.Override + public com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType getVolumeType() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType result = com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.valueOf(volumeType_); - return result == null ? com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.UNRECOGNIZED : result; + com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType result = + com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.valueOf(volumeType_); + return result == null + ? com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.UNRECOGNIZED + : result; } public static final int COMPLETE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp completeTime_; /** + * + * *
    * Output only. The timestamp when the associated underlying volume
    * restoration completed.
    * 
* - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the completeTime field is set. */ @java.lang.Override @@ -876,25 +1016,36 @@ public boolean hasCompleteTime() { return completeTime_ != null; } /** + * + * *
    * Output only. The timestamp when the associated underlying volume
    * restoration completed.
    * 
* - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The completeTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCompleteTime() { - return completeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; } /** + * + * *
    * Output only. The timestamp when the associated underlying volume
    * restoration completed.
    * 
* - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { @@ -904,39 +1055,55 @@ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 10; private int state_; /** + * + * *
    * Output only. The current state of this VolumeRestore.
    * 
* - * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current state of this VolumeRestore.
    * 
* - * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.gkebackup.v1.VolumeRestore.State getState() { + @java.lang.Override + public com.google.cloud.gkebackup.v1.VolumeRestore.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.VolumeRestore.State result = com.google.cloud.gkebackup.v1.VolumeRestore.State.valueOf(state_); + com.google.cloud.gkebackup.v1.VolumeRestore.State result = + com.google.cloud.gkebackup.v1.VolumeRestore.State.valueOf(state_); return result == null ? com.google.cloud.gkebackup.v1.VolumeRestore.State.UNRECOGNIZED : result; } public static final int STATE_MESSAGE_FIELD_NUMBER = 11; private volatile java.lang.Object stateMessage_; /** + * + * *
    * Output only. A human readable message explaining why the VolumeRestore is in its
    * current state.
    * 
* * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stateMessage. */ @java.lang.Override @@ -945,30 +1112,30 @@ public java.lang.String getStateMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; } } /** + * + * *
    * Output only. A human readable message explaining why the VolumeRestore is in its
    * current state.
    * 
* * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stateMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStateMessageBytes() { + public com.google.protobuf.ByteString getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -979,6 +1146,8 @@ public java.lang.String getStateMessage() { public static final int ETAG_FIELD_NUMBER = 12; private volatile java.lang.Object etag_; /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a volume restore from overwriting each
@@ -988,6 +1157,7 @@ public java.lang.String getStateMessage() {
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ @java.lang.Override @@ -996,14 +1166,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; } } /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a volume restore from overwriting each
@@ -1013,16 +1184,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1031,6 +1201,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1042,8 +1213,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_); } @@ -1065,7 +1235,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volumeHandle_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, volumeHandle_); } - if (volumeType_ != com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.VOLUME_TYPE_UNSPECIFIED.getNumber()) { + if (volumeType_ + != com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.VOLUME_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(8, volumeType_); } if (completeTime_ != null) { @@ -1096,34 +1268,30 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volumeBackup_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, volumeBackup_); } if (targetPvc_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getTargetPvc()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTargetPvc()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volumeHandle_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, volumeHandle_); } - if (volumeType_ != com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.VOLUME_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, volumeType_); + if (volumeType_ + != com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.VOLUME_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, volumeType_); } if (completeTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getCompleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCompleteTime()); } if (state_ != com.google.cloud.gkebackup.v1.VolumeRestore.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, stateMessage_); @@ -1139,47 +1307,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.VolumeRestore)) { return super.equals(obj); } - com.google.cloud.gkebackup.v1.VolumeRestore other = (com.google.cloud.gkebackup.v1.VolumeRestore) obj; + com.google.cloud.gkebackup.v1.VolumeRestore other = + (com.google.cloud.gkebackup.v1.VolumeRestore) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUid() - .equals(other.getUid())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) 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 (!getVolumeBackup() - .equals(other.getVolumeBackup())) return false; + if (!getVolumeBackup().equals(other.getVolumeBackup())) return false; if (hasTargetPvc() != other.hasTargetPvc()) return false; if (hasTargetPvc()) { - if (!getTargetPvc() - .equals(other.getTargetPvc())) return false; + if (!getTargetPvc().equals(other.getTargetPvc())) return false; } - if (!getVolumeHandle() - .equals(other.getVolumeHandle())) return false; + if (!getVolumeHandle().equals(other.getVolumeHandle())) return false; if (volumeType_ != other.volumeType_) return false; if (hasCompleteTime() != other.hasCompleteTime()) return false; if (hasCompleteTime()) { - if (!getCompleteTime() - .equals(other.getCompleteTime())) return false; + if (!getCompleteTime().equals(other.getCompleteTime())) return false; } if (state_ != other.state_) return false; - if (!getStateMessage() - .equals(other.getStateMessage())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getStateMessage().equals(other.getStateMessage())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1228,97 +1387,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkebackup.v1.VolumeRestore parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkebackup.v1.VolumeRestore parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.VolumeRestore parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkebackup.v1.VolumeRestore parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkebackup.v1.VolumeRestore prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 operation of restoring a volume from a VolumeBackup.
    * Next id: 13
@@ -1326,21 +1492,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkebackup.v1.VolumeRestore}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.VolumeRestore)
       com.google.cloud.gkebackup.v1.VolumeRestoreOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkebackup.v1.VolumeProto.internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkebackup.v1.VolumeProto
+          .internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkebackup.v1.VolumeProto.internal_static_google_cloud_gkebackup_v1_VolumeRestore_fieldAccessorTable
+      return com.google.cloud.gkebackup.v1.VolumeProto
+          .internal_static_google_cloud_gkebackup_v1_VolumeRestore_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkebackup.v1.VolumeRestore.class, com.google.cloud.gkebackup.v1.VolumeRestore.Builder.class);
+              com.google.cloud.gkebackup.v1.VolumeRestore.class,
+              com.google.cloud.gkebackup.v1.VolumeRestore.Builder.class);
     }
 
     // Construct using com.google.cloud.gkebackup.v1.VolumeRestore.newBuilder()
@@ -1348,16 +1516,15 @@ 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) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1405,9 +1572,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkebackup.v1.VolumeProto.internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkebackup.v1.VolumeProto
+          .internal_static_google_cloud_gkebackup_v1_VolumeRestore_descriptor;
     }
 
     @java.lang.Override
@@ -1426,7 +1593,8 @@ public com.google.cloud.gkebackup.v1.VolumeRestore build() {
 
     @java.lang.Override
     public com.google.cloud.gkebackup.v1.VolumeRestore buildPartial() {
-      com.google.cloud.gkebackup.v1.VolumeRestore result = new com.google.cloud.gkebackup.v1.VolumeRestore(this);
+      com.google.cloud.gkebackup.v1.VolumeRestore result =
+          new com.google.cloud.gkebackup.v1.VolumeRestore(this);
       result.name_ = name_;
       result.uid_ = uid_;
       if (createTimeBuilder_ == null) {
@@ -1463,38 +1631,39 @@ public com.google.cloud.gkebackup.v1.VolumeRestore 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.cloud.gkebackup.v1.VolumeRestore) {
-        return mergeFrom((com.google.cloud.gkebackup.v1.VolumeRestore)other);
+        return mergeFrom((com.google.cloud.gkebackup.v1.VolumeRestore) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1576,19 +1745,21 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Full name of the VolumeRestore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.
      * 
* * 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; @@ -1597,21 +1768,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Full name of the VolumeRestore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.
      * 
* * 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 { @@ -1619,57 +1791,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Full name of the VolumeRestore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.
      * 
* * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Full name of the VolumeRestore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Full name of the VolumeRestore resource.
      * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.
      * 
* * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1677,19 +1856,21 @@ public Builder setNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -1698,21 +1879,22 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -1720,57 +1902,64 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { + public Builder setUid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** + * + * *
      * Output only. Server generated global unique identifier of
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { + public Builder setUidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); return this; @@ -1778,42 +1967,61 @@ public Builder setUidBytes( 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 timestamp when this VolumeRestore resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The timestamp when this VolumeRestore resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The timestamp when this VolumeRestore resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1829,15 +2037,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this VolumeRestore resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1848,18 +2059,22 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The timestamp when this VolumeRestore resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1871,12 +2086,16 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this VolumeRestore resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1890,51 +2109,67 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The timestamp when this VolumeRestore resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp when this VolumeRestore resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The timestamp when this VolumeRestore resource was
      * created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1942,42 +2177,61 @@ 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 timestamp when this VolumeRestore resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The timestamp when this VolumeRestore resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this VolumeRestore resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1993,15 +2247,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this VolumeRestore resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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(); onChanged(); @@ -2012,18 +2269,22 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The timestamp when this VolumeRestore resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2035,12 +2296,16 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when this VolumeRestore resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2054,51 +2319,67 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The timestamp when this VolumeRestore resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp when this VolumeRestore resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.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 timestamp when this VolumeRestore resource was last
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp 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> 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_; @@ -2106,19 +2387,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object volumeBackup_ = ""; /** + * + * *
      * Output only. The full name of the VolumeBackup from which the volume will be restored.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
      * 
* * string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The volumeBackup. */ public java.lang.String getVolumeBackup() { java.lang.Object ref = volumeBackup_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volumeBackup_ = s; return s; @@ -2127,21 +2410,22 @@ public java.lang.String getVolumeBackup() { } } /** + * + * *
      * Output only. The full name of the VolumeBackup from which the volume will be restored.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
      * 
* * string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for volumeBackup. */ - public com.google.protobuf.ByteString - getVolumeBackupBytes() { + public com.google.protobuf.ByteString getVolumeBackupBytes() { java.lang.Object ref = volumeBackup_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeBackup_ = b; return b; } else { @@ -2149,57 +2433,64 @@ public java.lang.String getVolumeBackup() { } } /** + * + * *
      * Output only. The full name of the VolumeBackup from which the volume will be restored.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
      * 
* * string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The volumeBackup to set. * @return This builder for chaining. */ - public Builder setVolumeBackup( - java.lang.String value) { + public Builder setVolumeBackup(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + volumeBackup_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The full name of the VolumeBackup from which the volume will be restored.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
      * 
* * string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVolumeBackup() { - + volumeBackup_ = getDefaultInstance().getVolumeBackup(); onChanged(); return this; } /** + * + * *
      * Output only. The full name of the VolumeBackup from which the volume will be restored.
      * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
      * 
* * string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for volumeBackup to set. * @return This builder for chaining. */ - public Builder setVolumeBackupBytes( - com.google.protobuf.ByteString value) { + public Builder setVolumeBackupBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volumeBackup_ = value; onChanged(); return this; @@ -2207,39 +2498,58 @@ public Builder setVolumeBackupBytes( private com.google.cloud.gkebackup.v1.NamespacedName targetPvc_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedName, com.google.cloud.gkebackup.v1.NamespacedName.Builder, com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> targetPvcBuilder_; + com.google.cloud.gkebackup.v1.NamespacedName, + com.google.cloud.gkebackup.v1.NamespacedName.Builder, + com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> + targetPvcBuilder_; /** + * + * *
      * Output only. The reference to the target Kubernetes PVC to be restored.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the targetPvc field is set. */ public boolean hasTargetPvc() { return targetPvcBuilder_ != null || targetPvc_ != null; } /** + * + * *
      * Output only. The reference to the target Kubernetes PVC to be restored.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The targetPvc. */ public com.google.cloud.gkebackup.v1.NamespacedName getTargetPvc() { if (targetPvcBuilder_ == null) { - return targetPvc_ == null ? com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() : targetPvc_; + return targetPvc_ == null + ? com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() + : targetPvc_; } else { return targetPvcBuilder_.getMessage(); } } /** + * + * *
      * Output only. The reference to the target Kubernetes PVC to be restored.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTargetPvc(com.google.cloud.gkebackup.v1.NamespacedName value) { if (targetPvcBuilder_ == null) { @@ -2255,11 +2565,15 @@ public Builder setTargetPvc(com.google.cloud.gkebackup.v1.NamespacedName value) return this; } /** + * + * *
      * Output only. The reference to the target Kubernetes PVC to be restored.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTargetPvc( com.google.cloud.gkebackup.v1.NamespacedName.Builder builderForValue) { @@ -2273,17 +2587,23 @@ public Builder setTargetPvc( return this; } /** + * + * *
      * Output only. The reference to the target Kubernetes PVC to be restored.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeTargetPvc(com.google.cloud.gkebackup.v1.NamespacedName value) { if (targetPvcBuilder_ == null) { if (targetPvc_ != null) { targetPvc_ = - com.google.cloud.gkebackup.v1.NamespacedName.newBuilder(targetPvc_).mergeFrom(value).buildPartial(); + com.google.cloud.gkebackup.v1.NamespacedName.newBuilder(targetPvc_) + .mergeFrom(value) + .buildPartial(); } else { targetPvc_ = value; } @@ -2295,11 +2615,15 @@ public Builder mergeTargetPvc(com.google.cloud.gkebackup.v1.NamespacedName value return this; } /** + * + * *
      * Output only. The reference to the target Kubernetes PVC to be restored.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearTargetPvc() { if (targetPvcBuilder_ == null) { @@ -2313,48 +2637,64 @@ public Builder clearTargetPvc() { return this; } /** + * + * *
      * Output only. The reference to the target Kubernetes PVC to be restored.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkebackup.v1.NamespacedName.Builder getTargetPvcBuilder() { - + onChanged(); return getTargetPvcFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The reference to the target Kubernetes PVC to be restored.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getTargetPvcOrBuilder() { if (targetPvcBuilder_ != null) { return targetPvcBuilder_.getMessageOrBuilder(); } else { - return targetPvc_ == null ? - com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() : targetPvc_; + return targetPvc_ == null + ? com.google.cloud.gkebackup.v1.NamespacedName.getDefaultInstance() + : targetPvc_; } } /** + * + * *
      * Output only. The reference to the target Kubernetes PVC to be restored.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedName, com.google.cloud.gkebackup.v1.NamespacedName.Builder, com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> + com.google.cloud.gkebackup.v1.NamespacedName, + com.google.cloud.gkebackup.v1.NamespacedName.Builder, + com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder> getTargetPvcFieldBuilder() { if (targetPvcBuilder_ == null) { - targetPvcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedName, com.google.cloud.gkebackup.v1.NamespacedName.Builder, com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder>( - getTargetPvc(), - getParentForChildren(), - isClean()); + targetPvcBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.NamespacedName, + com.google.cloud.gkebackup.v1.NamespacedName.Builder, + com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder>( + getTargetPvc(), getParentForChildren(), isClean()); targetPvc_ = null; } return targetPvcBuilder_; @@ -2362,19 +2702,21 @@ public com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getTargetPvcOrBuild private java.lang.Object volumeHandle_ = ""; /** + * + * *
      * Output only. A storage system-specific opaque handler to the underlying volume created
      * for the target PVC from the volume backup.
      * 
* * string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The volumeHandle. */ public java.lang.String getVolumeHandle() { java.lang.Object ref = volumeHandle_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volumeHandle_ = s; return s; @@ -2383,21 +2725,22 @@ public java.lang.String getVolumeHandle() { } } /** + * + * *
      * Output only. A storage system-specific opaque handler to the underlying volume created
      * for the target PVC from the volume backup.
      * 
* * string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for volumeHandle. */ - public com.google.protobuf.ByteString - getVolumeHandleBytes() { + public com.google.protobuf.ByteString getVolumeHandleBytes() { java.lang.Object ref = volumeHandle_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeHandle_ = b; return b; } else { @@ -2405,57 +2748,64 @@ public java.lang.String getVolumeHandle() { } } /** + * + * *
      * Output only. A storage system-specific opaque handler to the underlying volume created
      * for the target PVC from the volume backup.
      * 
* * string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The volumeHandle to set. * @return This builder for chaining. */ - public Builder setVolumeHandle( - java.lang.String value) { + public Builder setVolumeHandle(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + volumeHandle_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A storage system-specific opaque handler to the underlying volume created
      * for the target PVC from the volume backup.
      * 
* * string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVolumeHandle() { - + volumeHandle_ = getDefaultInstance().getVolumeHandle(); onChanged(); return this; } /** + * + * *
      * Output only. A storage system-specific opaque handler to the underlying volume created
      * for the target PVC from the volume backup.
      * 
* * string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for volumeHandle to set. * @return This builder for chaining. */ - public Builder setVolumeHandleBytes( - com.google.protobuf.ByteString value) { + public Builder setVolumeHandleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volumeHandle_ = value; onChanged(); return this; @@ -2463,51 +2813,75 @@ public Builder setVolumeHandleBytes( private int volumeType_ = 0; /** + * + * *
      * Output only. The type of volume provisioned
      * 
* - * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for volumeType. */ - @java.lang.Override public int getVolumeTypeValue() { + @java.lang.Override + public int getVolumeTypeValue() { return volumeType_; } /** + * + * *
      * Output only. The type of volume provisioned
      * 
* - * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for volumeType to set. * @return This builder for chaining. */ public Builder setVolumeTypeValue(int value) { - + volumeType_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The type of volume provisioned
      * 
* - * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The volumeType. */ @java.lang.Override public com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType getVolumeType() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType result = com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.valueOf(volumeType_); - return result == null ? com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.UNRECOGNIZED : result; + com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType result = + com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.valueOf(volumeType_); + return result == null + ? com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The type of volume provisioned
      * 
* - * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The volumeType to set. * @return This builder for chaining. */ @@ -2515,21 +2889,26 @@ public Builder setVolumeType(com.google.cloud.gkebackup.v1.VolumeRestore.VolumeT if (value == null) { throw new NullPointerException(); } - + volumeType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The type of volume provisioned
      * 
* - * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearVolumeType() { - + volumeType_ = 0; onChanged(); return this; @@ -2537,42 +2916,61 @@ public Builder clearVolumeType() { private com.google.protobuf.Timestamp completeTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completeTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + completeTimeBuilder_; /** + * + * *
      * Output only. The timestamp when the associated underlying volume
      * restoration completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the completeTime field is set. */ public boolean hasCompleteTime() { return completeTimeBuilder_ != null || completeTime_ != null; } /** + * + * *
      * Output only. The timestamp when the associated underlying volume
      * restoration completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The completeTime. */ public com.google.protobuf.Timestamp getCompleteTime() { if (completeTimeBuilder_ == null) { - return completeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; } else { return completeTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The timestamp when the associated underlying volume
      * restoration completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCompleteTime(com.google.protobuf.Timestamp value) { if (completeTimeBuilder_ == null) { @@ -2588,15 +2986,18 @@ public Builder setCompleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when the associated underlying volume
      * restoration completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCompleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (completeTimeBuilder_ == null) { completeTime_ = builderForValue.build(); onChanged(); @@ -2607,18 +3008,24 @@ public Builder setCompleteTime( return this; } /** + * + * *
      * Output only. The timestamp when the associated underlying volume
      * restoration completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { if (completeTimeBuilder_ == null) { if (completeTime_ != null) { completeTime_ = - com.google.protobuf.Timestamp.newBuilder(completeTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(completeTime_) + .mergeFrom(value) + .buildPartial(); } else { completeTime_ = value; } @@ -2630,12 +3037,16 @@ public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when the associated underlying volume
      * restoration completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCompleteTime() { if (completeTimeBuilder_ == null) { @@ -2649,51 +3060,67 @@ public Builder clearCompleteTime() { return this; } /** + * + * *
      * Output only. The timestamp when the associated underlying volume
      * restoration completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { - + onChanged(); return getCompleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp when the associated underlying volume
      * restoration completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { if (completeTimeBuilder_ != null) { return completeTimeBuilder_.getMessageOrBuilder(); } else { - return completeTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; } } /** + * + * *
      * Output only. The timestamp when the associated underlying volume
      * restoration completed.
      * 
* - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 9 [(.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> getCompleteTimeFieldBuilder() { if (completeTimeBuilder_ == null) { - completeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCompleteTime(), - getParentForChildren(), - isClean()); + completeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCompleteTime(), getParentForChildren(), isClean()); completeTime_ = null; } return completeTimeBuilder_; @@ -2701,51 +3128,75 @@ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { private int state_ = 0; /** + * + * *
      * Output only. The current state of this VolumeRestore.
      * 
* - * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current state of this VolumeRestore.
      * 
* - * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The current state of this VolumeRestore.
      * 
* - * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.gkebackup.v1.VolumeRestore.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkebackup.v1.VolumeRestore.State result = com.google.cloud.gkebackup.v1.VolumeRestore.State.valueOf(state_); - return result == null ? com.google.cloud.gkebackup.v1.VolumeRestore.State.UNRECOGNIZED : result; + com.google.cloud.gkebackup.v1.VolumeRestore.State result = + com.google.cloud.gkebackup.v1.VolumeRestore.State.valueOf(state_); + return result == null + ? com.google.cloud.gkebackup.v1.VolumeRestore.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The current state of this VolumeRestore.
      * 
* - * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2753,21 +3204,26 @@ public Builder setState(com.google.cloud.gkebackup.v1.VolumeRestore.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The current state of this VolumeRestore.
      * 
* - * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2775,19 +3231,21 @@ public Builder clearState() { private java.lang.Object stateMessage_ = ""; /** + * + * *
      * Output only. A human readable message explaining why the VolumeRestore is in its
      * current state.
      * 
* * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stateMessage. */ public java.lang.String getStateMessage() { java.lang.Object ref = stateMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; @@ -2796,21 +3254,22 @@ public java.lang.String getStateMessage() { } } /** + * + * *
      * Output only. A human readable message explaining why the VolumeRestore is in its
      * current state.
      * 
* * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stateMessage. */ - public com.google.protobuf.ByteString - getStateMessageBytes() { + public com.google.protobuf.ByteString getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -2818,57 +3277,64 @@ public java.lang.String getStateMessage() { } } /** + * + * *
      * Output only. A human readable message explaining why the VolumeRestore is in its
      * current state.
      * 
* * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessage( - java.lang.String value) { + public Builder setStateMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stateMessage_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A human readable message explaining why the VolumeRestore is in its
      * current state.
      * 
* * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStateMessage() { - + stateMessage_ = getDefaultInstance().getStateMessage(); onChanged(); return this; } /** + * + * *
      * Output only. A human readable message explaining why the VolumeRestore is in its
      * current state.
      * 
* * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stateMessage_ = value; onChanged(); return this; @@ -2876,6 +3342,8 @@ public Builder setStateMessageBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a volume restore from overwriting each
@@ -2885,13 +3353,13 @@ public Builder setStateMessageBytes(
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -2900,6 +3368,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a volume restore from overwriting each
@@ -2909,15 +3379,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -2925,6 +3394,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a volume restore from overwriting each
@@ -2934,20 +3405,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a volume restore from overwriting each
@@ -2957,15 +3430,18 @@ public Builder setEtag(
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Output only. `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a volume restore from overwriting each
@@ -2975,23 +3451,23 @@ public Builder clearEtag() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3001,12 +3477,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.VolumeRestore) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.VolumeRestore) private static final com.google.cloud.gkebackup.v1.VolumeRestore DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.VolumeRestore(); } @@ -3015,16 +3491,16 @@ public static com.google.cloud.gkebackup.v1.VolumeRestore getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VolumeRestore parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VolumeRestore(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VolumeRestore parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VolumeRestore(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3039,6 +3515,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkebackup.v1.VolumeRestore getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreName.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreName.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreOrBuilder.java b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreOrBuilder.java rename to proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreOrBuilder.java index 593656c..21a0216 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreOrBuilder.java +++ b/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreOrBuilder.java @@ -1,278 +1,391 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkebackup/v1/volume.proto package com.google.cloud.gkebackup.v1; -public interface VolumeRestoreOrBuilder extends +public interface VolumeRestoreOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.VolumeRestore) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Full name of the VolumeRestore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Full name of the VolumeRestore resource.
    * Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.
    * 
* * 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. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. Server generated global unique identifier of
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. The timestamp when this VolumeRestore resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The timestamp when this VolumeRestore resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The timestamp when this VolumeRestore resource was
    * created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The timestamp when this VolumeRestore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The timestamp when this VolumeRestore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The timestamp when this VolumeRestore resource was last
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The full name of the VolumeBackup from which the volume will be restored.
    * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
    * 
* * string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The volumeBackup. */ java.lang.String getVolumeBackup(); /** + * + * *
    * Output only. The full name of the VolumeBackup from which the volume will be restored.
    * Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
    * 
* * string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for volumeBackup. */ - com.google.protobuf.ByteString - getVolumeBackupBytes(); + com.google.protobuf.ByteString getVolumeBackupBytes(); /** + * + * *
    * Output only. The reference to the target Kubernetes PVC to be restored.
    * 
* - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the targetPvc field is set. */ boolean hasTargetPvc(); /** + * + * *
    * Output only. The reference to the target Kubernetes PVC to be restored.
    * 
* - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The targetPvc. */ com.google.cloud.gkebackup.v1.NamespacedName getTargetPvc(); /** + * + * *
    * Output only. The reference to the target Kubernetes PVC to be restored.
    * 
* - * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder getTargetPvcOrBuilder(); /** + * + * *
    * Output only. A storage system-specific opaque handler to the underlying volume created
    * for the target PVC from the volume backup.
    * 
* * string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The volumeHandle. */ java.lang.String getVolumeHandle(); /** + * + * *
    * Output only. A storage system-specific opaque handler to the underlying volume created
    * for the target PVC from the volume backup.
    * 
* * string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for volumeHandle. */ - com.google.protobuf.ByteString - getVolumeHandleBytes(); + com.google.protobuf.ByteString getVolumeHandleBytes(); /** + * + * *
    * Output only. The type of volume provisioned
    * 
* - * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for volumeType. */ int getVolumeTypeValue(); /** + * + * *
    * Output only. The type of volume provisioned
    * 
* - * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The volumeType. */ com.google.cloud.gkebackup.v1.VolumeRestore.VolumeType getVolumeType(); /** + * + * *
    * Output only. The timestamp when the associated underlying volume
    * restoration completed.
    * 
* - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the completeTime field is set. */ boolean hasCompleteTime(); /** + * + * *
    * Output only. The timestamp when the associated underlying volume
    * restoration completed.
    * 
* - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The completeTime. */ com.google.protobuf.Timestamp getCompleteTime(); /** + * + * *
    * Output only. The timestamp when the associated underlying volume
    * restoration completed.
    * 
* - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder(); /** + * + * *
    * Output only. The current state of this VolumeRestore.
    * 
* - * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current state of this VolumeRestore.
    * 
* - * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.gkebackup.v1.VolumeRestore.State getState(); /** + * + * *
    * Output only. A human readable message explaining why the VolumeRestore is in its
    * current state.
    * 
* * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stateMessage. */ java.lang.String getStateMessage(); /** + * + * *
    * Output only. A human readable message explaining why the VolumeRestore is in its
    * current state.
    * 
* * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stateMessage. */ - com.google.protobuf.ByteString - getStateMessageBytes(); + com.google.protobuf.ByteString getStateMessageBytes(); /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a volume restore from overwriting each
@@ -282,10 +395,13 @@ public interface VolumeRestoreOrBuilder extends
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Output only. `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a volume restore from overwriting each
@@ -295,8 +411,8 @@ public interface VolumeRestoreOrBuilder extends
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup.proto b/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup.proto rename to proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup_plan.proto b/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup_plan.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup_plan.proto rename to proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup_plan.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/common.proto b/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/common.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/common.proto rename to proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/common.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/gkebackup.proto b/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/gkebackup.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/gkebackup.proto rename to proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/gkebackup.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/restore.proto b/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/restore.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/restore.proto rename to proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/restore.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/restore_plan.proto b/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/restore_plan.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/restore_plan.proto rename to proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/restore_plan.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/volume.proto b/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/volume.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/volume.proto rename to proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/volume.proto diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/AsyncCreateBackup.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/AsyncCreateBackup.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/AsyncCreateBackup.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/AsyncCreateBackup.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/AsyncCreateBackupLRO.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/AsyncCreateBackupLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/AsyncCreateBackupLRO.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/AsyncCreateBackupLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackup.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackup.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackup.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackup.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackupBackupplannameBackupString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackupBackupplannameBackupString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackupBackupplannameBackupString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackupBackupplannameBackupString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackupStringBackupString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackupStringBackupString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackupStringBackupString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackup/SyncCreateBackupStringBackupString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/AsyncCreateBackupPlan.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/AsyncCreateBackupPlan.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/AsyncCreateBackupPlan.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/AsyncCreateBackupPlan.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/AsyncCreateBackupPlanLRO.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/AsyncCreateBackupPlanLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/AsyncCreateBackupPlanLRO.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/AsyncCreateBackupPlanLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlan.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlan.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlan.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlan.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlanLocationnameBackupplanString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlanLocationnameBackupplanString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlanLocationnameBackupplanString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlanLocationnameBackupplanString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlanStringBackupplanString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlanStringBackupplanString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlanStringBackupplanString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createbackupplan/SyncCreateBackupPlanStringBackupplanString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/AsyncCreateRestore.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/AsyncCreateRestore.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/AsyncCreateRestore.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/AsyncCreateRestore.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/AsyncCreateRestoreLRO.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/AsyncCreateRestoreLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/AsyncCreateRestoreLRO.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/AsyncCreateRestoreLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestore.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestore.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestore.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestore.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestoreRestoreplannameRestoreString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestoreRestoreplannameRestoreString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestoreRestoreplannameRestoreString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestoreRestoreplannameRestoreString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestoreStringRestoreString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestoreStringRestoreString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestoreStringRestoreString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestore/SyncCreateRestoreStringRestoreString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/AsyncCreateRestorePlan.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/AsyncCreateRestorePlan.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/AsyncCreateRestorePlan.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/AsyncCreateRestorePlan.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/AsyncCreateRestorePlanLRO.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/AsyncCreateRestorePlanLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/AsyncCreateRestorePlanLRO.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/AsyncCreateRestorePlanLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlan.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlan.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlan.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlan.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlanLocationnameRestoreplanString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlanLocationnameRestoreplanString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlanLocationnameRestoreplanString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlanLocationnameRestoreplanString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlanStringRestoreplanString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlanStringRestoreplanString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlanStringRestoreplanString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/createrestoreplan/SyncCreateRestorePlanStringRestoreplanString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/AsyncDeleteBackup.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/AsyncDeleteBackup.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/AsyncDeleteBackup.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/AsyncDeleteBackup.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/AsyncDeleteBackupLRO.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/AsyncDeleteBackupLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/AsyncDeleteBackupLRO.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/AsyncDeleteBackupLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackup.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackup.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackup.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackup.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackupBackupname.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackupBackupname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackupBackupname.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackupBackupname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackupString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackupString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackupString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackup/SyncDeleteBackupString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/AsyncDeleteBackupPlan.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/AsyncDeleteBackupPlan.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/AsyncDeleteBackupPlan.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/AsyncDeleteBackupPlan.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/AsyncDeleteBackupPlanLRO.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/AsyncDeleteBackupPlanLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/AsyncDeleteBackupPlanLRO.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/AsyncDeleteBackupPlanLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlan.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlan.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlan.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlan.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlanBackupplanname.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlanBackupplanname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlanBackupplanname.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlanBackupplanname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlanString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlanString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlanString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deletebackupplan/SyncDeleteBackupPlanString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/AsyncDeleteRestore.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/AsyncDeleteRestore.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/AsyncDeleteRestore.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/AsyncDeleteRestore.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/AsyncDeleteRestoreLRO.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/AsyncDeleteRestoreLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/AsyncDeleteRestoreLRO.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/AsyncDeleteRestoreLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestore.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestore.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestore.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestore.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestoreRestorename.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestoreRestorename.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestoreRestorename.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestoreRestorename.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestoreString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestoreString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestoreString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestore/SyncDeleteRestoreString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/AsyncDeleteRestorePlan.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/AsyncDeleteRestorePlan.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/AsyncDeleteRestorePlan.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/AsyncDeleteRestorePlan.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/AsyncDeleteRestorePlanLRO.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/AsyncDeleteRestorePlanLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/AsyncDeleteRestorePlanLRO.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/AsyncDeleteRestorePlanLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlan.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlan.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlan.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlan.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlanRestoreplanname.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlanRestoreplanname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlanRestoreplanname.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlanRestoreplanname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlanString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlanString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlanString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/deleterestoreplan/SyncDeleteRestorePlanString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/AsyncGetBackup.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/AsyncGetBackup.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/AsyncGetBackup.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/AsyncGetBackup.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackup.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackup.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackup.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackup.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackupBackupname.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackupBackupname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackupBackupname.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackupBackupname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackupString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackupString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackupString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackup/SyncGetBackupString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/AsyncGetBackupPlan.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/AsyncGetBackupPlan.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/AsyncGetBackupPlan.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/AsyncGetBackupPlan.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlan.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlan.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlan.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlan.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlanBackupplanname.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlanBackupplanname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlanBackupplanname.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlanBackupplanname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlanString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlanString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlanString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getbackupplan/SyncGetBackupPlanString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/AsyncGetRestore.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/AsyncGetRestore.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/AsyncGetRestore.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/AsyncGetRestore.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestore.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestore.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestore.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestore.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestoreRestorename.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestoreRestorename.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestoreRestorename.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestoreRestorename.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestoreString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestoreString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestoreString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestore/SyncGetRestoreString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/AsyncGetRestorePlan.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/AsyncGetRestorePlan.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/AsyncGetRestorePlan.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/AsyncGetRestorePlan.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlan.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlan.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlan.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlan.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlanRestoreplanname.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlanRestoreplanname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlanRestoreplanname.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlanRestoreplanname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlanString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlanString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlanString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getrestoreplan/SyncGetRestorePlanString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/AsyncGetVolumeBackup.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/AsyncGetVolumeBackup.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/AsyncGetVolumeBackup.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/AsyncGetVolumeBackup.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackup.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackup.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackup.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackup.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackupString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackupString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackupString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackupString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackupVolumebackupname.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackupVolumebackupname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackupVolumebackupname.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumebackup/SyncGetVolumeBackupVolumebackupname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/AsyncGetVolumeRestore.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/AsyncGetVolumeRestore.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/AsyncGetVolumeRestore.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/AsyncGetVolumeRestore.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestore.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestore.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestore.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestore.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestoreString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestoreString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestoreString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestoreString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestoreVolumerestorename.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestoreVolumerestorename.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestoreVolumerestorename.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/getvolumerestore/SyncGetVolumeRestoreVolumerestorename.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/AsyncListBackupPlans.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/AsyncListBackupPlans.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/AsyncListBackupPlans.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/AsyncListBackupPlans.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/AsyncListBackupPlansPaged.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/AsyncListBackupPlansPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/AsyncListBackupPlansPaged.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/AsyncListBackupPlansPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlans.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlans.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlans.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlans.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlansLocationname.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlansLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlansLocationname.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlansLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlansString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlansString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlansString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackupplans/SyncListBackupPlansString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/AsyncListBackups.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/AsyncListBackups.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/AsyncListBackups.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/AsyncListBackups.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/AsyncListBackupsPaged.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/AsyncListBackupsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/AsyncListBackupsPaged.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/AsyncListBackupsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackups.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackups.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackups.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackups.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackupsBackupplanname.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackupsBackupplanname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackupsBackupplanname.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackupsBackupplanname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackupsString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackupsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackupsString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listbackups/SyncListBackupsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/AsyncListRestorePlans.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/AsyncListRestorePlans.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/AsyncListRestorePlans.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/AsyncListRestorePlans.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/AsyncListRestorePlansPaged.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/AsyncListRestorePlansPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/AsyncListRestorePlansPaged.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/AsyncListRestorePlansPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlans.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlans.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlans.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlans.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlansLocationname.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlansLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlansLocationname.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlansLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlansString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlansString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlansString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestoreplans/SyncListRestorePlansString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/AsyncListRestores.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/AsyncListRestores.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/AsyncListRestores.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/AsyncListRestores.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/AsyncListRestoresPaged.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/AsyncListRestoresPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/AsyncListRestoresPaged.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/AsyncListRestoresPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestores.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestores.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestores.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestores.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestoresRestoreplanname.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestoresRestoreplanname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestoresRestoreplanname.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestoresRestoreplanname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestoresString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestoresString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestoresString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listrestores/SyncListRestoresString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/AsyncListVolumeBackups.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/AsyncListVolumeBackups.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/AsyncListVolumeBackups.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/AsyncListVolumeBackups.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/AsyncListVolumeBackupsPaged.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/AsyncListVolumeBackupsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/AsyncListVolumeBackupsPaged.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/AsyncListVolumeBackupsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackups.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackups.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackups.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackups.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackupsBackupname.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackupsBackupname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackupsBackupname.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackupsBackupname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackupsString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackupsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackupsString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumebackups/SyncListVolumeBackupsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/AsyncListVolumeRestores.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/AsyncListVolumeRestores.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/AsyncListVolumeRestores.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/AsyncListVolumeRestores.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/AsyncListVolumeRestoresPaged.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/AsyncListVolumeRestoresPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/AsyncListVolumeRestoresPaged.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/AsyncListVolumeRestoresPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestores.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestores.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestores.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestores.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestoresRestorename.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestoresRestorename.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestoresRestorename.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestoresRestorename.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestoresString.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestoresString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestoresString.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/listvolumerestores/SyncListVolumeRestoresString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/AsyncUpdateBackup.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/AsyncUpdateBackup.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/AsyncUpdateBackup.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/AsyncUpdateBackup.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/AsyncUpdateBackupLRO.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/AsyncUpdateBackupLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/AsyncUpdateBackupLRO.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/AsyncUpdateBackupLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/SyncUpdateBackup.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/SyncUpdateBackup.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/SyncUpdateBackup.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/SyncUpdateBackup.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/SyncUpdateBackupBackupFieldmask.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/SyncUpdateBackupBackupFieldmask.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/SyncUpdateBackupBackupFieldmask.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackup/SyncUpdateBackupBackupFieldmask.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/AsyncUpdateBackupPlan.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/AsyncUpdateBackupPlan.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/AsyncUpdateBackupPlan.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/AsyncUpdateBackupPlan.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/AsyncUpdateBackupPlanLRO.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/AsyncUpdateBackupPlanLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/AsyncUpdateBackupPlanLRO.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/AsyncUpdateBackupPlanLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/SyncUpdateBackupPlan.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/SyncUpdateBackupPlan.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/SyncUpdateBackupPlan.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/SyncUpdateBackupPlan.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/SyncUpdateBackupPlanBackupplanFieldmask.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/SyncUpdateBackupPlanBackupplanFieldmask.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/SyncUpdateBackupPlanBackupplanFieldmask.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updatebackupplan/SyncUpdateBackupPlanBackupplanFieldmask.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/AsyncUpdateRestore.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/AsyncUpdateRestore.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/AsyncUpdateRestore.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/AsyncUpdateRestore.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/AsyncUpdateRestoreLRO.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/AsyncUpdateRestoreLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/AsyncUpdateRestoreLRO.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/AsyncUpdateRestoreLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/SyncUpdateRestore.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/SyncUpdateRestore.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/SyncUpdateRestore.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/SyncUpdateRestore.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/SyncUpdateRestoreRestoreFieldmask.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/SyncUpdateRestoreRestoreFieldmask.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/SyncUpdateRestoreRestoreFieldmask.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestore/SyncUpdateRestoreRestoreFieldmask.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/AsyncUpdateRestorePlan.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/AsyncUpdateRestorePlan.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/AsyncUpdateRestorePlan.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/AsyncUpdateRestorePlan.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/AsyncUpdateRestorePlanLRO.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/AsyncUpdateRestorePlanLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/AsyncUpdateRestorePlanLRO.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/AsyncUpdateRestorePlanLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/SyncUpdateRestorePlan.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/SyncUpdateRestorePlan.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/SyncUpdateRestorePlan.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/SyncUpdateRestorePlan.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/SyncUpdateRestorePlanRestoreplanFieldmask.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/SyncUpdateRestorePlanRestoreplanFieldmask.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/SyncUpdateRestorePlanRestoreplanFieldmask.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkeclient/updaterestoreplan/SyncUpdateRestorePlanRestoreplanFieldmask.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkesettings/getbackupplan/SyncGetBackupPlan.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkesettings/getbackupplan/SyncGetBackupPlan.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkesettings/getbackupplan/SyncGetBackupPlan.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgkesettings/getbackupplan/SyncGetBackupPlan.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/stub/backupforgkestubsettings/getbackupplan/SyncGetBackupPlan.java b/samples/snippets/generated/com/google/cloud/gkebackup/v1/stub/backupforgkestubsettings/getbackupplan/SyncGetBackupPlan.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/gkebackup/v1/stub/backupforgkestubsettings/getbackupplan/SyncGetBackupPlan.java rename to samples/snippets/generated/com/google/cloud/gkebackup/v1/stub/backupforgkestubsettings/getbackupplan/SyncGetBackupPlan.java